mindspore.ops.eps
- mindspore.ops.eps(x)[source]
Create a tensor with the same data type and shape as input, and the element value is the minimum value that the corresponding data type can express.
- Parameters
x (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> x = mindspore.tensor([4, 1, 2, 3], mindspore.float32) >>> mindspore.ops.eps(x) Tensor(shape=[4], dtype=Float32, value= [ 1.19209290e-07, 1.19209290e-07, 1.19209290e-07, 1.19209290e-07])