tf.control_dependencies(control_inputs)
Defined in tensorflow/python/framework/ops.py
.
Wrapper for Graph.control_dependencies()
using the default graph.
See tf.Graph.control_dependencies
for more details.
When eager execution is enabled, any callable object in the control_inputs
list will be called.
Args:
control_inputs
: A list ofOperation
orTensor
objects which must be executed or computed before running the operations defined in the context. Can also beNone
to clear the control dependencies. If eager execution is enabled, any callable object in thecontrol_inputs
list will be called.
Returns:
A context manager that specifies control dependencies for all operations constructed within the context.