scirs2_neural/autograd/
mod.rs

1//! Automatic differentiation module for neural networks.
2//!
3//! This module provides automatic differentiation capabilities for neural networks,
4//! using the autograd crate. This is a simple wrapper for demonstration, showing how
5//! we can integrate with autograd.
6
7// We re-export the autograd crate (disabled in minimal version)
8// pub extern crate autograd;
9/// Example function showing how autograd can be used
10#[allow(dead_code)]
11pub fn autograd_example() {
12    // This demonstrates basic usage of autograd for a simple neural network operation
13    println!("Note: Autograd is not included in the minimal version of scirs2-neural.");
14    println!("To use autograd, add it as a dependency to your Cargo.toml:");
15    println!("autograd = \"1.0\"");
16    println!();
17    println!("Then import it directly in your code:");
18    println!("use autograd::prelude::*;");
19    println!();
20    println!("For more examples, see:");
21    println!("https://docs.rs/autograd/latest/autograd/");
22    println!("This integration is provided as a simple demonstration of how to use");
23    println!("autograd with SciRS2-neural.");
24}