TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfa.activations.tanhshrink

View source on GitHub

Applies the element-wise function: x - tanh(x)

tfa.activations.tanhshrink(x)

Args:

  • features: A Tensor. Must be one of the following types: float16, float32, float64.

Returns:

A Tensor. Has the same type as features.