1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Static structure and dataflow analysis for candle-rs models.
//!
//! See `README.md` for the motivation. In short: candle's autograd graph is not inspectable at
//! runtime (`Tensor::op()` is `pub(crate)`), and several candle-nn ops sever gradient flow
//! silently, so the only way to answer "does this parameter receive a gradient" is to read the
//! source.
//!
//! It reconstructs module and parameter structure, expression-level dtype and gradient dataflow,
//! deterministic CI baselines, and a standalone interactive report.
//!
//! Compile-time static analysis is always available. Enable the `runtime` feature for
//! train/inference phase graphs, runtime trace import, gradient audit, and profiling.
pub use ExecutionPhase;
pub use Structure;