Spec-Zone.ru › TensorFlow 2.9

tf.compat.v1.tpu.bfloat16_scope

Класс области для переменных bfloat16, чтобы модель использовала пользовательский метод получения.

@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/versions/r2.9/api_docs/python/tf/compat/v1/tpu/bfloat16_scope

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API