nnf_relu6: Relu6

View source: R/nnf-activation.R

nnf_relu6R Documentation

Relu6

Description

Applies the element-wise function ReLU6(x) = min(max(0,x), 6).

Usage

nnf_relu6(input, inplace = FALSE)

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 May 29, 2024, 9:54 a.m.