mindspore.Tensor.exp
- Tensor.exp()
详情请参考
mindspore.ops.exp()
。- 支持平台:
Ascend
GPU
CPU
样例:
>>> import mindspore >>> import numpy as np >>> from mindspore import Tensor >>> input = Tensor(np.array([0.0, 1.0, 3.0]), mindspore.float32) >>> output = Tensor.exp(input) >>> print(output) [ 1. 2.7182817 20.085537]