pub trait GradFunction: Send + Sync { // Required method fn backward(&self, output: &mut SciRS2Array) -> Result<()>; }
Trait for gradient functions