Expand description
Expression-level dataflow, dtype, and gradient-connectivity analysis.
Builds a serializable graph over ordinary crate-local free functions and inherent methods
starting from a chosen entrypoint. Transfer rules live in crate::op_semantics; anything
not covered is left GradState::Unknown / AbstractDtype::Unknown rather than guessed.
Structs§
- Dataflow
Diagnostic - Dtype
Conflict - Dtype
Risk - A same-dtype op where at least one operand is known and another remains unknown.
- EdgeId
- Expr
Edge - Expr
Graph - Expr
Node - NodeId
- Numeric
Domain Violation - A partial function applied to a domain that can attain a forbidden endpoint.
- Zero
Times Infinity - Multiply that can evaluate
0 * ±inf(silent NaN) rather than a loud-infloss.
Enums§
- Edge
Kind - Edge role in the expression graph.
- Grad
State - Gradient / trainability state attached to an expression node.
- Node
Kind - What an expression node represents in source.
- Numeric
Impact - How a numeric hazard can interfere with training or inference.
Functions§
- analyze
- Analyze
entrypointagainst a loaded crate. - analyze_
with_ candle_ version - Analyze with the resolved candle-nn version used to gate version-specific gradient rules.
- analyze_
with_ phase - Analyze an entrypoint for a specific execution phase (train autograd vs inference no-grad).