|TensorFlow 2 version||View source on GitHub|
Group tensors together.
tf.tuple( tensors, name=None, control_inputs=None )
This creates a tuple of tensors with the same values as the
argument, except that the value of each tensor is only returned after the
values of all tensors have been computed.
control_inputs contains additional ops that have to finish before this op
finishes, but whose outputs are not returned.
This can be used as a "join" mechanism for parallel computations: all the
argument tensors can be computed in parallel, but the values of any tensor
tuple are only available after all the parallel computations
tensors: A list of
IndexedSlices, some entries can be
name: (optional) A name to use as a
name_scopefor the operation.
control_inputs: List of additional ops to finish before returning.
tensorsdoes not contain any
control_inputsis not a list of