tf.control_dependencies

View source on GitHub

Wrapper for Graph.control_dependencies() using the default graph.

tf.control_dependencies(
    control_inputs
)

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:

Returns:

A context manager that specifies control dependencies for all operations constructed within the context.