Spec-Zone.ru › TensorFlow 2.3

tf.compat.v1.to_bfloat16

Преобразование тензора к типу bfloat16. (устарело)

tf.compat.v1.to_bfloat16(
    x, name='ToBFloat16'
)
Предупреждение: ЭТА ФУНКЦИЯ УСТАРЕЛА. Она будет удалена в будущей версии. Инструкции по обновлению: Используйте tf.cast вместо неё.
Аргументы
x A Tensor или SparseTensor или IndexedSlices.
name Имя операции (необязательно).
Возвращает
A Tensor или SparseTensor или IndexedSlices с той же формой, что и x, но с типом bfloat16.
Исключения
TypeError Если x нельзя преобразовать в bfloat16.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/compat/v1/to_bfloat16

Spec-Zone.ru

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