jshilong / FisherPruning

Group Fisher Pruning for Practical Network Compression(ICML2021)
152 stars 15 forks source link

About register_backward_hook #26

Open yumath opened 1 year ago

yumath commented 1 year ago

In PyTorch >= 1.8, this register_backward_hook can't be used directly, and register_full_backward_hook always return "using input grad before output grad bla...". Did you know how to replace register_backward_hook in higher PyTorch version?