mindspore.Tensor.log
- mindspore.Tensor.log()
详情请参考
mindspore.ops.log()
。- 支持平台:
Ascend
GPU
CPU
样例:
>>> import mindspore >>> import numpy as np >>> from mindspore import Tensor >>> x = Tensor(np.array([1.0, 2.0, 4.0]), mindspore.float32) >>> output = x.log() >>> print(output) [0. 0.6931472 1.3862944]