-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyTorch to IR error #419
Comments
@uhvardhan I think the major problem is torch' version. |
I have tried updating it 0.4.0 and 0.2.1 torchvision but couldn't solve the problem. I will have a look at the issues now Thanks for the help. |
Hi @uhvardhan ,from the stack trace:
|
Hi @namizzz I am not sure if it worked because I have been getting another error. Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Can you please have a look ? Thanks |
Hi @uhvardhan ,It is a class named as 'agents' defined by you. Please refer to |
Platform (like ubuntu 16.04/win10): Ubuntu 16.04
Python version: 3.5
Source framework with version (like Tensorflow 1.4.1 with GPU): Pytorch 0.3.1 with gpu
Destination framework with version (like CNTK 2.3 with GPU): Tensorflow
Pre-trained model path (webpath or webdisk path): https://drive.google.com/file/d/1Y2ritTA6PXosQ9u66f2JVpP_CMTt9fxl/view?usp=sharing
Running scripts:
mmtoir -f pytorch -d out -n ResNet-2018-09-18T21:50:42.pth --inputShape 3,224,224
Traceback (most recent call last):
File "/usr/local/bin/mmtoir", line 11, in
sys.exit(_main())
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 192, in _main
ret = _convert(args)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 91, in _convert
from mmdnn.conversion.pytorch.pytorch_parser import PytorchParser
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/pytorch/pytorch_parser.py", line 12, in
from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/pytorch/pytorch_graph.py", line 12, in
from torch.jit import _unique_state_dict
ImportError: cannot import name '_unique_state_dict'
The text was updated successfully, but these errors were encountered: