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: The expanded size of the tensor (1) must match the existing size (64) at non-singleton dimension 3. Target sizes: [2, 1, 1, 1]. Tensor sizes: [2, 128, 64, 64] (inferExpandGeometry at /pytorch/aten/src/ATen/ExpandUtils.cpp:75) #10

Closed
wangy9711 opened this issue Apr 21, 2019 · 4 comments

Comments

@wangy9711
Copy link

wangy9711 commented Apr 21, 2019

Hey, thanks for your work.
I want to try your net, I did create the conda environment. But when I execute python demo.py:
image

I only have one GPU, RTX2080.
Waiting for your suggestions.

@wangy9711 wangy9711 changed the title Compile error: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs RuntimeError: The expanded size of the tensor (1) must match the existing size (64) at non-singleton dimension 3. Target sizes: [2, 1, 1, 1]. Tensor sizes: [2, 128, 64, 64] (inferExpandGeometry at /pytorch/aten/src/ATen/ExpandUtils.cpp:75) Apr 21, 2019
@heilaw
Copy link
Contributor

heilaw commented Apr 21, 2019

It may have something to do with the compilation of the corner pooling layers. Were you using GCC 4.9.2 or above to compile the layers?

@wangy9711
Copy link
Author

It may have something to do with the compilation of the corner pooling layers. Were you using GCC 4.9.2 or above to compile the layers?

My gcc version is 5.4.0, Ubuntu version is 16.04.

@owen800q
Copy link

owen800q commented Apr 22, 2019

It may have something to do with the compilation of the corner pooling layers. Were you using GCC 4.9.2 or above to compile the layers?

My gcc version is 5.4.0, Ubuntu version is 16.04.

It may have something to do with the compilation of the corner pooling layers. Were you using GCC 4.9.2 or above to compile the layers?

My gcc version is 5.4.0, Ubuntu version is 16.04.

I encountered this problem too before, it works perfectly when I upgraded it to ubuntu 18.04

@wangy9711
Copy link
Author

wangy9711 commented Apr 23, 2019

I find the solution by following change <torch/torch.h> to <torch/extension.h>.
After did that, I can get the result.
Thanks!

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