Implement ReLU activation
BeginnerImplement ReLU: ReLU(x) = max(0, x). Apply it to a list of numbers.
Input: One line of space-separated numbers.
Output: One line of space-separated numbers after applying ReLU (integers where applicable).
Example:
- Input:
-1 0 2 3 - Output:
0 0 2 3
Loading editor...
Output
Run or submit to see output.