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.