tf.contrib.distribute.UpdateContext

View source on GitHub

Class UpdateContext

Context manager when you are in update() or update_non_slot().

__init__

View source

__init__(device)

Initialize self. See help(type(self)) for accurate signature.

Methods

tf.contrib.distribute.UpdateContext.__enter__

View source

__enter__()

tf.contrib.distribute.UpdateContext.__exit__

View source

__exit__(
    exception_type,
    exception_value,
    traceback
)