Closed arnaudstiegler closed 4 years ago
So, two small changes to make it work:
name=...
in the add_weight()
for both b and wcustom_objects={'AffineScalar':AffineScalar()}
Reproducible code at playground/keras_custom_model_save.ipynb
COOOOL
Closing the issue as I tested it on our model, and everything should work now!
When running a simple
model.save("my_model.h5")
, we got the following error:RuntimeError: Unable to create link (name already exists)
Likely due to the fact that the model has a custom layer