Optional
side: "left" | "right"An N-D int32 tensor the size of values containing the result of applying either lower bound or upper bound (depending on side) to each value. The result is not a global index to the entire Tensor, but the index in the last dimension.
Generated using TypeDoc
Searches for where a value would go in a sorted sequence.
This is not a method for checking containment (like javascript in).
The typical use case for this operation is "binning", "bucketing", or "discretizing". The values are assigned to bucket-indices based on the edges listed in 'sortedSequence'. This operation returns the bucket-index for each value.
The side argument controls which index is returned if a value lands exactly on an edge.
The axis is not settable for this operation. It always operates on the innermost dimension (axis=-1). The operation will accept any number of outer dimensions.
Note: This operation assumes that 'sortedSequence' is sorted along the innermost axis, maybe using 'sort(..., axis=-1)'. If the sequence is not sorted no error is raised and the content of the returned tensor is not well defined.