关于python的pytorch运行中的问题汇总
2021-06-06 18:05
标签:tensor error: size attr object __init__ shape 报错 汇总 文件在最后一行加from .init import * 将shape改成size 关于python的pytorch运行中的问题汇总 标签:tensor error: size attr object __init__ shape 报错 汇总 原文地址:https://www.cnblogs.com/buaichiqincaidemao/p/14603585.html1.pytorch报错:module ‘torch.nn‘ has no attribute ‘init
修改/home/expstu1/anaconda3/lib/python3.6/site-packages/torch/nn/__init__.py
2.AttributeError: module ‘torch.nn.init‘ has no attribute ‘xavier_uniform_‘
去掉‘xavier_uniform_‘的_
3.AttributeError: ‘torch.cuda.LongTensor‘ object has no attribute ‘shape‘
文章标题:关于python的pytorch运行中的问题汇总
文章链接:http://soscw.com/index.php/essay/91396.html