nnf_relu: Relu

Description Usage Arguments

View source: R/nnf-activation.R

Description

Applies the rectified linear unit function element-wise.

Usage

1
2
3
nnf_relu(input, inplace = FALSE)

nnf_relu_(input)

Arguments

input

(N,*) tensor, where * means, any number of additional dimensions

inplace

can optionally do the operation in-place. Default: FALSE


torch documentation built on Oct. 7, 2021, 9:22 a.m.