Registration is open for TensorFlow Dev Summit 2020 Learn more

tf.compat.v1.tpu.bfloat16_scope

View source on GitHub

Scope class for bfloat16 variables so that the model uses custom getter.

@contextmanager
tf.compat.v1.tpu.bfloat16_scope()

This enables variables to be read as bfloat16 type when using get_variable.