exp¶
dragon.math.
exp
(
inputs,
**kwargs
)[source]¶Compute the exponential of input.
\[\text{out} = \exp(\text{input}) \]Examples:
x = dragon.constant([1., 2., 3.]) print(dragon.math.exp(x)) # [2.71828183, 7.3890561, 20.08553692]
- Parameters:
- inputs (dragon.Tensor) – The input tensor.
- Returns:
dragon.Tensor – The output tensor.