Skip to content

Further cmdline and API changes

Javier Duarte requested to merge github/fork/vloncar/cnn_stream into master

Created by: vloncar

This PR handles the case when the API is used to convert the Keras model with convert_from_keras_model. The configuration dict will have a python object that is not serializable to YAML, so it cannot be used by hls4ml convert and hls4ml build, so we add a hook to PyYAML to serialize and deserialize such objects. I moved the parse_config from the hls4ml command to the converter, since the function is usable for API as well.

Merge request reports

Loading