Embedding.float constructor
Embedding.float(
- Float32List floatEmbedding, {
- required int headIndex,
- String? headName,
Instantiates a floating point Embedding object with fake values for testing.
Usage:
Embedding.float(Float32List.fromList([0.1, 0.2, 0.3]), headIndex: 1);
Implementation
Embedding.float(
Float32List floatEmbedding, {
required int headIndex,
String? headName,
}) : _floatEmbedding = floatEmbedding,
_headIndex = headIndex,
_headName = headName,
_quantizedEmbedding = null,
_pointer = null,
type = EmbeddingType.float;