Report whether a gradient is exploding: its Euclidean norm is strictly larger than threshold.
Implement solve(grad, threshold).
Returns. Return a Python bool.
Example 1
Input:
solve([3.0, 4.0], 4.0)
Output:
True
Example 2
Input:
solve([3.0, 4.0], 5.0)
Output:
False
No results yet
Run your code to check it against the examples, or submit to run every test.