[][src]Struct tract_core::ops::nn::Patch

pub struct Patch {
    pub dilations: TVec<usize>,
    pub kernel_spatial_shape: TVec<usize>,
    pub pad_before: TVec<usize>,
    pub pad_after: TVec<usize>,
    pub padded: bool,
    pub kernel_strides: TVec<usize>,
    pub input_shape: DataShape<usize, TVec<usize>>,
    pub output_spatial_shape: TVec<usize>,
    pub data_field: Array2<usize>,
    pub standard_layout_data_field: Vec<isize>,
}

Fields

dilations: TVec<usize>kernel_spatial_shape: TVec<usize>pad_before: TVec<usize>pad_after: TVec<usize>padded: boolkernel_strides: TVec<usize>input_shape: DataShape<usize, TVec<usize>>output_spatial_shape: TVec<usize>data_field: Array2<usize>standard_layout_data_field: Vec<isize>

Methods

impl Patch
[src]

pub fn new(
    data_fmt: DataFormat,
    dilations: TVec<usize>,
    kernel_spatial_shape: TVec<usize>,
    padding: &PaddingSpec,
    kernel_strides: TVec<usize>,
    input_full_shape: TVec<usize>
) -> Patch
[src]

pub fn output_full_shape(&self, channels: usize) -> TVec<usize>
[src]

pub fn wrap<'i, 'p, T: Datum>(
    &'p self,
    input: &'i ArrayViewD<'i, T>
) -> PatchVisitor<'i, 'p, T>
[src]

Trait Implementations

impl PartialEq<Patch> for Patch
[src]

impl Clone for Patch
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Patch
[src]

Auto Trait Implementations

impl Send for Patch

impl Sync for Patch

Blanket Implementations

impl<PB, Tract> ToTract for PB where
    Tract: Tractify<PB>, 
[src]

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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