BucketizeΒΆ

Returns the indices of the buckets to which each value in the input belongs.

Abstract Signature:

Bucketize(input: Tensor, boundaries: Tensor, out_int32: bool = False, right: bool = False)

PyTorch

API: torch.bucketize
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.searchsorted
Strategy: Direct Mapping

NumPy

API: numpy.searchsorted
Strategy: Direct Mapping

TensorFlow

API: tf.searchsorted
Strategy: Direct Mapping