pytorch 模型转onnx提示错误:only one element tensors can be converted to Python scalars
版本:pytorch1.1.0
原因:pytorch版本bug
解决方法:升级版本
参考链接:github issue 地址
本文介绍了解决PyTorch1.1.0版本中模型转换为ONNX格式时遇到的错误:onlyoneelementtensorscanbeconvertedtoPythonscalars。此问题源于PyTorch版本的bug,解决方案为升级PyTorch版本。
参考链接:github issue 地址
1万+
1万+

被折叠的 条评论
为什么被折叠?