Skip to main content

Module backend

Module backend 

Source
Expand description

Backend trait — abstraction over CPU/GPU/CUDA execution.

Each backend implements Backend::compile(graph, &CompileOptions) and returns an ExecutableGraph. New compile knobs go in CompileOptions rather than as new trait methods.

Modules§

cpu_backend
wgpu_backend

Traits§

Backend
Backend implementation trait.
ExecutableGraph
A compiled, ready-to-execute graph on a specific backend.

Functions§

compile
Compile at default options (F32, no policy).
compile_hir
Compile HIR through the fusion-first pipeline.
compile_module
Compile a [GraphModule] through the fusion-first pipeline.
compile_with_precision
Compile at a specific precision (default policy = none).