$allocate static method

Pointer<MpEmbedding> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Float> float_embedding,
  3. required Pointer<Char> quantized_embedding,
  4. required int values_count,
  5. required int head_index,
  6. required Pointer<Char> head_name,
})

Implementation

static ffi.Pointer<MpEmbedding> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<ffi.Float> float_embedding,
  required ffi.Pointer<ffi.Char> quantized_embedding,
  required int values_count,
  required int head_index,
  required ffi.Pointer<ffi.Char> head_name,
}) => $allocator<MpEmbedding>()
  ..ref.float_embedding = float_embedding
  ..ref.quantized_embedding = quantized_embedding
  ..ref.values_count = values_count
  ..ref.head_index = head_index
  ..ref.head_name = head_name;