|
楼主:用rknn-toolkit-v1.3.2工具转换pytorch模型时,报如下错误,是什么原因呢?我环境里安装的是torch-1.2.0-cp36-cp36m-manylinux1_x86_64.whl版本。
Traceback (most recent call last):
File "change.py", line 49, in <module>
export_pytorch_model()
File "change.py", line 16, in export_pytorch_model
trace_model = torch.jit.trace(model, torch.Tensor(1,3,224,224))
File "/usr/local/lib/python3.6/dist-packages/torch/jit/__init__.py", line 903, in trace
name = _qualified_name(func)
File "/usr/local/lib/python3.6/dist-packages/torch/_jit_internal.py", line 682, in _qualified_name
name = obj.__name__
AttributeError: 'collections.OrderedDict' object has no attribute '__name__' |
|