pub trait AI<X, Y> {
// Required method
fn forward(&self, input: X) -> Y;
// Provided method
fn forward_mut(&mut self, input: X) -> Y { ... }
}Expand description
general ai trait
Required Methods§
Provided Methods§
Sourcefn forward_mut(&mut self, input: X) -> Y
fn forward_mut(&mut self, input: X) -> Y
applies to the input, possibly updating internal caches