Open franhervas99 opened 6 days ago
The serialized format of Keras models changed in recent versions, leading to this error. You have two options, use older TF and Keras, or use main branch of hls4ml (soon to be 1.0.0 release)
Hi @vloncar , Updating to the last version (main branch), gives me the same error as before.
Prerequisites
Please make sure to check off these prerequisites before submitting a bug report.
Quick summary
I am trying to use
hls4ml.utils.config_from_keras_model()
to get the config from my keras model, and I get an errorIndexError: list index out of range
.Details
I created a simple perceptron in keras, with pretrained weights and biases. Then, when trying to get the config for HLS4ML an error is produced.
Steps to Reproduce
This is the python script to generate the keras model:
This is the python script for using HLS4ML:
Expected behavior
The HLS4ML script should read the config and convert the keras model to an HLS model.
Actual behavior
The HLS4ML script can't pass from the config stage.
Error
Scripts and keras model files
issue_github.zip