Optimization & Training Dynamics · Problem 3 of 5
Implement global gradient-norm clipping over a list of tensors.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
import numpy as np
def clip_grad_norm(grads, max_norm):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Implement global gradient-norm clipping over a list of tensors.
Implement the function/class skeleton in the editor. Any correct approach is accepted.