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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [1, 1, 191, 80] #5479

Open
Maverick7t opened this issue Apr 16, 2024 · 0 comments

Comments

@Maverick7t
Copy link

Maverick7t commented Apr 16, 2024

馃悰 Bug

When attempting to train the model using Fairseq, I encountered an error during the training process. Below is the error message:

2024-04-16 15:17:57 | INFO | fairseq.trainer | begin training epoch 1
2024-04-16 15:17:57 | INFO | fairseq_cli.train | Start iterating over samples
Traceback (most recent call last):
File "/home/hp/miniconda3/envs/test_fairseq/bin/fairseq-train", line 8, in
sys.exit(cli_main())
...
...
...
File "/home/hp/miniconda3/envs/test_fairseq/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 310, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/hp/miniconda3/envs/test_fairseq/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 306, 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: [1, 1, 191, 80]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant