nn_selu {torch} | R Documentation |
SELU module
Description
Applied element-wise, as:
Usage
nn_selu(inplace = FALSE)
Arguments
inplace |
(bool, optional): can optionally do the operation in-place. Default: |
Details
with and
.
More details can be found in the paper Self-Normalizing Neural Networks.
Shape
Input:
where
*
means, any number of additional dimensionsOutput:
, same shape as the input
Examples
if (torch_is_installed()) {
m <- nn_selu()
input <- torch_randn(2)
output <- m(input)
}
[Package torch version 0.13.0 Index]