Report whether a gradient is vanishing: its Euclidean norm is strictly smaller than threshold.
Implement solve(grad, threshold).
Returns. Return a Python bool.
Example 1
Input:
solve([0.03, 0.04], 0.1)
Output:
True
Example 2
Input:
solve([0.3, 0.4], 0.1)
Output:
False
Example 3
Input:
solve([0.06, 0.08], 0.1)
Output:
False
No results yet
Run your code to check it against the examples, or submit to run every test.