在138机器上执行命令如下
conda activate pytorch0.2.0 python import torch x=torch.empty(5, 3)
提示错误,如标题所示。 分析:模块没有属性“empty”,也就是torch模块中没有属性empty。说明了PyTorch0.2.0版本中,torch模块不包含改属性。 验证:在139的pytorch1.0中测试成功。
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
QQ咨询|关于我们|Archiver|手机版|小黑屋|( 辽ICP备15012455号-4 ) Powered by 期权论坛 X3.2 © 2001-2016 期权工具网&期权论坛 Inc.
下载期权论坛手机APP