mlx-bun library API
    Preparing search index...

    Interface GraphFactory<Artifact, Binding, Graph>

    A fused InferenceMethod can bypass this graph interface entirely. It need only satisfy the method's output, cancellation, and ownership contracts.

    interface GraphFactory<Artifact, Binding, Graph> {
        open(
            artifact: Artifact,
            binding: Binding,
        ): Promise<{ graph: Graph; close(): Promise<void> }>;
    }

    Type Parameters

    • Artifact
    • Binding
    • Graph
    Index