-
Notifications
You must be signed in to change notification settings - Fork 202
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
I need some help! Expected 2D (unbatched) or 3D (batched) input to conv1d #34
Comments
maybe you have met the same problem with this code issues. |
have you solve this problem?I‘ve got the same problem as you TT |
Same problem |
Change the python environment to 3.6 and it can run |
if the torch version>1.11, how can we solve this problem? Who can help me ? Thanks! |
I didn't fix the problem directly from the code change, I downloaded the python 3.6 version from anaconda and configured it, and the problem was solved |
Ok,thanks. |
I changed python version to 3.6, torch version to 1.10.2 and it fixed. |
You can just replace |
I need some help! I changed python version to 3.6, torch version to 1.10.2, but the problem has always existed. |
我也遇到了相同的问题 |
Changing all conv1d to conv2d will solve this issue. |
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Graph-WaveNet-master\train.py", line 177, in
main()
File "C:\Users\Administrator\Desktop\Graph-WaveNet-master\train.py", line 87, in main
metrics = engine.train(trainx, trainy[:,0,:,:])
File "C:\Users\Administrator\Desktop\Graph-WaveNet-master\engine.py", line 17, in train
output = self.model(input)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\Administrator\Desktop\Graph-WaveNet-master\model.py", line 175, in forward
gate = self.gate_convsi
File "D:\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 307, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 303, in _conv_forward
return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [64, 32, 207, 13]
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: