module 'torch' has no attribute 'Tensor'先分清是装坏了,还是被同名文件顶替了

这个报错的关键在于:当 torch Tensor 明明是公开属性时,会报 has no attribute 通常说明实际导入的不是真正的 torch。我先核实同