ELU module
Applies the element-wise function:
nn_elu(alpha = 1, inplace = FALSE)
alpha
: the value for the ELU formulation. Default: 1.0inplace
: can optionally do the operation in-place. Default: FALSE
*
means, any number of additional dimensionsif (torch_is_installed()) { m <- nn_elu() input <- torch_randn(2) output <- m(input) }
Useful links