See the guide: Building Graphs > Utility functions
Graph.control_dependencies() using the default graph.
tf.Graph.control_dependencies for more details.
control_inputs: A list of
Tensorobjects which must be executed or computed before running the operations defined in the context. Can also be
Noneto clear the control dependencies.
A context manager that specifies control dependencies for all operations constructed within the context.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.