Struct orkhon::prelude::ops::cnn::PatchSpec[][src]

pub struct PatchSpec {
    pub input_shape: SmallVec<[usize; 4]>,
    pub input_inner_stride: usize,
    pub output_inner_stride: usize,
    pub kernel_shape: SmallVec<[usize; 4]>,
    pub strides: SmallVec<[usize; 4]>,
    pub dilations: SmallVec<[usize; 4]>,
    pub padding: PaddingSpec,
}

Fields

input_shape: SmallVec<[usize; 4]>input_inner_stride: usizeoutput_inner_stride: usizekernel_shape: SmallVec<[usize; 4]>strides: SmallVec<[usize; 4]>dilations: SmallVec<[usize; 4]>padding: PaddingSpec

Implementations

impl PatchSpec[src]

pub fn for_full_shape(
    data_format: DataFormat,
    input_full_shape: &[usize]
) -> Result<PatchSpec, Error>
[src]

pub fn for_data_shape(
    data_shape: BaseDataShape<usize, SmallVec<[usize; 4]>>
) -> PatchSpec
[src]

pub fn with_kernel_shape(self, kernel_shape: SmallVec<[usize; 4]>) -> PatchSpec[src]

pub fn with_dilations(self, dilations: SmallVec<[usize; 4]>) -> PatchSpec[src]

pub fn with_strides(self, strides: SmallVec<[usize; 4]>) -> PatchSpec[src]

pub fn with_padding(self, padding: PaddingSpec) -> PatchSpec[src]

pub fn with_output_inner_stride(self, output_inner_stride: usize) -> PatchSpec[src]

pub fn into_patch(self) -> Patch[src]

Trait Implementations

impl Clone for PatchSpec[src]

impl Debug for PatchSpec[src]

impl Hash for PatchSpec[src]

impl PartialEq<PatchSpec> for PatchSpec[src]

impl StructuralPartialEq for PatchSpec[src]

Auto Trait Implementations

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

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

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.