mindspore.ops.Expm1
- class mindspore.ops.Expm1[源代码]
Returns exponential then minus 1 of a tensor element-wise.
Refer to
mindspore.ops.expm1()
for more detail.- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> x = Tensor(np.array([0.0, 1.0, 2.0, 4.0]), mindspore.float32) >>> expm1 = ops.Expm1() >>> output = expm1(x) >>> print(output) [ 0. 1.718282 6.389056 53.598152]