mindspore/docs/api/api_python/ops/mindspore.ops.FloatStatus.rst

16 lines
591 B
ReStructuredText
Raw Permalink 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.FloatStatus
==========================
.. py:class:: mindspore.ops.FloatStatus
确定元素是否包含非数字NaN、正无穷还是负无穷。0表示正常1表示溢出。
输入:
- **x** (Tensor) - 输入Tensor。数据类型必须为float16、float32或float64。 :math:`(N,*)` ,其中 :math:`*` 表示任意数量的附加维度。
输出:
Tensorshape为 :math:`(1,)` ,数据类型为 `mindspore.dtype.float32`
异常:
- **TypeError** - 如果 `x` 的数据类型不是float16float32或float64。