pytorch-CortexNet
pytorch-CortexNet copied to clipboard
TypeError: expected Variable as element 1 in argument 0, but got tuple
Hello,
"TypeError: expected Variable as element 1 in argument 0, but got tuple" Error message is printed at x = torch.cat((x, s), 1) in Model02.py
I modified some codes following the closed issues.
I tried to debug and fix. But I can't. Do you know what is the problem? Thank you
You may need to update your PyTorch?
>>> a = torch.tensor([[1., 2.]], requires_grad=True)
>>> b = torch.tensor([[3., 4.]], requires_grad=True)
>>> torch.cat((a, b), 1)
tensor([[1., 2., 3., 4.]], grad_fn=<CatBackward>)
For me it works just fine.