Graph.control_dependencies()Wrapper for using the default graph.
Aliases:
tf.compat.v1.control_dependenciestf.compat.v2.control_dependencies
tf.control_dependencies(control_inputs)
tf.Graph.control_dependenciesSee for more details.
When eager execution is enabled, any callable object in the control_inputs list will be called.
Args:
control_inputs: A list ofOperationorTensorobjects which must be executed or computed before running the operations defined in the context. Can also beNoneto clear the control dependencies. If eager execution is enabled, any callable object in thecontrol_inputslist will be called.
Returns:
A context manager that specifies control dependencies for all operations constructed within the context.