Function relu
pub fn relu<const D: usize>(tensor: Tensor<D>) -> Tensor<D>Expand description
Applies the rectified linear unit function element-wise as described in the paper Deep Learning using Rectified Linear Units (ReLU).
ReLU(x) = max(0, x)
pub fn relu<const D: usize>(tensor: Tensor<D>) -> Tensor<D>Applies the rectified linear unit function element-wise as described in the paper Deep Learning using Rectified Linear Units (ReLU).
ReLU(x) = max(0, x)