MpEmbedding class final
Embedding result for a given embedder head.
One and only one of the two 'float_embedding' and 'quantized_embedding' will contain data, based on whether or not the embedder was configured to perform scalar quantization.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
float_embedding
↔ Pointer<
Float> -
Floating-point embedding.
nullptrif the embedder was configured to perform scalar-quantization.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- head_index ↔ int
-
The index of the embedder head (i.e. output tensor) this embedding comes
from. This is useful for multi-head models.
getter/setter pair
-
head_name
↔ Pointer<
Char> -
The optional name of the embedder head, as provided in the TFLite Model
Metadata 1 if present. This is useful for multi-head models.
Defaults to nullptr.
getter/setter pair
-
quantized_embedding
↔ Pointer<
Char> -
Scalar-quantized embedding.
nullptrif the embedder was not configured to perform scalar quantization.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- values_count ↔ int
-
Keep the count of embedding values.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited