pub struct ConvGeometry {
pub batch: usize,
pub channels: usize,
pub height: usize,
pub width: usize,
pub kernel: usize,
pub stride: usize,
pub padding: usize,
pub out_height: usize,
pub out_width: usize,
}Expand description
Everything im2col and col2im need to know about one convolution, which
is what the device kernels take as their arguments.
Fields§
§batch: usize§channels: usize§height: usize§width: usize§kernel: usize§stride: usize§padding: usize§out_height: usize§out_width: usizeImplementations§
Source§impl ConvGeometry
impl ConvGeometry
Sourcepub fn is_pointwise(&self) -> bool
pub fn is_pointwise(&self) -> bool
A 1x1 kernel at stride 1 without padding: each column row is the input pixel itself.
Sourcepub fn input_elements(&self) -> usize
pub fn input_elements(&self) -> usize
Values in the input map.
Sourcepub fn column_elements(&self) -> usize
pub fn column_elements(&self) -> usize
Values in the column matrix: kernel * kernel times the output’s
pixels times the input’s channels.
Trait Implementations§
Source§impl Clone for ConvGeometry
impl Clone for ConvGeometry
impl Copy for ConvGeometry
Source§impl Debug for ConvGeometry
impl Debug for ConvGeometry
impl Eq for ConvGeometry
Source§impl PartialEq for ConvGeometry
impl PartialEq for ConvGeometry
impl StructuralPartialEq for ConvGeometry
Auto Trait Implementations§
impl Forget for ConvGeometry
impl Freeze for ConvGeometry
impl Move for ConvGeometry
impl RefUnwindSafe for ConvGeometry
impl Send for ConvGeometry
impl Sync for ConvGeometry
impl Unpin for ConvGeometry
impl UnsafeUnpin for ConvGeometry
impl UnwindSafe for ConvGeometry
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