Embedding.quantized constructor

Embedding.quantized(
  1. Uint8List quantizedEmbedding, {
  2. required int headIndex,
  3. String? headName,
})

Instantiates a quantized Embedding object with fake values for testing.

Usage:

Embedding.quantized(Uint8List.fromList([1,2,3]), headIndex: 1);

Implementation

Embedding.quantized(
  Uint8List quantizedEmbedding, {
  required int headIndex,
  String? headName,
})  : _floatEmbedding = null,
      _headIndex = headIndex,
      _headName = headName,
      _quantizedEmbedding = quantizedEmbedding,
      _pointer = null,
      type = EmbeddingType.quantized;