mindspore/docs/api/api_python/mint/mindspore.mint.func_histc.rst

24 lines
855 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.mint.histc
====================
.. py:function:: mindspore.mint.histc(input, bins=100, min=0, max=0)
计算tensor的直方图。
元素被分类到 `min``max` 之间的等宽箱中。
如果 `min``max` 均为0则使用数据的最小值和最大值。
低于最小值和高于最大值的元素将被忽略。
.. warning::
如果 `input` 是mindspore.int64有效取值在mindspore.int32范围内超出范围可能产生精度误差。
参数:
- **input** (Tensor) - 输入tensor。
- **bins** (int, 可选) - 直方图箱的数量。默认 ``100``
- **min** (int, float, 可选) - 直方图数据范围的最小值。默认 ``0``
- **max** (int, float, 可选) - 直方图数据范围的最大值。默认 ``0``
返回:
Tensor