Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

turswiming
Copy link

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