tanh_shrink

Contents

tanh_shrink#

class brainpy.math.tanh_shrink(x)[source]#

Applies the element-wise function:

\[\text{Tanhshrink}(x) = x - \tanh(x)\]