ghostflow_autograd/
lib.rs

1//! GhostFlow Autograd - Automatic Differentiation
2//!
3//! Tape-based reverse-mode automatic differentiation.
4
5pub mod tape;
6pub mod backward;
7pub mod dynamic_graph;
8
9pub use tape::GradTape;
10pub use backward::backward;
11pub use dynamic_graph::{DynamicGraph, DynamicContext, DynamicTensor, GraphNode};
12
13/// Enable gradient computation for a tensor
14pub fn enable_grad() {
15    // Global flag to enable gradient tracking
16}
17
18/// Disable gradient computation (inference mode)
19pub fn no_grad() {
20    // Global flag to disable gradient tracking
21}