View source on GitHub |
Scope class for bfloat16 variables so that the model uses custom getter.
@tf_contextlib.contextmanager
tf.compat.v1.tpu.bfloat16_scope( name: Optional[Text] = None ) -> Generator[
tf.compat.v1.variable_scope
, None, None]
This enables variables to be read as bfloat16 type when using get_variable.
Arguments | |
---|---|
name
|
Name to use for scope. |
Yields | |
---|---|
a variable scope. |