pub struct QAvgPool2D<const PH: usize, const PW: usize, const SH: usize = PH, const SW: usize = PW> {
pub qmin: i8,
pub qmax: i8,
}Expand description
Average pooling over PH x PW windows at strides SH, SW (default: the
window size), no padding: the window’s sum divided by its area, rounded
half away from zero, then clamped to [qmin, qmax] (C++ QAvgPool2D).
Fields§
§qmin: i8Lowest output value.
qmax: i8Highest output value.
Implementations§
Trait Implementations§
Source§impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Clone for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Clone for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Copy for QAvgPool2D<PH, PW, SH, SW>
Auto Trait Implementations§
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Freeze for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> RefUnwindSafe for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Send for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Sync for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> Unpin for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> UnsafeUnpin for QAvgPool2D<PH, PW, SH, SW>
impl<const PH: usize, const PW: usize, const SH: usize, const SW: usize> UnwindSafe for QAvgPool2D<PH, PW, SH, SW>
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