LostTech.TensorFlow : API Documentation

Type DType

Namespace tensorflow

Parent PythonObjectContainer

Interfaces IDType

Represents the type of the elements in a `Tensor`.

The following `DType` objects are defined:

* tf.float16: 16-bit half-precision floating-point. * tf.float32: 32-bit single-precision floating-point. * tf.float64: 64-bit double-precision floating-point. * tf.bfloat16: 16-bit truncated floating-point. * tf.complex64: 64-bit single-precision complex. * tf.complex128: 128-bit double-precision complex. * tf.int8: 8-bit signed integer. * tf.uint8: 8-bit unsigned integer. * tf.uint16: 16-bit unsigned integer. * tf.uint32: 32-bit unsigned integer. * tf.uint64: 64-bit unsigned integer. * tf.int16: 16-bit signed integer. * tf.int32: 32-bit signed integer. * tf.int64: 64-bit signed integer. * tf.bool: Boolean. * tf.string: String. * tf.qint8: Quantized 8-bit signed integer. * tf.quint8: Quantized 8-bit unsigned integer. * tf.qint16: Quantized 16-bit signed integer. * tf.quint16: Quantized 16-bit unsigned integer. * tf.qint32: Quantized 32-bit signed integer. * tf.resource: Handle to a mutable resource. * tf.variant: Values of arbitrary types.

The `tf.as_dtype()` function converts numpy types and string type names to a `DType` object.



Public instance methods

bool is_compatible_with(DType other)

bool is_compatible_with(string other)

Public properties

int as_datatype_enum get;

object as_datatype_enum_dyn get;

object as_numpy_dtype get;

object as_numpy_dtype_dyn get;

DType base_dtype get;

object base_dtype_dyn get;

object is_bool get;

object is_bool_dyn get;

bool is_complex get;

object is_complex_dyn get;

bool is_floating get;

object is_floating_dyn get;

bool is_integer get;

object is_integer_dyn get;

bool is_numpy_compatible get;

object is_numpy_compatible_dyn get;

bool is_quantized get;

object is_quantized_dyn get;

bool is_unsigned get;

object is_unsigned_dyn get;

ValueTuple<int, object> limits get;

object limits_dyn get;

object max get;

object max_dyn get;

object min get;

object min_dyn get;

string name get;

object name_dyn get;

object PythonObject get;

DType real_dtype get;

object real_dtype_dyn get;

int size get;

object size_dyn get;