class_docstr: Clip norm of gradients
class_docstr_tok: ["Clip","norm","of","gradients"]
code: def before_step(self):
      nn.utils.clip_grad_norm_(
          self.parameters(), self.max_norm, self.norm_type
      )
  
imports: from __future__ import annotations
  from ..basics import *
  from .progress import *
  from .fp16 import *
label_desc: Use image node_id 2 for calling the GradientClip obj's underlying member method code with example usage: obj.before_step() without return types