Модуль: tf.dtypes
Публичный API для пространства имён tf.dtypes.
Классы
class DType: Представляет тип элементов в Tensor.
Функции
as_dtype(...): Преобразует заданный type_value в DType.
as_string(...): Преобразует каждое значение в заданном тензоре в строки.
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/r1.15/api_docs/python/tf/dtypes