pub struct ConvStats {
pub input_shape: Vec<usize>,
pub output_shape: Vec<usize>,
pub kernel_shape: Vec<usize>,
pub num_parameters: usize,
pub flops: u64,
pub receptive_field: Vec<usize>,
}Expand description
Statistics about a convolution operation (parameter count, FLOPs, receptive field).
Fields§
§input_shape: Vec<usize>Shape of the input tensor.
output_shape: Vec<usize>Shape of the output tensor.
kernel_shape: Vec<usize>Shape of the kernel/weight tensor.
num_parameters: usizeTotal number of learnable parameters (weights + bias if present).
flops: u64Estimated floating-point operations (multiply-accumulate counted as 2).
receptive_field: Vec<usize>Receptive field size in each spatial dimension.
Implementations§
Source§impl ConvStats
impl ConvStats
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConvStats
impl RefUnwindSafe for ConvStats
impl Send for ConvStats
impl Sync for ConvStats
impl Unpin for ConvStats
impl UnsafeUnpin for ConvStats
impl UnwindSafe for ConvStats
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