ReLU Forward Layer

The forward ReLU layer computes f(x) = max(0, x) for input argument x.

Problem Statement

Given a p-dimensional tensor X of size n1 x n2 x ... x np, the problem is to compute a p-dimensional tensor Y = (yi1...ip) of size n1 x n2 x ... x np, where:

yi1...ip = max(0, xi1...ip)

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)