-
Notifications
You must be signed in to change notification settings - Fork 139
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 converter doesn't work. #50
Comments
hello,I also encountered this problem. have you solve this issue? |
No, I am still waiting for their reply. It seems their Pytorch converter has some bug. I temporarily switched to keras, which works fine. |
Hi,did you use Vitis HLS or the Vivado HLS? |
I used Vitis HLS |
Can you please help me how you run the code on Vitis HLS. The github repo is not working for Vitis hls |
Are you using Pytorch or Keras? |
I am using Keras only |
I trained VGG16 model on CIFAR100 dataset on pytorch. When I run:
I get the error on the last line:
TypeError: cannot unpack non-iterable NoneType object
While I ran pre-trained VGG16 model of keras on hls4ml, it runs smoothly without any error. The cause of the error I found out is the config file generated from config = hls4ml.utils.config_from_pytorch_model(model, granularity='layer'). When I print this variable config, it shows:
{'Model': {'Precision': 'ap_fixed<16,6>', 'ReuseFactor': 1, 'Strategy': 'Latency'}}
which shows there is no information regarding the layers. In case of Keras i.e. config = hls4ml.utils.config_from_keras_model(model, granularity='layer') generates following output:
Please resolve this issue.
The text was updated successfully, but these errors were encountered: