pub struct PoolGeometry {
pub batch: u32,
pub height: u32,
pub width: u32,
pub channels: u32,
pub out_height: u32,
pub out_width: u32,
pub kernel: [u32; 2],
pub stride: [u32; 2],
pub pad_top: u32,
pub pad_left: u32,
}Expand description
NHWC pooling geometry: batch, input height/width, channels, output height/width, kernel, stride, and the top/left pads (the bottom/right pads only shape the output).
Fields§
§batch: u32§height: u32§width: u32§channels: u32§out_height: u32§out_width: u32§kernel: [u32; 2]§stride: [u32; 2]§pad_top: u32§pad_left: u32Trait Implementations§
Source§impl Clone for PoolGeometry
impl Clone for PoolGeometry
Source§fn clone(&self) -> PoolGeometry
fn clone(&self) -> PoolGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PoolGeometry
Source§impl Debug for PoolGeometry
impl Debug for PoolGeometry
impl Eq for PoolGeometry
Source§impl PartialEq for PoolGeometry
impl PartialEq for PoolGeometry
Source§fn eq(&self, other: &PoolGeometry) -> bool
fn eq(&self, other: &PoolGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PoolGeometry
Auto Trait Implementations§
impl Freeze for PoolGeometry
impl RefUnwindSafe for PoolGeometry
impl Send for PoolGeometry
impl Sync for PoolGeometry
impl Unpin for PoolGeometry
impl UnsafeUnpin for PoolGeometry
impl UnwindSafe for PoolGeometry
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