How can i change the computation graph of a saved model?

only given a saved model file, after i load it, can i modify the computation graph of the model? insert new operators between layers (down to op level)? or it highly relies on how the model code is written?

Saved model file only contains the weights of a neural network and code for only the base class of the model. All the other methods it calls are not included in the save. Also, there are some things that are not pickled like lambdas (I think) which if the model includes will not be in the save. So you need model code, if you want to do anything meaningful.

Thank you for the reply! :+1:

1 Like