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

cannot reshape tensor of 0 elements into shape [2, 0, -1] because the unspecified dimension size -1 can be any value and is ambiguous #3

Open
Wang-jialing324 opened this issue Dec 19, 2024 · 0 comments

Comments

@Wang-jialing324
Copy link

Wang-jialing324 commented Dec 19, 2024

When I get an error when I train the ST model, I found that the last batch in epoch 1 reported this error, how can I fix it?

fairseq/modules/sinusoidal_positional_embedding.py", line 121, in forward
weights.index_select(0, positions.view(-1)).view(bsz, seq_len, -1).detach()
RuntimeError: cannot reshape tensor of 0 elements into shape [2, 0, -1] because the unspecified dimension size -1 can be any value and is ambiguous
UserWarning: resource_tracker: There appear to be 59 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

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

1 participant