|View source on GitHub|
Graph.control_dependencies() using the default graph.
Compat aliases for migration
See Migration guide for more details.
tf.control_dependencies( control_inputs )
tf.Graph.control_dependencies for more details.
Note: In TensorFlow 2 with eager and/or Autograph, you should not require this method, as code executes in the expected order. Only use
tf.control_dependencieswhen working with v1-style code or in a graph context such as inside
When eager execution is enabled, any callable object in the
control_inputs list will be called.
| || A list of |
|A context manager that specifies control dependencies for all operations constructed within the context.|
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.