[][src]Struct tract_core::ops::cnn::ConvUnary

pub struct ConvUnary {
    pub data_format: DataFormat,
    pub kernel_fmt: KernelFormat,
    pub padding: PaddingSpec,
    pub dilations: TVec<usize>,
    pub strides: TVec<usize>,
    pub kernel: Tensor,
    pub bias: Option<Tensor>,
    pub full_input_shape: TVec<TDim>,
    pub full_output_shape: TVec<TDim>,
    pub group: usize,
}

Fields

data_format: DataFormatkernel_fmt: KernelFormatpadding: PaddingSpecdilations: TVec<usize>strides: TVec<usize>kernel: Tensorbias: Option<Tensor>full_input_shape: TVec<TDim>full_output_shape: TVec<TDim>group: usize

Methods

impl ConvUnary[src]

pub fn new(
    conv: &Conv,
    full_input_shape: &[TDim],
    full_output_shape: &[TDim],
    kernel: Tensor,
    bias: Option<Tensor>,
    group: usize
) -> TractResult<ConvUnary>
[src]

pub fn to_direct(&self, input_full_shape: &[usize]) -> TractResult<Direct>[src]

pub fn to_boxed_im2col_pair<T>(
    &self,
    input_full_shape: &[usize]
) -> TractResult<(Box<dyn Op>, TVec<usize>, Box<dyn Op>)> where
    T: Datum + Clone + LinalgScalar + AddAssign<T> + FloatLike
[src]

pub fn rm_dummy_axis(&self, axis: usize) -> TractResult<Option<ConvUnary>>[src]

pub fn to_depth_wise<T>(&self, shape: &[usize]) -> TractResult<Box<dyn Op>> where
    T: Datum + Clone + LinalgScalar + AddAssign<T> + PartialEq + Sum
[src]

Trait Implementations

impl InferenceRulesOp for ConvUnary[src]

impl StatelessOp for ConvUnary[src]

impl Op for ConvUnary[src]

fn infer(
    &self,
    inputs: TVec<&TensorFact>,
    outputs: TVec<&TensorFact>
) -> TractResult<(TVec<TensorFact>, TVec<TensorFact>)>
[src]

Infers properties about the input and output tensors. Read more

fn rounding_errors(&self) -> bool[src]

fn same_as(&self, _other: &dyn Op) -> bool[src]

fn info(&self) -> TractResult<Option<String>>[src]

impl Clone for ConvUnary[src]

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

Performs copy-assignment from source. Read more

impl Debug for ConvUnary[src]

Auto Trait Implementations

impl Send for ConvUnary

impl Sync for ConvUnary

Blanket Implementations

impl<O> StatefullOp for O where
    O: StatelessOp + Clone
[src]

impl<O> InferenceOp for O where
    O: InferenceRulesOp
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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]