assertself.pruning_iterations/self.pruning_steps>10,"To guarantee the performance of GMP pruner, pruning iterations must be larger than pruning steps by a margin."
self._need_prune_once=False
self._prepare_training_hyper_parameters()
def_prepare_training_hyper_parameters(self):
...
...
@@ -330,6 +331,7 @@ class GMPUnstructuredPruner(UnstructuredPruner):
assertself.pruning_iterations/self.pruning_steps>10,"To guarantee the performance of GMP pruner, pruning iterations must be larger than pruning steps by a margin."
self._need_prune_once=False
self._prepare_training_hyper_parameters()
def_prepare_training_hyper_parameters(self):
...
...
@@ -375,6 +376,7 @@ class GMPUnstructuredPruner(UnstructuredPruner):