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

change batch_size #41

Closed
xuujunn opened this issue Dec 24, 2019 · 1 comment
Closed

change batch_size #41

xuujunn opened this issue Dec 24, 2019 · 1 comment

Comments

@xuujunn
Copy link

xuujunn commented Dec 24, 2019

Hello, can i change the batch_size? eg: batch_size=8,16.... but encounter a problem----- RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 1 and 8 in dimension 0 at c:\a\w\1\s\windows\pytorch\aten\src\thc\generic/THCTensorMath.cu:83
How to solve this problem?
Looking forward to your reply,Thank you !!!

@sangwoomo
Copy link
Owner

Hi, current version of the code only permits batch_size = 1 for 1 GPU. You should use 4 GPUs to run batch_size = 4. See Issue #21.

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