Skip to content
New issue

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

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

Already on GitHub? # to your account

[Fix] Fix wrong device of class_weight in models/losses/cross_entropy_loss.py #1457

Closed

Conversation

jamiechoi1995
Copy link
Contributor

Fix #1456

@jamiechoi1995 jamiechoi1995 changed the title Update cross_entropy_loss.py [Fix] Fix wrong device of class_weight in models/losses/cross_entropy_loss.py Feb 18, 2022
@kennymckormick
Copy link
Member

Please double-check the original code, the conversion you added already exists in the original code.

@kennymckormick
Copy link
Member

Feel free to re-open it if I made a mistake.

@jamiechoi1995
Copy link
Contributor Author

my bad, I use an old version of mmaction of my local machine

@jamiechoi1995 jamiechoi1995 deleted the jamiechoi1995-patch-2 branch February 18, 2022 09:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeError: Expected all tensors to be on the same device, but found at least two devices
2 participants