Skip to content

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