VainF / Torch-Pruning

[CVPR 2023] DepGraph: Towards Any Structural Pruning
https://arxiv.org/abs/2301.12900
MIT License
2.75k stars 337 forks source link

AttributeError: 'MagnitudePruner' object has no attribute 'pruning_history' #171

Open chenyuuuma opened 1 year ago

chenyuuuma commented 1 year ago

当我尝试用pruning_history来存储剪枝后模型时报错!我的代码是按照test_load.py写的,请问是版本问题吗?

daixiangzi commented 1 year ago

+1

VainF commented 1 year ago

您好,请尝试一下https://github.com/VainF/Torch-Pruning/blob/master/tests/test_serialization.py,和pruning_history类似但是更简洁。pruning_history的问题我待会捣鼓一下。