2018-11-20 TypeError: cat(): arg
2018-11-20 本文已影响0人
QQsoso
源代码:

报错:
TypeError: cat(): argument 'tensors' (position 1) must be tuple of Tensors, not Tensor
解决方案:
出错原因是传入参数不对,传入参数应该为列表
源代码:
报错:
TypeError: cat(): argument 'tensors' (position 1) must be tuple of Tensors, not Tensor
解决方案:
出错原因是传入参数不对,传入参数应该为列表