code: def clip_grad(learn:Learner, clip:float=0.1)->Learner:
      "Add gradient clipping of `clip` during training."
      learn.callback_fns.append(partial(GradientClipping, clip=clip))
      return learf clip_grad(learn:Learner, clip:float=0.1)->Learner:
      "Add gradient clipping of `clip` during training."
      learn.callback_fns.append(partial(GradientClipping, clip=clip))
      return learn
docs: Add gradient clipping of `clip` during training.