PocketFlow icon indicating copy to clipboard operation
PocketFlow copied to clipboard

channel pruning for self defined models

Open jimengying opened this issue 5 years ago • 2 comments

当我用--learner=chn-pruned-rmt
--cpr_prune_ratio=0.40 压缩自定义模型的时候,发现无论我设置的cpr_prune_ratio为多少,最后压缩完成的模型的参数量都是一样的。

jimengying avatar Apr 22 '19 04:04 jimengying

The *.ckpt model produced by any channel pruned learners does not remove all-zero channels, therefore, the model size stays the same. These all-zero channels will be removed when exporting to *.pb and *.tflite models.

jiaxiang-wu avatar May 06 '19 16:05 jiaxiang-wu

您好,我是用dcp方法压缩模型的,发现不管设置剪枝率多少,模型大小不变,而且转为.pb格式后模型大小也不变,不知道为什么,求解释。。。谢谢了

huoguangdiandian avatar Aug 28 '19 07:08 huoguangdiandian