| This operator works as bucketize in tensorflow and
| digitize in numpy. It bucketizes the input ‘X’
| based on argument ‘boundaries’.
|
| For each value x in input ‘data’, the operator
| returns index i given boundaries[i-1] < x <=
| boundaries[i].
|
| If values in ‘data’ are beyond the bounds of
| boundaries, 0 or len(boundaries) is returned as
| appropriate.
|
| The boundaries need to be monotonically
| increasing.
|
| For example
|
| If data = [2, 4, 1] and boundaries = [0.1, 2.5],
| then
|
| output = [1, 2, 1]
|
| If data = [[2, 3], [4, 1], [2, 5]]
| and boundaries = [0.1, 2.5], then
|
| output = [[1, 2], [2, 1], [1, 2]]