tf.keras.activations.exponential

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)
b.numpy()
array([0.04978707,  0.36787945,  1.,  2.7182817 , 20.085537], dtype=float32)

x Input tensor.

Tensor with exponential activation: exp(x).