Struct tract_hir::ops::cnn::Conv[][src]

pub struct Conv {
    pub data_format: DataFormat,
    pub kernel_fmt: KernelFormat,
    pub dilations: Option<TVec<usize>>,
    pub kernel_shape: Option<TVec<usize>>,
    pub padding: PaddingSpec,
    pub strides: Option<TVec<usize>>,
    pub group: Option<usize>,
    pub x_scale_input: Option<usize>,
    pub x_zero_point_input: Option<usize>,
    pub k_input: Option<usize>,
    pub k_scale_input: Option<usize>,
    pub k_zero_point_input: Option<usize>,
    pub y_scale_input: Option<usize>,
    pub y_zero_point_input: Option<usize>,
    pub bias_input: Option<usize>,
    pub override_output_datum_type: Option<DatumType>,
}

Fields

data_format: DataFormatkernel_fmt: KernelFormatdilations: Option<TVec<usize>>kernel_shape: Option<TVec<usize>>padding: PaddingSpecstrides: Option<TVec<usize>>group: Option<usize>x_scale_input: Option<usize>x_zero_point_input: Option<usize>k_input: Option<usize>k_scale_input: Option<usize>k_zero_point_input: Option<usize>y_scale_input: Option<usize>y_zero_point_input: Option<usize>bias_input: Option<usize>override_output_datum_type: Option<DatumType>

Implementations

impl Conv[src]

pub fn hwc(self) -> Conv[src]

pub fn nhwc(self) -> Conv[src]

pub fn hwio(self) -> Conv[src]

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

pub fn dilations(self, dilations: TVec<usize>) -> Conv[src]

pub fn group(self, group: usize) -> Conv[src]

pub fn strides(self, strides: TVec<usize>) -> Conv[src]

pub fn kernel_shape(self, kernel_shape: TVec<usize>) -> Conv[src]

pub fn bias_input(self, input: usize) -> Conv[src]

pub fn x_zero_point_input(self, input: usize) -> Conv[src]

pub fn k_zero_point_input(self, input: usize) -> Conv[src]

pub fn output_shape<D: DimLike>(
    &self,
    ishape: &[D],
    kshape: &[usize]
) -> TractResult<TVec<D>>
[src]

Trait Implementations

impl Clone for Conv[src]

impl Debug for Conv[src]

impl Default for Conv[src]

impl DynHash for Conv[src]

impl Expansion for Conv[src]

impl Hash for Conv[src]

Auto Trait Implementations

impl RefUnwindSafe for Conv

impl Send for Conv

impl Sync for Conv

impl Unpin for Conv

impl UnwindSafe for Conv

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: Any + Send + Sync

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.