pub struct InferenceReport {
pub total_values: usize,
pub resolved: Vec<ValueId>,
pub unresolved: Vec<ValueId>,
pub fresh_symbols: usize,
pub containers: HashMap<ValueId, ValueType>,
}Expand description
A summary of what whole-graph inference resolved.
A value is “resolved” once it has a known dtype and a known-rank shape (every
dimension is concrete or symbolic — never unknown). Values an op rule could
not resolve (unregistered op, data-dependent extent without shape-data) are
listed in unresolved.
Fields§
§total_values: usizeTotal number of live values in the graph.
resolved: Vec<ValueId>Values that ended with a resolved shape.
unresolved: Vec<ValueId>Values left without a resolved shape.
fresh_symbols: usizeNumber of fresh symbolic dimensions minted during inference.
containers: HashMap<ValueId, ValueType>Container-typed values (Sequence/Optional/Map) and their inferred
element type. Empty for pure-tensor graphs (the tensor path never
materialises a ValueType), which keeps that path byte-identical.
Populated for Sequence-family producers and control-flow nodes whose
body outputs are containers.
Implementations§
Source§impl InferenceReport
impl InferenceReport
Sourcepub fn num_resolved(&self) -> usize
pub fn num_resolved(&self) -> usize
The number of resolved values.
Sourcepub fn num_unresolved(&self) -> usize
pub fn num_unresolved(&self) -> usize
The number of unresolved values.
Sourcepub fn fully_resolved(&self) -> bool
pub fn fully_resolved(&self) -> bool
Whether every live value in the graph resolved to a known shape.
Trait Implementations§
Source§impl Clone for InferenceReport
impl Clone for InferenceReport
Source§fn clone(&self) -> InferenceReport
fn clone(&self) -> InferenceReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more