Skip to content

Refactor: Update loss_dict merging method to use update() for compatibility#15

Open
turswiming wants to merge 1 commit into
vLAR-group:mainfrom
turswiming:patch-2
Open

Refactor: Update loss_dict merging method to use update() for compatibility#15
turswiming wants to merge 1 commit into
vLAR-group:mainfrom
turswiming:patch-2

Conversation

@turswiming
Copy link
Copy Markdown

the operator "|" for dict support after python 3.9

however, if we run this repo using official pytorch docker image1.9.1-cuda11.1-cudnn8, the default python version is 3.7, which will causing compatibility issues,

this PR replace

 loss_dict = loss_dict | epe_dict

with

loss_dict.update(epe_dict)

to make repo can be run under python3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant