Skip to main content

compile_node

Function compile_node 

Source
pub fn compile_node(
    op: OpKind,
    dtypes: &[DType],
    backend: BackendId,
    op_params: OpParams,
    bindings: &KernelBindingTable,
) -> Result<CompiledNode>
Expand description

Resolve a node’s kernel from the binding table and return a CompiledNode ready for execution. Production-correct: surfaces NoBackendForOp if the table doesn’t have a binding for the requested triple.

Today this is one HashMap lookup. When dispatch grows more sophisticated (residency-aware, cost-aware, auto-tuning), the added work happens here. The interface stays the same.