# tf.raw_ops.Bucketize

<br />

Bucketizes 'input' based on 'boundaries'.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.Bucketize`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Bucketize)

<br />

    tf.raw_ops.Bucketize(
        input, boundaries, name=None
    )

For example, if the inputs are
boundaries = \[0, 10, 100\]
input = \[\[-5, 10000\]
\[150, 10\]
\[5, 100\]\]

then the output will be
output = \[\[0, 3\]
\[3, 2\]
\[1, 3\]\]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`. Any shape of Tensor contains with int or float type. |
| `boundaries` | A list of `floats`. A sorted list of floats gives the boundary of the buckets. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `int32`. ||

<br />