class_docstr: A `Dataset` that groups its input and performs a reduction.
class_docstr_tok: ["A","`","Dataset","`","that","groups","its","input","and","performs","a","reduction","."]
docstr: See `group_by_reducer()` for details.
docstr_tok: ["See","`","group_by_reducer","(",")","`","for","details","."]
code: def __init__(self, input_dataset, key_func, reducer):
      """See `group_by_reducer()` for details."""
      self._input_dataset = input_dataset
      self._make_key_func(key_func, input_dataset)
      self._make_init_func(reducer.init_func)
      self._make_reduce_func(reducer.reduce_func, input_dataset)
      self._make_finalize_func(reducer.finalize_func)
      variant_tensor = ged_ops.experimental_group_by_reducer_dataset(
          self._input_dataset._variant_tensor,  # pylint: disable=protected-access
          self._key_func.function.captured_inputs,
          self._init_func.function.captured_inputs,
          self._reduce_func.function.captured_inputs,
          self._finalize_func.function.captured_inputs,
          key_func=self._key_func.function,
          init_func=self._init_func.function,
          reduce_func=self._reduce_func.function,
          finalize_func=self._finalize_func.function,
          **self._flat_structure,
      )
      super(_GroupByReducerDataset, self).__init__(
          input_dataset, variant_tensor
      )
  
imports: from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import structured_function
  from tensorflow.python.data.util import nest
  from tensorflow.python.data.util import structure
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new _GroupByReducerDataset object from inherited base classes: dataset_ops with example: obj = _GroupByReducerDataset(input_dataset, key_func, reducer)