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

Update util.py #30

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

Update util.py #30

wants to merge 1 commit into from

Conversation

zhiweichen0012
Copy link

@zhiweichen0012 zhiweichen0012 commented Nov 21, 2018

RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'
added:prediction = prediction.cuda()

原code报错:RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'
新增代码:prediction = prediction.cuda()
Copy link

@ShirleyLoveGIS ShirleyLoveGIS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed the bug in util.py

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.

3 participants