Creates a dataset that computes a group-by on input_dataset
.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.GroupByReducerDataset(
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
.
Args | |
---|---|
input_
|
A Tensor of type variant .
A variant tensor representing the input dataset.
|
key_
|
A list of Tensor objects.
A list of tensors, typically values that were captured when
building a closure for key_ .
|
init_
|
A list of Tensor objects.
A list of tensors, typically values that were captured when
building a closure for init_ .
|
reduce_
|
A list of Tensor objects.
A list of tensors, typically values that were captured when
building a closure for reduce_ .
|
finalize_
|
A list of Tensor objects.
A list of tensors, typically values that were captured when
building a closure for finalize_ .
|
key_
|
A function decorated with @Defun.
A function mapping an element of input_ , concatenated
with key_ to a scalar value of type DT_INT64.
|
init_
|
A function decorated with @Defun.
A function mapping a key of type DT_INT64, concatenated with
init_ to the initial reducer state.
|
reduce_
|
A function decorated with @Defun.
A function mapping the current reducer state and an element of input_ ,
concatenated with reduce_ to a new reducer state.
|
finalize_
|
A function decorated with @Defun. A function mapping the final reducer state to an output element. |
output_
|
A list of tf. that has length >= 1 .
|
output_
|
A list of shapes (each a tf.TensorShape or list of ints ) that has length >= 1 .
|
name
|
A name for the operation (optional). |
Returns | |
---|---|
A Tensor of type variant .
|