pub trait ADModule<B>: Module<B> + Send + Sync + Debugwhere
B: ADBackend,{
type InnerModule: Module<<B as ADBackend>::InnerBackend>;
// Required method
fn valid(&self) -> Self::InnerModule;
}Expand description
Module with auto-differentiation backend.
Required Associated Types§
sourcetype InnerModule: Module<<B as ADBackend>::InnerBackend>
type InnerModule: Module<<B as ADBackend>::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.