C5w1 - Assignment 2 - Exercise 1 clip()

Hi all,

This is how I clipped: np.clip(a = gradient, a_min = - abs(maxValue), a_max = abs(maxValue), out = None), after looping over [dWax, dWaa, dWya, db, dby]but getting the following error

Could you please provide me with some clue?

Many thanks

Why abs()?
Why out=None?

1 Like

Thanks @TMosh, it helped me tackle the issue!