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 Variable but found type CUDAType for argument #0 'result' #35

Open
xjiao004 opened this issue May 16, 2019 · 7 comments

Comments

@xjiao004
Copy link

xjiao004 commented May 16, 2019

Anyone can help me with this problem here? This is the logs. Really appreciate it.

RuntimeError: Expected object of type Variable but found type CUDAType for argument #0 'result' (checked_cast_variable at /opt/conda/conda-bld/pytorch_1556653099582/work/torch/csrc/autograd/VariableTypeManual.cpp:173)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7f270e481dc5 in /home/supernode/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/lib/libc10.so)
frame #1: torch::autograd::VariableType::checked_cast_variable(at::Tensor&, char const*, int) + 0x169 .............................................

@xjiao004 xjiao004 reopened this May 16, 2019
@li10141110
Copy link

same problem, pytorch 1.1.0 cuda 9 and nvidia gtx 2080ti

@xjiao004
Copy link
Author

Same environment, it's the torch version's problem. Try pytorch=0.4.1 with cuda9.0

@li10141110
Copy link

Torch version bug but i need torch1.1.0 environment, any help

@hejinsome
Copy link

@xjiao004 我是titan rtx,采用pytorch1.1和cuda10出问题,采用pytorch1.0与cuda9也出问题

@Duankaiwen
Copy link
Owner

@hejinsome princeton-vl/CornerNet@3809432

@mama110
Copy link

mama110 commented Jun 10, 2019

@li10141110, have you solved the problem?

@YIGAOYI
Copy link

YIGAOYI commented Jun 28, 2019

Using the _cpools layer in CornerNet-Lite works for me. Just replace it and setup again.
https://github.com/princeton-vl/CornerNet-Lite/tree/master/core/models/py_utils/_cpools
Thanks! pytorch 1.1.0 cuda 10

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

6 participants