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
When I want to implement differential privacy for the model, I customize the gradient clipping before optimizer.step(). The add custom noise to the model after optimizer.step(). I cannot get Trainer.optimizer in the callback function, it shows as None. Is it possible to get the reference of Trainer directly in callback?