pub struct LayerInfo {
pub index: usize,
pub name: String,
pub layer_type: String,
pub parameter_count: usize,
pub inputshape: Option<Vec<usize>>,
pub outputshape: Option<Vec<usize>>,
}
Expand description
Information about a layer for visualization purposes
Fields§
§index: usize
Index of the layer in the sequence
name: String
Name of the layer
layer_type: String
Type of the layer
parameter_count: usize
Number of parameters in the layer
inputshape: Option<Vec<usize>>
Input shape of the layer
outputshape: Option<Vec<usize>>
Output shape of the layer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerInfo
impl RefUnwindSafe for LayerInfo
impl Send for LayerInfo
impl Sync for LayerInfo
impl Unpin for LayerInfo
impl UnwindSafe for LayerInfo
Blanket Implementations§
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
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