core/embedding/forward_pass library

Classes

EmbeddingForwardPass
One engine's forward-pass implementation.
ForwardPassDescriptor
Sendable description of "which engine, which model" that crosses an isolate boundary so the receiving isolate can build its own EmbeddingForwardPass locally. FFI handles/pointers themselves can never cross isolates — only this descriptor (plain data + a code reference) does; see EmbeddingForwardPassFactory for why factory must be a top-level/static tear-off.
ForwardResult
Raw forward-pass output: a flat, row-major buffer plus its tensor shape.

Enums

EmbeddingOutputContract
How to turn a ForwardResult into the final embedding vector.

Typedefs

EmbeddingForwardPassFactory = EmbeddingForwardPass Function(String modelPath)
Factory that builds an EmbeddingForwardPass for a given on-disk model path.