Trait burn::module::AutodiffModule
pub trait AutodiffModule<B>:
Module<B>
+ Send
+ Debugwhere
B: AutodiffBackend,{
type InnerModule: Module<<B as AutodiffBackend>::InnerBackend>;
// Required method
fn valid(&self) -> Self::InnerModule;
}
Expand description
Module with auto-differentiation backend.
Required Associated Types§
type InnerModule: Module<<B as AutodiffBackend>::InnerBackend>
type InnerModule: Module<<B as AutodiffBackend>::InnerBackend>
Inner module without auto-differentiation.
Required Methods§
fn 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.