2024-04-25 21:07:12 发布
网友
我已经安装了PyTorch。 import torch运行时没有错误。但是,未找到函数^{}:
import torch
x = torch.tensor([1, 2, 3]) x.repeat_interleave(2)
给出AttributeError: 'Tensor' object has no attribute 'repeat_interleave'
AttributeError: 'Tensor' object has no attribute 'repeat_interleave'
为什么?
相关问题 更多 >
编程相关推荐