tf.compat.v1.device

View source on GitHub

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

tf.compat.v1.device(
    device_name_or_function
)

See tf.Graph.device for more details.

Args:

Returns:

A context manager that specifies the default device to use for newly created ops.

Raises: