grad_clip
¶
Gradient norm clipping callback.
Clips gradients on modules returned by
method.get_grad_clip_targets() before the optimizer step.
Optionally logs per-module grad norms to the tracker.
grad_clip
¶Gradient norm clipping callback.
Clips gradients on modules returned by
method.get_grad_clip_targets() before the optimizer step.
Optionally logs per-module grad norms to the tracker.