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

RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.cuda.LongTensor for argument #2 'other' #4

Closed
sjtuytc opened this issue Oct 1, 2018 · 5 comments

Comments

@sjtuytc
Copy link

sjtuytc commented Oct 1, 2018

How do I fix this error?
It occurs at common_pytorch/common_loss/integral.py Line17

@lck1201
Copy link
Collaborator

lck1201 commented Oct 11, 2018

@sjtuytc Hi, the code runs properly on our machine. Please check you have installed everything correctly.

@xiangdonglai
Copy link

@lck1201 Hello. I also encounter this problem. May I know the PyTorch version that you use?

@lck1201
Copy link
Collaborator

lck1201 commented Nov 10, 2018

@xiangdonglai I install via conda install pytorch torchvision -c pytorch, version 0.4.0

@xiangdonglai
Copy link

@lck1201 Thank you for your response. I also solve the problem using Python 3.6 and PyTorch 0.4.0.

@lck1201
Copy link
Collaborator

lck1201 commented Nov 11, 2018

@sjtuytc please follow @xiangdonglai to install requirements.
Now close issue.. If you have further question, I would re-open it.

@lck1201 lck1201 closed this as completed Nov 11, 2018
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

No branches or pull requests

3 participants