R/activation_functions.R
relu.Rd
relu transformation
relu(x)
A numeric vector or matrix on which relu transformation is going to be applied.
A numeric vector or matrix after relu transformation.
relu(matrix(1:4, , nrow = 2)) #> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4