nnf_selu {torch} | R Documentation |
Selu
Description
Applies element-wise,
,
with and
.
Usage
nnf_selu(input, inplace = FALSE)
nnf_selu_(input)
Arguments
input |
(N,*) tensor, where * means, any number of additional dimensions |
inplace |
can optionally do the operation in-place. Default: FALSE |
Examples
if (torch_is_installed()) {
x <- torch_randn(2, 2)
y <- nnf_selu(x)
nnf_selu_(x)
torch_equal(x, y)
}
[Package torch version 0.13.0 Index]