You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2019. It is now read-only.
Traceback (most recent call last):
File "train.py", line 211, in <module>
main()
File "train.py", line 199, in main
train(model, criterion, optimizer, epoch, train_losses)
File "train.py", line 119, in train
loss = criterion(output, target[0], target[1])
File "/home/michael/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 206, in __call__
result = self.forward(*input, **kwargs)
File "/home/michael/Desktop/loop/model.py", line 42, in forward
mask_ = mask.expand_as(input)
File "/home/michael/.local/lib/python2.7/site-packages/torch/autograd/variable.py", line 655, in expand_as
return Expand(tensor.size())(self)
File "/home/michael/.local/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py", line 115, in forward
result = i.expand(*self.sizes)
RuntimeError: The expanded size of the tensor (21) must match the existing size (5) at non-singleton dimension 0. at /b/wheel/pytorch-src/torch/lib/TH/THStorage.c:99
Any clue what is going on?
The text was updated successfully, but these errors were encountered:
This is the stack trace:
Any clue what is going on?
The text was updated successfully, but these errors were encountered: