Spec-Zone.ru › TensorFlow 2.3

Модуль: tf.dtypes

Общедоступный API для пространства имён tf.dtypes.

Классы

class DType: Представляет тип элементов в Tensor.

Функции

as_dtype(...): Преобразует заданный type_value в DType.

cast(...): Преобразует тензор в новый тип.

complex(...): Преобразует две вещественные числа в комплексное число.

saturate_cast(...): Выполняет безопасное насыщающее преобразование value в dtype.

Другие члены

  • QUANTIZED_DTYPES
  • bfloat16
  • bool
  • complex128
  • complex64
  • double
  • float16
  • float32
  • float64
  • half
  • int16
  • int32
  • int64
  • int8
  • qint16
  • qint32
  • qint8
  • quint16
  • quint8
  • resource
  • string
  • uint16
  • uint32
  • uint64
  • uint8
  • variant

© 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/dtypes

Spec-Zone.ru

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