tf.raw_ops.GroupByReducerDataset
Stay organized with collections
Save and categorize content based on your preferences.
Creates a dataset that computes a group-by on input_dataset
.
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_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 or list of ints ) that has length >= 1 .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type variant .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.GroupByReducerDataset\n\n\u003cbr /\u003e\n\nCreates a dataset that computes a group-by on `input_dataset`.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.GroupByReducerDataset`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/GroupByReducerDataset)\n\n\u003cbr /\u003e\n\n tf.raw_ops.GroupByReducerDataset(\n input_dataset,\n key_func_other_arguments,\n init_func_other_arguments,\n reduce_func_other_arguments,\n finalize_func_other_arguments,\n key_func,\n init_func,\n reduce_func,\n finalize_func,\n output_types,\n output_shapes,\n name=None\n )\n\nCreates a dataset that computes a group-by on `input_dataset`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `input_dataset` | A `Tensor` of type `variant`. A variant tensor representing the input dataset. |\n| `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`. |\n| `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`. |\n| `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`. |\n| `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`. |\n| `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. |\n| `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. |\n| `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. |\n| `finalize_func` | A function decorated with @Defun. A function mapping the final reducer state to an output element. |\n| `output_types` | A list of `tf.DTypes` that has length `\u003e= 1`. |\n| `output_shapes` | A list of shapes (each a [`tf.TensorShape`](../../tf/TensorShape) or list of `ints`) that has length `\u003e= 1`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `variant`. ||\n\n\u003cbr /\u003e"]]