pub struct AvgPool2d<D: Dtype, IT, OT, const RANK: usize> {
pub kernel_h: usize,
pub kernel_w: usize,
pub stride_h: usize,
pub stride_w: usize,
pub padding_h: usize,
pub padding_w: usize,
/* private fields */
}Expand description
2-D average pooling.
Fields§
§kernel_h: usizePooling window height.
kernel_w: usizePooling window width.
stride_h: usizeVertical stride between pooling windows.
stride_w: usizeHorizontal stride between pooling windows.
padding_h: usizeVertical padding applied before pooling.
padding_w: usizeHorizontal padding applied before pooling.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, IT, OT, const RANK: usize> Freeze for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> RefUnwindSafe for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Send for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Sync for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Unpin for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnsafeUnpin for AvgPool2d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnwindSafe for AvgPool2d<D, IT, OT, RANK>
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