pub struct SummaryRow {
pub path: String,
pub shape: Vec<i32>,
pub dtype: DType,
pub kind: LeafKind,
pub trainable: bool,
pub bytes: usize,
}Expand description
One leaf of a Summary.
Fields§
§path: StringThe leaf’s path (layers.0.weight).
shape: Vec<i32>Its shape.
dtype: DTypeIts dtype.
kind: LeafKindWhat it is: a parameter, a buffer or a plain array.
trainable: boolWhether it is trained.
bytes: usizeIts size in bytes.
Trait Implementations§
Source§impl Clone for SummaryRow
impl Clone for SummaryRow
Source§impl Debug for SummaryRow
impl Debug for SummaryRow
impl Eq for SummaryRow
Source§impl PartialEq for SummaryRow
impl PartialEq for SummaryRow
impl StructuralPartialEq for SummaryRow
Auto Trait Implementations§
impl Freeze for SummaryRow
impl RefUnwindSafe for SummaryRow
impl Send for SummaryRow
impl Sync for SummaryRow
impl Unpin for SummaryRow
impl UnsafeUnpin for SummaryRow
impl UnwindSafe for SummaryRow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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