pub trait AutodiffModule:
Module
+ Send
+ Debug {
// Required methods
fn valid(&self) -> Self;
fn from_inner(module: Self) -> Self;
}Expand description
Module with auto-differentiation backend.
Required Methods§
Sourcefn valid(&self) -> Self
fn valid(&self) -> Self
Returns the same module, but on the inner backend without auto-differentiation.
Sourcefn from_inner(module: Self) -> Self
fn from_inner(module: Self) -> Self
Wraps an inner module back into an auto-diff module.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".