mindspore/docs/api/api_python/ops/mindspore.ops.func_isfinite...

23 lines
574 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.isfinite
======================
.. py:function:: mindspore.ops.isfinite(x)
判断输入数据每个位置上的值是否是有限数。
.. math::
out_i = \begin{cases}
& \text{ if } x_{i} = \text{Finite},\ \ True \\
& \text{ if } x_{i} \ne \text{Finite},\ \ False
\end{cases}
参数:
- **x** (Tensor) - IsFinite的输入任意维度的Tensor。
返回:
Tensor输出的shape与输入相同数据类型为bool。
异常:
- **TypeError** - `x` 不是Tensor。