赞
踩
NameError: name 'Tensor' is not defined
把
import torch torch.Tensor()
改为
from torch import Tensor Tensor()