model-optimization icon indicating copy to clipboard operation
model-optimization copied to clipboard

Pruning error of transfer learning model MobilenetV3 Large !

Open somum opened this issue 4 years ago • 1 comments

Trying to prune MobilenetV3 Large model after training but showing an error of -

ValueError: Please initialize Prune with a supported layer. Layers should either be supported by the PruneRegistry (built-in keras layers) or should be a PrunableLayer instance, or should has a customer defined get_prunable_weights method. You passed: <class 'tensorflow.python.keras.layers.preprocessing.image_preprocessing.Rescaling'>

I was following the guide of Tensorflow here.

somum avatar Oct 14 '21 10:10 somum

Hi @somum

This has been resolved in https://github.com/tensorflow/model-optimization/pull/754 Could you sync your tfmot with HEAD or nightly and re-test the code?

rino20 avatar Dec 08 '21 04:12 rino20