
Applies element-wise,
nnf_selu(input, inplace = FALSE)nnf_selu_(input)
(N,*) tensor, where * means, any number of additional dimensions
can optionally do the operation in-place. Default: FALSE
if (torch_is_installed()) {
x <- torch_randn(2, 2)
y <- nnf_selu(x)
nnf_selu_(x)
torch_equal(x, y)
}
Run the code above in your browser using DataLab