-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Epoch Training: Help #97
Comments
----> 9 mean = x.mean(-1, keepdmin=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure, what is wrong?
Any suggestions
/usr/local/lib/python3.7/dist-packages/torch/nn/reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='sum' instead.
warnings.warn(warning.format(ret))
/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:20: UserWarning: nn.init.xavier_uniform is now deprecated in favor of nn.init.xavier_uniform.
TypeError Traceback (most recent call last)
in ()
9 model.train()
10 run_epoch(data_gen(V, 30, 20), model,
---> 11 SimpleLossCompute(model.generator, criterion, model_opt))
12
13 model.eval()
10 frames
in forward(self, x)
7
8 def forward(self,x):
----> 9 mean = x.mean(-1, keepdmin=True)
10 std=x.std(-1, keepdim=True)
11 return self.a_2 * (x-mean)/(std+self.eps)+self.b_2
TypeError: mean() received an invalid combination of arguments - got (int, keepdmin=bool), but expected one of:
didn't match because some of the keywords were incorrect: keepdmin
The text was updated successfully, but these errors were encountered: