Module: tf.dtypes
Public API for tf.dtypes namespace.
Classes
class DType
: Represents the type of the elements in a Tensor
.
Functions
as_dtype(...)
: Converts the given type_value
to a DType
.
cast(...)
: Casts a tensor to a new type.
complex(...)
: Converts two real numbers to a complex number.
saturate_cast(...)
: Performs a safe saturating cast of value
to dtype
.
Other Members
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[]]