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§
Traits§
- Backend
- Backend implementation trait.
- Executable
Graph - 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).