pub struct LpPool3d<D: Dtype, IT, OT, const RANK: usize> {
pub kernel_d: usize,
pub kernel_h: usize,
pub kernel_w: usize,
pub stride_d: usize,
pub stride_h: usize,
pub stride_w: usize,
pub p: f64,
/* private fields */
}Expand description
3-D power-average (Lp) pooling: like average pooling, generalized to an arbitrary p-norm.
Fields§
§kernel_d: usizePooling window depth.
kernel_h: usizePooling window height.
kernel_w: usizePooling window width.
stride_d: usizeStride along the depth dimension.
stride_h: usizeStride along the height dimension.
stride_w: usizeStride along the width dimension.
p: f64The p in the p-norm.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, IT, OT, const RANK: usize> Freeze for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> RefUnwindSafe for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Send for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Sync for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Unpin for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnsafeUnpin for LpPool3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnwindSafe for LpPool3d<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