mindspore.ops.IsInf ==================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.3.1/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/r2.3.1/docs/api/api_python/ops/mindspore.ops.IsInf.rst :alt: 查看源文件 .. py:class:: mindspore.ops.IsInf 确定输入Tensor每个位置上的元素是否为无穷大或无穷小。 更多参考详见 :func:`mindspore.ops.isinf`。 输入: - **x** (Tensor) - 输入Tensor。 输出: Tensor,shape与相同的输入,数据的类型为bool。