pub trait ADModule<B: ADBackend>: Module<B> + Send + Sync + Debug {
type InnerModule: Module<B::InnerBackend>;
// Required method
fn valid(&self) -> Self::InnerModule;
}Expand description
Module with auto-differentiation backend.
Required Associated Types§
sourcetype InnerModule: Module<B::InnerBackend>
type InnerModule: Module<B::InnerBackend>
Inner module without auto-differentiation.
Required Methods§
sourcefn valid(&self) -> Self::InnerModule
fn valid(&self) -> Self::InnerModule
Get the same module, but on the inner backend without auto-differentiation.
Object Safety§
This trait is not object safe.