0

I have been trying to prune a keras model post-training. while doing that, I get model type as NoneType returned. While going into the source code of Pruning API, it says the model has to be type keras.Model, but what I am passing has the type keras.engine.training.Model

So, is there is any differnece among both?

1 Answers1

1

Both are the exact same class:

>>> import keras
>>> keras.models.Model
<class 'keras.engine.training.Model'>
>>> keras.Model
<class 'keras.engine.training.Model'>
Dr. Snoopy
  • 55,122
  • 7
  • 121
  • 140