pub struct AvgPool2D<const KERNEL_SIZE: usize, const STRIDE: usize = 1, const PADDING: usize = 0>;
Expand description
Average pool with 2d kernel that operates on images (3d) and batches of images (4d).
Each patch reduces to the average of the values in the patch.
Generics:
KERNEL_SIZE
: The size of the kernel applied to both width and height of the images.
STRIDE
: How far to move the kernel each step. Defaults to 1
PADDING
: How much zero padding to add around the images. Defaults to 0
.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
The type that this unit produces given Input
.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.