mindspore.ops.Exp
- class mindspore.ops.Exp[source]
Returns exponential of a tensor element-wise.
Refer to
mindspore.ops.exp()
for more details.- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> x = Tensor(np.array([0.0, 1.0, 3.0]), mindspore.float32) >>> exp = ops.Exp() >>> output = exp(x) >>> print(output) [ 1. 2.718282 20.085537]