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
Thanks again for your great work and code.
I tried different ways to take care of pruned weights, i.e. keep them zero, for example running the following line for each batch:
output.register_hook(lambda grad: grad * mask.float())
But this is very slow. I looked for your solution as yours is much faster but could not find the specific lines. Can you please elaborate on what you do to prevent pruned weights from updating (gradients backprop)?
Thanks again for your great work and code.
I tried different ways to take care of pruned weights, i.e. keep them zero, for example running the following line for each batch:
output.register_hook(lambda grad: grad * mask.float())
But this is very slow. I looked for your solution as yours is much faster but could not find the specific lines. Can you please elaborate on what you do to prevent pruned weights from updating (gradients backprop)?