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