Skip to contents

It is defined as:

f(x) = x - tanh(x).

Usage

activation_tanh_shrink(x)

Arguments

x

Input tensor.

Value

A tensor, the result from applying the activation to the input tensor x.