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

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: usize,
}

Fields

data_format: DataFormatkernel_fmt: KernelFormatdilations: Option<TVec<usize>>kernel_shape: Option<TVec<usize>>padding: PaddingSpecstrides: Option<TVec<usize>>group: usize

Methods

impl Conv[src]

pub fn new(
    data_format: DataFormat,
    kernel_fmt: KernelFormat,
    dilations: Option<TVec<usize>>,
    kernel_shape: Option<TVec<usize>>,
    padding: PaddingSpec,
    strides: Option<TVec<usize>>,
    group: usize
) -> Self
[src]

Constructs a new Conv.

impl Conv[src]

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

pub fn to_unary(
    &self,
    inputs: &[impl Borrow<TypedFact>]
) -> TractResult<Option<ConvUnary>>
[src]

pub fn add_bias_t<T: FloatLike + AddAssign>(
    &self,
    conv_result: &mut Tensor,
    bias: &Tensor
) -> TractResult<()>
[src]

Trait Implementations

impl InferenceRulesOp for Conv[src]

impl StatelessOp for Conv[src]

impl Op for Conv[src]

impl TypedOp for Conv[src]

impl Default for Conv[src]

impl Clone for Conv[src]

impl Debug for Conv[src]

Auto Trait Implementations

impl Send for Conv

impl Unpin for Conv

impl Sync for Conv

impl UnwindSafe for Conv

impl RefUnwindSafe for Conv

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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]