fn
bucketize_op
→TensorImplPtrint bucketize_op(const int & values, const int & boundaries, bool right)Python wrappers
Public Python APIs implemented by this engine symbol.Bucket-index lookup: alias of searchsorted_op with the operand order flipped to match the bucket-first convention.
Composite — delegates directly to searchsorted_op(boundaries, values, right). Not differentiable.
Math
with = boundaries and the comparison selected by
right per searchsorted_op.
See Also
searchsorted_op.
Parameters
valuesTensorImplPtrQuery tensor of arbitrary shape.
boundariesTensorImplPtr1-D ascending-sorted boundary tensor.
rightboolIf
true, queries equal to a boundary land in the higher bucket.Returns
TensorImplPtrint64 tensor of the same shape as values whose entries are bucket indices in .