Struct ocl_convolution::Params
source · pub struct Params {
pub strides: [u32; 2],
pub pads: [u32; 4],
pub groups: u32,
pub dilation: [u32; 2],
}
Expand description
General convolution parameters.
The parameters translate to the parameters of the Conv
ONNX operator.
Fields§
§strides: [u32; 2]
Strides along spatial dimensions.
pads: [u32; 4]
Pads along spatial dimensions. The first 2 values denote pads at the beginning of rows / columns, the second 2 values – pads at the end.
groups: u32
Number of groups in the convolution. Each group of filters will be applied to a subset of input channels.
dilation: [u32; 2]
Signal dilation along spatial dimensions.
Trait Implementations§
source§impl PartialEq<Params> for Params
impl PartialEq<Params> for Params
impl Copy for Params
impl Eq for Params
impl StructuralEq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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