Embedding class final
One embedding head's vector: floats, or bytes when quantized.
- Annotations
-
- @immutable
Constructors
- Embedding({Float32List? floatEmbedding, Uint8List? quantizedEmbedding, required int headIndex, String? headName})
- Owns an unmodifiable copy of exactly one representation.
Properties
- floatEmbedding → Float32List?
-
The vector, or null when the embedder was asked to quantize.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headIndex → int
-
The model output head this vector came from.
final
- headName → String?
-
The head's name from the model metadata, if any.
final
- length → int
-
The vector's dimensions.
no setter
- quantizedEmbedding → Uint8List?
-
Scalar-quantized bytes encoding signed 8-bit values, or null for a
float vector.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited