You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ops.Eps.rst 721 B

12345678910111213141516171819202122232425
  1. mindspore.ops.Eps
  2. =================
  3. .. py:class:: mindspore.ops.Eps(*args, **kwargs)
  4. 创建一个填充 `x` 数据类型最小值的Tensor。
  5. **输入:**
  6. - **x** (Tensor) - 用于获取其数据类型最小值的Tensor。数据类型必须为float16或float32。shape为 :math:`(N,*)` ,其中 :math:`*` 表示任意的附加维度数。
  7. **输出:**
  8. Tensor,具有与 `x` 相同的数据类型和shape,填充了 `x` 数据类型的最小值。
  9. **支持平台:**
  10. ``Ascend`` ``GPU`` ``CPU``
  11. **样例:**
  12. >>> x = Tensor([4, 1, 2, 3], mindspore.float32)
  13. >>> output = ops.Eps()(x)
  14. >>> print(output)
  15. [1.5258789e-05 1.5258789e-05 1.5258789e-05 1.5258789e-05]