- Operator function: searches for the position where a given scalar value (self) should be inserted into a sorted 1D tensor (sortedSequence). Returns a tensor with shape [1], indicating the position where the given scalar value should be inserted into the original tensor. If self is of the tensor type, see the document.
- The calculation formula is as follows: Assume that the length of the sequence to be searched is , and the scalar input is .
- When
[object Object], the left insertion point is returned.
- When
[object Object], the right insertion point is returned.
If no that meets the condition exists, is returned.
- When
Each operator has calls. First, the [object Object] API is called to obtain the workspace size required for computation and the executor that contains the operator computation flow. Then, the [object Object] API is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]Return Value
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic description: The default deterministic implementation of
[object Object]is used.
The following example is for reference only. For details, see .
[object Object]