pub struct ModuleDisplay<'a, M: ?Sized> { /* private fields */ }Expand description
A model’s nested modules with their parameter counts (crate::Module::display):
Mlp (25,818 params, 25,818 trainable)
layers.0: Linear (25,120)
layers.1: Linear (528)
layers.2: Linear (170)Trait Implementations§
Auto Trait Implementations§
impl<'a, M> Freeze for ModuleDisplay<'a, M>
impl<'a, M> RefUnwindSafe for ModuleDisplay<'a, M>
impl<'a, M> Send for ModuleDisplay<'a, M>
impl<'a, M> Sync for ModuleDisplay<'a, M>
impl<'a, M> Unpin for ModuleDisplay<'a, M>
impl<'a, M> UnsafeUnpin for ModuleDisplay<'a, M>
impl<'a, M> UnwindSafe for ModuleDisplay<'a, M>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more