Expand description
Graph compilation APIs.
§Examples
use tenferro_runtime::{GraphCompiler, TracedTensor};
let x = TracedTensor::from_vec_col_major(vec![2], vec![1.0_f64, 2.0]).unwrap();
let y = (&x + &x).unwrap();
let mut compiler = GraphCompiler::new();
let program = compiler.compile(&y).unwrap();
assert_eq!(program.output_count(), 1);Structs§
- Graph
Compiler - Compiler for traced tensor graphs.
- Graph
Compiler Cache Stats - Stats for caches owned by a
GraphCompiler. - Graph
Executor - Executes compiled graph programs on a concrete tensor backend.
- Graph
Executor Cache Stats - Stats for runtime caches owned by a graph executor.
- Graph
Instruction View - Read-only lowering view over one execution instruction.
- Graph
Program - A compiled traced graph, independent of any execution backend.
- Graph
Program Input - A single ordered input required by a
GraphProgram. - Graph
Program Lowering View - Read-only lowering view over a compiled graph program.
Enums§
- Graph
OpView - Read-only operation view for graph lowering integrations.
- Graph
Program Lowering Shape Error - Error returned when a lowering view cannot resolve an exact output shape.