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

Why is the default setting for BATCH_SIZE 1? I changed it and got an error after that #27

Open
loki-keroro opened this issue Feb 3, 2023 · 0 comments

Comments

@loki-keroro
Copy link

I use the default batchsize=1 and program to run, but once I change it to 4, I get the following error:

***/layer/function.py", line 33, in forward
return self.scale * x * x.pow(2).sum(dim).clamp(min=1e-12).rsqrt().expand_as(x)
RuntimeError: The expanded size of the tensor (512) must match the existing size (4) at non-singleton dimension 1. Target sizes: [4, 512, 51, 51]. Tensor sizes: [4, 51, 51]

i don't know the reason

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