pub struct AvgPool2d {
pub kernel_size: Tensor,
pub stride: Tensor,
pub padding: Tensor,
pub metadata: MetadataMap,
}Expand description
2-D average 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 AvgPool2d
Auto Trait Implementations§
impl Freeze for AvgPool2d
impl RefUnwindSafe for AvgPool2d
impl Send for AvgPool2d
impl Sync for AvgPool2d
impl Unpin for AvgPool2d
impl UnsafeUnpin for AvgPool2d
impl UnwindSafe for AvgPool2d
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