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

about batch size #11

Open
superli6 opened this issue Dec 17, 2024 · 1 comment
Open

about batch size #11

superli6 opened this issue Dec 17, 2024 · 1 comment

Comments

@superli6
Copy link

Hello author, when I set the batch size to 2, I encounter an error: "RuntimeError: stack expects each tensor to be equal size, but got [5120, 1024] at entry 0 and [13952, 1024] at entry 1." What is the reason for this? I'm looking forward to your reply.

@liupei101
Copy link
Owner

batch_size must be set to 1 as the bag often has a variable size and multiple size-variable inputs cannot be directly packed into a mini-batch for training.

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

2 participants