mindspore.ops.Eps
- class mindspore.ops.Eps[source]
Creates a tensor filled with x dtype minimum value.
- Inputs:
x (Tensor) - Input tensor. The data type must be float16 or float32. \((N,*)\) where \(*\) means, any number of additional dimensions.
- Outputs:
Tensor, has the same type and shape as x, but filled with x dtype minimum val.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> x = Tensor([4, 1, 2, 3], mindspore.float32) >>> output = ops.Eps()(x) >>> print(output) [1.5258789e-05 1.5258789e-05 1.5258789e-05 1.5258789e-05]