How to save a model with a custom layer?

Hi everyone,

I am facing a problem while trying to save my model that has a custom layer, I followed the same method the Francois Chollet book is using, but I got this error:

ValueError: Unable to create a dataset (name already exists).

can anyone help, please?

Hi, can you share the chapter from the Deep Learning with Python (v1 or v2) book you’re referring to, as well as some code? Are you saving the model with Keras ModelCheckpoint callbacks? I’m sure we’ll be able to help.