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

28 lines
1.3 KiB
ReStructuredText
Raw 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.LowerBound
========================
.. py:class:: mindspore.ops.LowerBound(out_type=mstype.int32)
返回一个Tensor包含用于查找输入 `sorted_x` 中值下限的索引。
此操作将应用到输入序列的每个元素。
参数:
- **out_type** (:class:`mindspore.dtype`,可选) - 可选的数据类型, `mindspore.dtype.int32``mindspore.dtype.int64` 。默认值: `mindspore.dtype.int32`
输入:
- **sorted_x** (Tensor) - 输入Tensor的数据类型为实数且每行数据必须按升序排列。秩必须为2。
- **values** (Tensor) - 输入Tensor的数据类型与 `sorted_x` 一致,且 `values``sorted_x` 的第一维必须相等。秩必须为2。
输出:
Tensor其数据类型由 `out_type` 决定其shape与 `values` 相同。
异常:
- **TypeError** - 若 `sorted_x` 不是Tensor。
- **TypeError** - 若 `values` 不是Tensor。
- **TypeError** - 若 `out_type` 不合法。
- **TypeError** - 若 `sorted_x``values` 的类型不一致。
- **ValueError** - 若 `sorted_x` 的秩不等于2。
- **ValueError** - 若 `values` 的秩不等于2。
- **ValueError** - 若 `sorted_x``values` shape的第1维不相等。