Perform the ReLU (Rectified Linear Unit) activation function on an input matrix:
The ReLU function is defined as:
Sample Run Results
Hit "Run" to test your code with sample inputs
Loading editor...
CUDA C++ environment
For the best coding experience, please switch to a desktop device to write and submit your solution.