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.IsNan.rst 601 B

12345678910111213141516171819202122232425262728
  1. mindspore.ops.IsNan
  2. ====================
  3. .. py:class:: mindspore.ops.IsNan
  4. 判断输入数据每个位置上的值是否是Nan。
  5. .. math::
  6. out_i = \begin{cases}
  7. & \text{ if } x_{i} = \text{Nan},\ \ True \\
  8. & \text{ if } x_{i} \ne \text{Nan},\ \ False
  9. \end{cases}
  10. 其中 :math:`Nan` 表示的不是number。
  11. **输入:**
  12. - **x** (Tensor) - IsNan的输入,任意维度的Tensor。
  13. **输出:**
  14. Tensor,输出的shape与输入相同,数据类型为bool。
  15. **异常:**
  16. - **TypeError** - `x` 不是Tensor。