ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


TensorFlow 1 version View source on GitHub

Exponential activation function.

For example:

a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32)
b = tf.keras.activations.exponential(a)
array([0.04978707,  0.36787945,  1.,  2.7182817 , 20.085537], dtype=float32)

x Input tensor.

Tensor with exponential activation: exp(x).