View source on GitHub |
Exponential activation function.
tf.keras.activations.exponential(
x
)
>>> 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)
. Tensor will be of same
shape and dtype of input x
.