pub struct CompiledGraph {
pub graph: EinsumGraph,
pub schedule: ExecutionSchedule,
pub shapes: HashMap<usize, Vec<usize>>,
pub memory_usage: HashMap<usize, usize>,
pub config: CompilationConfig,
pub stats: CompilationStats,
pub compiled_at: SystemTime,
}Expand description
Compiled representation of a computation graph.
Contains the optimized graph, execution schedule, and metadata necessary for efficient execution.
Fields§
§graph: EinsumGraphThe optimized graph
schedule: ExecutionScheduleExecution schedule for the graph
shapes: HashMap<usize, Vec<usize>>Shape information (if available)
memory_usage: HashMap<usize, usize>Estimated memory usage per node
config: CompilationConfigConfiguration used for compilation
stats: CompilationStatsCompilation statistics
compiled_at: SystemTimeTimestamp when compiled
Implementations§
Source§impl CompiledGraph
impl CompiledGraph
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get the number of nodes in the compiled graph
Sourcepub fn total_memory(&self) -> usize
pub fn total_memory(&self) -> usize
Get the total estimated memory usage
Trait Implementations§
Source§impl Clone for CompiledGraph
impl Clone for CompiledGraph
Source§fn clone(&self) -> CompiledGraph
fn clone(&self) -> CompiledGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledGraph
impl RefUnwindSafe for CompiledGraph
impl Send for CompiledGraph
impl Sync for CompiledGraph
impl Unpin for CompiledGraph
impl UnwindSafe for CompiledGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more