You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eval_func(function): The callback function used to evaluate the model. It should accept a instance of `paddle.static.Program` as argument and return a score on test dataset.
36
+
model_dir(str): Directory path to load model. If you want to load onnx model, only set ``model_dir=model.onnx``.
37
+
model_filename(str): Specify model_filename. If you want to load onnx model, model filename should be None.
38
+
params_filename(str): Specify params_filename. If you want to load onnx model, params filename should be None.
39
+
analysis_file(str): The file to save the sensitivities. It will append the latest computed sensitivities into the file. And the sensitivities in the file would not be computed again. This file can be loaded by `pickle` library.
40
+
pruned_ratios(list): The ratios to be pruned.
41
+
criterion(str|function): The criterion used to sort channels for pruning. Currently supports l1_ norm, bn_scale, geometry_median. Default: l1_norm.
0 commit comments