/users1/xwgeng/anaconda2/lib/python2.7/site-packages/torch/functional.pyc in stack(sequence, dim, out)
54 if dim < 0:
55 dim += sequence[0].dim()
—> 56 return torch.cat(list(t.unsqueeze(dim) for t in sequence), dim, out=out)
57
58
TypeError: cat() got an unexpected keyword argument ‘out’
And my pytorch version is 0.1.11+2b56711. It works before I update into the latest pytorch
I would expect that error if you pull the latest Python code from GitHub master but don’t rebuild the C extension. If you’re building from source, make sure you rebuild the C extension:
I do as you said. Now torch.cat works fine for tensor, but fails for variable. I think it’s because Concat function doesn’t have keyword out. Maybe it could be fixed by