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
Unavailable parameters are already taken care of in sanitize_parameters_to_prune method in ModelPruning callback. A trivial check to ensure the attribute, when present, is not None should solve this. Happy to send a PR.
🐛 Bug
ModelPruning callback fails when a module parameter is
None
. This can happen, for instance, in aLinear()
whenbias=False
.Please reproduce using the BoringModel
https://colab.research.google.com/drive/1UApprg-5htIQbosiSyyLLXm1B8wE8EbN?usp=sharing
Expected behavior
Unavailable parameters are already taken care of in
sanitize_parameters_to_prune
method inModelPruning
callback. A trivial check to ensure the attribute, when present, is notNone
should solve this. Happy to send a PR.Environment
The text was updated successfully, but these errors were encountered: