pub trait TryAddLayer: ForwardAllwhere
Self: Sized,{
// Required method
fn try_add_layer<C, F, E>(self, f: F) -> Result<C, E>
where C: ForwardAll,
F: FnOnce(Self) -> Result<C, E>;
}Expand description
Trait defined functionality that attempts to add layers to a neural network.
Required Methods§
Sourcefn try_add_layer<C, F, E>(self, f: F) -> Result<C, E>
fn try_add_layer<C, F, E>(self, f: F) -> Result<C, E>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.