I am applying the pruning function from tensorflow_model_optimization
, tfmot.sparsity.keras.prune_low_magnitude()
to MobileNetV2.
Is there any way to set only some layers of the model to be prunable? For training, there is a method "set_trainable
", but I haven't found any equivalent for pruning.
Any ideas or comments will be appreciated! :)