Open areeb-agha opened 1 year ago
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.
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? Please reply.
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.