pub trait ADModule: Module<Backend = Self::ADBackend> + Send + Sync + Debug + Display {
type ADBackend: ADBackend;
type InnerModule: Module<Backend = <Self::ADBackend as ADBackend>::InnerBackend>;
fn inner(&self) -> Self::InnerModule;
}
Expand description
Module with auto-differentiation backend.
Required Associated Types
type ADBackend: ADBackend
type InnerModule: Module<Backend = <Self::ADBackend as ADBackend>::InnerBackend>
Required Methods
sourcefn inner(&self) -> Self::InnerModule
fn inner(&self) -> Self::InnerModule
Get the same module, but on the inner backend without auto-differentiation.