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

18 lines
687 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.nansum
====================
.. py:function:: mindspore.ops.nansum(input, axis=None, keepdims=False, *, dtype=None)
忽略NaN值按指定轴计算输入tensor的和。
参数:
- **input** (Tensor) - 输入Tensor。
- **axis** (Union[int, tuple(int)], 可选) - 指定轴。假设 `input` 的秩为r取值范围[-r,r),默认 ``None`` 对tensor中的所有元素求和。
- **keepdims** (bool, 可选) - 输出tensor是否保持维度默认 ``False`` ,不保留维度。
关键字参数:
- **dtype** (:class:`mindspore.dtype`, 可选) - 指定数据类型,默认 ``None``
返回:
Tensor