Skip to content

[Bug fixed] Change squeeze() to squeeze(0) to accomodate for sequence length of 1 - #1581

Open
ChenWu98 wants to merge 1 commit into
ThilinaRajapakse:masterfrom
ChenWu98:master
Open

[Bug fixed] Change squeeze() to squeeze(0) to accomodate for sequence length of 1#1581
ChenWu98 wants to merge 1 commit into
ThilinaRajapakse:masterfrom
ChenWu98:master

Conversation

@ChenWu98

@ChenWu98 ChenWu98 commented Oct 8, 2024

Copy link
Copy Markdown

Problem description: the current preprocessing function will squeeze length-1 sequences to a 0-dim tensor, which will cause an error in pytorch dataloaders.
Solution: replaced each squeeze() with squeeze(0) in seq2seq_utils.py

@stale

stale Bot commented Oct 19, 2025

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale This issue has become stale label Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue has become stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant