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

20 lines
571 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.Bucketize
=======================
.. py:class:: mindspore.ops.Bucketize(boundaries)
根据 `boundaries``input` 进行桶化。
参数:
- **boundaries** (list[float]) - 一个浮点数的有序列表,给出各个存储桶的边界。
输入:
- **input** (Tensor) - 包含搜索值的Tensor。
输出:
Tensorshape与 `input` 的shape相同数据类型为int32。
异常:
- **TypeError** - `boundaries` 不是浮点型的列表。
- **TypeError** - `input` 不是Tensor。