pub fn model_self_check(name: &str, graph: &Graph)Expand description
Self-check hook injected by #[rlx_model(check)] right after the model’s
graph is traced. Runs check_graph and reports findings to stderr.
Controlled at runtime by RLX_CHECK:
- unset /
warn/1— print the report when there are findings (default). off/0/false— do nothing (production escape hatch).all— check every backend target and always print.strict— additionally panic on any error-level finding.
Focused on the CPU reference backend by default (that’s what #[rlx_model]
compiles for); RLX_CHECK=all widens to every target.