TensorFlow 2.0 Beta is available Learn more

tf.tpu.bfloat16_scope

View source on GitHub

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

Aliases:

  • tf.compat.v1.tpu.bfloat16_scope
  • tf.contrib.tpu.bfloat16_scope
tf.tpu.bfloat16_scope()

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