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