tf.compat.v1.tpu.bfloat16_scope
Класс области видимости для переменных bfloat16, позволяющий модели использовать пользовательский getter.
@tf_contextlib.contextmanager
tf.compat.v1.tpu.bfloat16_scope(
name: Optional[Text] = None
) -> Generator[tf.compat.v1.variable_scope, None, None]
Это позволяет считывать переменные как значения типа bfloat16 при использовании get_variable.
| Аргументы | |
|---|---|
name | Имя области видимости. |
| Возвращает | |
|---|---|
| область видимости переменной. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat/v1/tpu/bfloat16_scope