TensorFlow 2.0 RC is available Learn more

tf.group

TensorFlow 2.0 version View source on GitHub

Create an op that groups multiple operations.

Aliases:

  • tf.compat.v1.group
  • tf.compat.v2.group
tf.group(
    *inputs,
    **kwargs
)

When this op finishes, all ops in inputs have finished. This op has no output.

See also tf.tuple and tf.control_dependencies.

Args:

  • *inputs: Zero or more tensors to group.
  • name: A name for this operation (optional).

Returns:

An Operation that executes all its inputs.

Raises:

  • ValueError: If an unknown keyword argument is provided.