|TensorFlow 2 version||View source on GitHub|
Graph.control_dependencies() using the default graph.
for more details.
When eager execution is enabled, any callable object in the
list will be called.
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. If eager execution is enabled, any callable object in the
control_inputslist will be called.
A context manager that specifies control dependencies for all operations constructed within the context.