#[repr(i32)]
pub enum FullTypeId {
Show 34 variants TftUnset, TftVar, TftAny, TftProduct, TftNamed, TftForEach, TftCallable, TftTensor, TftArray, TftOptional, TftLiteral, TftEncoded, TftShapeTensor, TftBool, TftUint8, TftUint16, TftUint32, TftUint64, TftInt8, TftInt16, TftInt32, TftInt64, TftHalf, TftFloat, TftDouble, TftBfloat16, TftComplex64, TftComplex128, TftString, TftDataset, TftRagged, TftIterator, TftMutexLock, TftLegacyVariant,
}
Expand description

LINT.IfChange Experimental. Represents the complete type information of a TensorFlow value.

Variants§

§

TftUnset

The default represents an uninitialized values.

§

TftVar

Type variables may serve as placeholder for any other type ID in type templates.

Examples: TFT_DATASET[TFT_VAR[“T”]] is a Dataset returning a type indicated by “T”. TFT_TENSOR[TFT_VAR[“T”]] is a Tensor of n element type indicated by “T”. TFT_TENSOR[TFT_VAR[“T”]], TFT_TENSOR[TFT_VAR[“T”]] are two tensors of identical element types. TFT_TENSOR[TFT_VAR[“P”]], TFT_TENSOR[TFT_VAR[“Q”]] are two tensors of independent element types.

§

TftAny

Wildcard type. Describes a parameter of unknown type. In TensorFlow, that can mean either a “Top” type (accepts any type), or a dynamically typed object whose type is unknown in context. Important: “unknown” does not necessarily mean undeterminable!

§

TftProduct

The algebraic product type. This is an algebraic type that may be used just for logical grouping. Not to confused with TFT_TUPLE which describes a concrete object of several elements.

Example: TFT_DATASET[TFT_PRODUCT[TFT_TENSOR[TFT_INT32], TFT_TENSOR[TFT_FLOAT64]]] is a Dataset producing two tensors, an integer one and a float one.

§

TftNamed

Represents a named field, with the name stored in the attribute.

Parametrization: TFT_NAMED[]{}

  • is the type of the field
  • is the field name, as string (thpugh can theoretically be an int as well)

Example: TFT_RECORD[ TFT_NAMED[TFT_TENSOR[TFT_INT32]]{‘foo’}, TFT_NAMED[TFT_TENSOR[TFT_FLOAT32]]{‘bar’}, ] is a structure with two fields, an int tensor “foo” and a float tensor “bar”.

§

TftForEach

Template definition. Expands the variables by repeating a template as arguments of container.

Parametrization: TFT_FOR_EACH[<container_type>,