pub struct SumPool2d {
pub kernel_size: Tensor,
pub stride: Tensor,
pub padding: Tensor,
pub metadata: MetadataMap,
}Expand description
2-D sum pooling.
Fields§
§kernel_size: TensorKernel size (H, W).
stride: TensorStride (H, W).
padding: TensorPadding (H, W).
metadata: MetadataMapFree-form node metadata (Python metadata dict).
Trait Implementations§
impl StructuralPartialEq for SumPool2d
Auto Trait Implementations§
impl Freeze for SumPool2d
impl RefUnwindSafe for SumPool2d
impl Send for SumPool2d
impl Sync for SumPool2d
impl Unpin for SumPool2d
impl UnsafeUnpin for SumPool2d
impl UnwindSafe for SumPool2d
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