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

ERROR if i change batch size bigger than 2 #11

Open
ChrisHRZ opened this issue Aug 26, 2019 · 1 comment
Open

ERROR if i change batch size bigger than 2 #11

ChrisHRZ opened this issue Aug 26, 2019 · 1 comment

Comments

@ChrisHRZ
Copy link

if i change batch size bigger than 2, there is a error like this:
RuntimeError: The size of tensor a (10) must match the size of tensor b (2) at non-singleton dimension 1
how can i fix it?thank you!

@huangkuns
Copy link
Owner

In our experiment, the batch_size is always 1, so in our code, we do not support batch_size > 1. If you need to increase the batch_size, you need to change the several lines of code related to dataloader and loss functions.

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