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

18 lines
574 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.nanmean
=====================
.. py:function:: mindspore.ops.nanmean(input, axis=None, keepdims=False, *, dtype=None)
忽略NaN值按指定轴计算输入tensor的平均值。
参数:
- **input** (Tensor) - 输入tensor。
- **axis** (int, 可选) - 指定轴,默认 ``None``
- **keepdims** (bool, 可选) - 输出tensor是否保留维度默认 ``False``
关键字参数:
- **dtype** (:class:`mindspore.dtype`, 可选) - 指定数据类型,默认 ``None``
返回:
Tensor