#How to add layer to saved model

1 messages · Page 1 of 1 (latest)

hollow rover
#

I have a saved model for which I don't have the code used to build it. I want to load such model and add a custom layer between two layers of the network. Does anyone know how to do it?

lean dust
#

One way is to load the model, create an identical model but with your custom layer. Then copy the weights over.

#

some methods you may final useful are get_weights() set_weights() get_config()