-
Notifications
You must be signed in to change notification settings - Fork 513
Open
Description
When attempting to use the function numerical(model=kerasmodel, hls_model=hlsmodel, X=X_test) from hls4ml.model.profiling with the model as a keras v3 model the command fails at
hls4ml/hls4ml/converters/__init__.py
Line 125 in 744d7cc
| model = keras_v2_to_hls(yamlConfig) |
As hls4ml attempts to convert a keras v3 model as a keras v2 model. This conversion is handled correctly later in the file
hls4ml/hls4ml/converters/__init__.py
Lines 231 to 237 in 744d7cc
| if 'KerasModel' in config: | |
| import keras | |
| if keras.__version__ >= '3.0': | |
| return keras_v3_to_hls(config) | |
| return keras_v2_to_hls(config) |
If the same code is inserted back into L125 the numerical profiling succeeds
Metadata
Metadata
Assignees
Labels
No labels