mindspore.mint.log1p
- mindspore.mint.log1p(input)[source]
Compute the natural logarithm of (tensor + 1) element-wise.
- Parameters
input (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
Examples
>>> import mindspore >>> x = mindspore.tensor([1.0, 2.0, 4.0], mindspore.float32) >>> output = mindspore.mint.log1p(x) >>> print(output) [0.6931472 1.0986123 1.609438 ]