pub struct Im2colArgs {
pub pixel_box_lower_corner: Vec<i32>,
pub pixel_box_upper_corner: Vec<i32>,
pub channels_per_pixel: u32,
pub pixels_per_column: u32,
}Expand description
Args for im2col tensor maps
Fields§
§pixel_box_lower_corner: Vec<i32>Pixel box lower corner. This is the logical upper left corner in the input tensor,
when offset is 0. The length of this value should equal the spatial dimensions of
the input tensor (i.e. h, w for an NHWC tensor). Should normally be set to -padding.
pixel_box_upper_corner: Vec<i32>Pixel box top corner. This is the logical lower right corner in the input tensor,
when offset is 0. The length of this value should equal the spatial dimensions of
the input tensor (i.e. h, w for an NHWC tensor). Should normally be set to
padding - kernel_size - 1 (where kernel_size accounts for dilation). This is not
equal to padding, it’s equal to the bounding box for the top left corner of the kernel.
channels_per_pixel: u32Channels to load per pixel, should be a multiple or divisor of the matmul tile size. This is not the total number of channels in the tensor, but only the number loaded in each load. Must be <= 256 and aligned to 16 bytes.
pixels_per_column: u32Pixels per column, equivalent to the m/n dimension of each tile in the matrix
multiplication. i.e. NHW for a 4D tensor.
Must be <= 256 and aligned to 16 bytes
Implementations§
Trait Implementations§
Source§impl Clone for Im2colArgs
impl Clone for Im2colArgs
Source§fn clone(&self) -> Im2colArgs
fn clone(&self) -> Im2colArgs
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Im2colArgs
impl Debug for Im2colArgs
Source§impl Hash for Im2colArgs
impl Hash for Im2colArgs
Source§impl PartialEq for Im2colArgs
impl PartialEq for Im2colArgs
impl Eq for Im2colArgs
impl StructuralPartialEq for Im2colArgs
Auto Trait Implementations§
impl Freeze for Im2colArgs
impl RefUnwindSafe for Im2colArgs
impl Send for Im2colArgs
impl Sync for Im2colArgs
impl Unpin for Im2colArgs
impl UnwindSafe for Im2colArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.