mindspore2022/docs/api/api_python/ops/mindspore.ops.Eps.rst

20 lines
607 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.Eps
=================
.. py:class:: mindspore.ops.Eps()
创建一个与输入数据类型和shape都相同的Tensor元素值为对应数据类型能表达的最小值。
**输入:**
- **x** (Tensor) - 用于获取其数据类型能表达的最小值的任意维度的Tensor。数据类型必须为float16或float32。
**输出:**
Tensor具有与 `x` 相同的数据类型和shape填充了 `x` 数据类型的最小值。
**异常:**
- **TypeError** - `x` 不是Tensor。
- **TypeError** - `x` 的数据类型不是float16或者float32。