pub struct GlobalAvgPool;Expand description
Global Average Pooling
Reduces spatial dimensions to 1x1 by averaging over all spatial positions. Commonly used before the final fully-connected layer in CNNs.
Input: [batch, height, width, channels] Output: [batch, 1, 1, channels]
Implementations§
Source§impl GlobalAvgPool
impl GlobalAvgPool
Trait Implementations§
Source§impl Clone for GlobalAvgPool
impl Clone for GlobalAvgPool
Source§fn clone(&self) -> GlobalAvgPool
fn clone(&self) -> GlobalAvgPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalAvgPool
impl Debug for GlobalAvgPool
Source§impl Default for GlobalAvgPool
impl Default for GlobalAvgPool
Source§fn default() -> GlobalAvgPool
fn default() -> GlobalAvgPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlobalAvgPool
impl RefUnwindSafe for GlobalAvgPool
impl Send for GlobalAvgPool
impl Sync for GlobalAvgPool
impl Unpin for GlobalAvgPool
impl UnsafeUnpin for GlobalAvgPool
impl UnwindSafe for GlobalAvgPool
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