mindspore.ops.csr_isinf ======================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.func_csr_isinf.rst :alt: 查看源文件 .. py:function:: mindspore.ops.csr_isinf(x: CSRTensor) 确定输入CSRTensor每个位置上的元素是否为无穷大或无穷小。 .. math:: out_i = \begin{cases} & \text{ if } x_{i} = \text{Inf},\ \ True \\ & \text{ if } x_{i} \ne \text{Inf},\ \ False \end{cases} 其中 :math:`Inf` 表示不是一个数字。 参数: - **x** (CSRTensor) - IsInf的输入。 返回: CSRTensor,shape与相同的输入,数据的类型为bool。 异常: - **TypeError** - 如果 `x` 不是CSRTensor。