tf.tuple
Groups tensors together.
tf.tuple(
tensors, control_inputs=None, name=None
)
The returned tensors have the same value as the input tensors, but they
are computed only after all the input tensors have been computed.
See also tf.group
and tf.control_dependencies
.
Args |
tensors
|
A list of Tensor s or IndexedSlices , some entries can be None .
|
control_inputs
|
List of additional ops to finish before returning.
|
name
|
(optional) A name to use as a name_scope for the operation.
|
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 2021-08-16 UTC.
[null,null,["Last updated 2021-08-16 UTC."],[],[]]