Further cmdline and API changes
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.