Skip to contents

Applies element-wise, \(Tanhshrink(x) = x - Tanh(x)\)

Usage

nnf_tanhshrink(input)

Arguments

input

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