Announcing the TensorFlow Dev Summit 2020 Learn more

tf.nn.swish

View source on GitHub

Computes the Swish activation function: x * sigmoid(x).

Aliases:

tf.nn.swish(features)

Source: "Searching for Activation Functions" (Ramachandran et al. 2017) https://arxiv.org/abs/1710.05941

Args:

  • features: A Tensor representing preactivation values.
  • name: A name for the operation (optional).

Returns:

The activation value.