tf.compat.v1.tuple
Stay organized with collections
Save and categorize content based on your preferences.
Group tensors together.
tf.compat.v1.tuple(
tensors, name=None, control_inputs=None
)
This creates a tuple of tensors with the same values as the tensors
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
returned by tuple
are only available after all the parallel computations
are done.
See also tf.group
and
tf.control_dependencies
.
Args |
tensors
|
A list of Tensor s or IndexedSlices , some entries can be None .
|
name
|
(optional) A name to use as a name_scope for the operation.
|
control_inputs
|
List of additional ops to finish before returning.
|
Raises |
ValueError
|
If tensors does not contain any Tensor or IndexedSlices .
|
TypeError
|
If control_inputs is not a list of Operation or Tensor
objects.
|
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 2022-11-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-04 UTC."],[],[]]