# tf.raw_ops.ExperimentalGroupByReducerDataset

<br />

Creates a dataset that computes a group-by on `input_dataset`.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.ExperimentalGroupByReducerDataset(
        input_dataset,
        key_func_other_arguments,
        init_func_other_arguments,
        reduce_func_other_arguments,
        finalize_func_other_arguments,
        key_func,
        init_func,
        reduce_func,
        finalize_func,
        output_types,
        output_shapes,
        name=None
    )

Creates a dataset that computes a group-by on `input_dataset`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_dataset` | A `Tensor` of type `variant`. A variant tensor representing the input dataset. |
| `key_func_other_arguments` | A list of `Tensor` objects. A list of tensors, typically values that were captured when building a closure for `key_func`. |
| `init_func_other_arguments` | A list of `Tensor` objects. A list of tensors, typically values that were captured when building a closure for `init_func`. |
| `reduce_func_other_arguments` | A list of `Tensor` objects. A list of tensors, typically values that were captured when building a closure for `reduce_func`. |
| `finalize_func_other_arguments` | A list of `Tensor` objects. A list of tensors, typically values that were captured when building a closure for `finalize_func`. |
| `key_func` | A function decorated with @Defun. A function mapping an element of `input_dataset`, concatenated with `key_func_other_arguments` to a scalar value of type DT_INT64. |
| `init_func` | A function decorated with @Defun. A function mapping a key of type DT_INT64, concatenated with `init_func_other_arguments` to the initial reducer state. |
| `reduce_func` | A function decorated with @Defun. A function mapping the current reducer state and an element of `input_dataset`, concatenated with `reduce_func_other_arguments` to a new reducer state. |
| `finalize_func` | A function decorated with @Defun. A function mapping the final reducer state to an output element. |
| `output_types` | A list of `tf.DTypes` that has length `>= 1`. |
| `output_shapes` | A list of shapes (each a [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/TensorShape) or list of `ints`) that has length `>= 1`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />