pytorch报错tuple没有view属性

解决方法:
在报错处修改:torch.Tensor(a)
a是报错的地方
转换成tensor就可以了

猜你喜欢

转载自blog.csdn.net/qq_43523725/article/details/104307215
今日推荐