Class NativeAPI.EmbeddingResponses
public static class NativeAPI.EmbeddingResponses
- Inheritance
-
objectNativeAPI.EmbeddingResponses
Methods
litert_lm_embedding_responses_delete(nint)
Destroys a collection of LiteRT LM Embedding Responses.
public static extern void litert_lm_embedding_responses_delete(nint responses)
Parameters
responsesnintThe responses collection to destroy.
litert_lm_embedding_responses_get_at(nint, nuint)
Returns the embedding response at the given index in the batch.
public static extern nint litert_lm_embedding_responses_get_at(nint responses, nuint index)
Parameters
responsesnintThe responses collection.
indexnuintThe batch index.
Returns
- nint
Pointer to the embedding response, or nint.Zero if out of bounds.
Remarks
The returned pointer is owned by responses and valid for its lifetime.
litert_lm_embedding_responses_get_size(nint)
Returns the number of responses in the collection.
public static extern nuint litert_lm_embedding_responses_get_size(nint responses)
Parameters
responsesnintThe responses collection.
Returns
- nuint
The batch size.