Traceback (most recent call last):
File "train_pixelsnail.py", line 138, in <module>
train(args, i, loader, model, optimizer, scheduler, device)
File "train_pixelsnail.py", line 34, in train
loss = criterion(out, target)
File "/home/corey/.virtualenvs/vq-vae-2-pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
result = self.forward(*input, **kwargs)
File "/home/corey/.virtualenvs/vq-vae-2-pytorch/lib/python3.6/site-packages/torch/nn/modules/loss.py", line 942, in forward
ignore_index=self.ignore_index, reduction=self.reduction)
File "/home/corey/.virtualenvs/vq-vae-2-pytorch/lib/python3.6/site-packages/torch/nn/functional.py", line 2056, in cross_entropy
return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "/home/corey/.virtualenvs/vq-vae-2-pytorch/lib/python3.6/site-packages/torch/nn/functional.py", line 1350, in log_softmax
ret = input.log_softmax(dim)
AttributeError: 'tuple' object has no attribute 'log_softmax'
In last commit, function signature of PixelSNAIL.foward was updated and this affects this part of code.
Error message is given below :
In last commit, function signature of
PixelSNAIL.foward
was updated and this affects this part of code.