[]Struct tract_pulse::internal::tract_core::ops::cnn::conv::Im2Col

pub struct Im2Col<T> where
    T: Datum + Copy + Zero
{ pub patch: Patch, pub input_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>, pub output_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>, pub m: usize, pub k: usize, pub n: usize, pub group: usize, pub ci_per_group: usize, pub b_pack: PackB<T>, // some fields omitted }

Fields

patch: Patchinput_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>output_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>m: usizek: usizen: usizegroup: usizeci_per_group: usizeb_pack: PackB<T>

Implementations

impl<T> Im2Col<T> where
    T: Datum + Copy + Zero

pub fn new(
    patch: Patch,
    input_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>,
    m: usize,
    k: usize,
    n: usize,
    group: usize,
    ci_per_group: usize,
    b_pack: PackB<T>,
    pad_value: T
) -> Result<Im2Col<T>, TractError>

pub fn output_shape(&self) -> &[usize]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]

Trait Implementations

impl<T> Clone for Im2Col<T> where
    T: Datum + Clone + Copy + Zero

impl<T> Debug for Im2Col<T> where
    T: Datum + Copy + Debug + Zero

impl<T> DynHash for Im2Col<T> where
    T: Datum + Copy + Zero

impl<T> EvalOp for Im2Col<T> where
    T: Datum + Copy + Zero

impl<T> Hash for Im2Col<T> where
    T: Datum + Copy + Zero

impl<T> Op for Im2Col<T> where
    T: Datum + Copy + Zero

impl<T> PartialEq<Im2Col<T>> for Im2Col<T> where
    T: Datum + Copy + Zero

impl<T> TypedOp for Im2Col<T> where
    T: Datum + Copy + Zero

Auto Trait Implementations

impl<T> RefUnwindSafe for Im2Col<T> where
    T: RefUnwindSafe

impl<T> Send for Im2Col<T>

impl<T> Sync for Im2Col<T>

impl<T> Unpin for Im2Col<T> where
    T: Unpin

impl<T> UnwindSafe for Im2Col<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.