Apply the ReLU activation element-wise: max(0,x).
Implement solve(x).
Returns. Return a NumPy array of the same shape: negative values become 0, others are unchanged.
Example 1
Input:
solve([-2, 0, 3])
Output:
[0, 0, 3]
Example 2
Input:
solve([[-1.5, 2.5], [0.0, -0.1]])
Output:
[[0.0, 2.5], [0.0, 0.0]]
No results yet
Run your code to check it against the examples, or submit to run every test.