-
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
run problem #35
Comments
Hello! I met the same problem in LabelSmoothing class as you proposed. Did you solve this problem? Looking forward to your reply. Thanks! |
I can't remember that, but this link pytorch/pytorch#3416 maybe help. |
Thank you very much |
hello, I have the same problem in SimpleLossCompute class as you proposed, and can't figure it out. Did you solve this problem? Looking forward to your reply. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I run this code, there occurred some problems
(1) in LabelSmoothing class
this line => true_dist.index_fill_(0, mask.squeeze(), 0.0)
RuntimeError: invalid argument 3: Index is supposed to be a vector at /Users/soumith/code/builder/wheel/pytorch-src/aten/src/TH/generic/THTensorMath.cpp:569
(2) in SimpleLossCompute class
this lien = > loss = self.criterion(x.contiguous().view(-1, x.size(-1)), y.contiguous().view(-1)) / norm
RuntimeError: Expected object of type torch.FloatTensor but found type torch.LongTensor for argument #2 'other'
my torch version is 0.4.1
does anyone have these problem? thanks~
The text was updated successfully, but these errors were encountered: