首页
资讯
新闻
科技要闻
人工智能
5G/通信
互联网
手机
数码
家电
机器人
IT资讯
半导体
商业
标签 >
module torch has no attribute Tensor :先看导入的是哪个 torch
module 'torch' has no attribute 'Tensor'先分清是装坏了,还是被同名文件顶替了
这个报错的关键在于:当 torch Tensor 明明是公开属性时,会报 has no attribute 通常说明实际导入的不是真正的 torch。我先核实同
2026-11-09 18:00:11