【发布时间】:2020-10-01 18:19:11
【问题描述】:
我已经安装了 PyTorch。
import torch 运行没有错误。但是找不到函数torch.repeat_interleave():
x = torch.tensor([1, 2, 3])
x.repeat_interleave(2)
给AttributeError: 'Tensor' object has no attribute 'repeat_interleave'
为什么?
【问题讨论】:
-
torch.__version__的值是多少? -
值为'0.4.1'
-
可是我刚刚安装了PyTorch,为什么conda要为我安装旧版本?