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

pub struct ConvUnary {
    pub pool_spec: PoolSpec,
    pub kernel_fmt: KernelFormat,
    pub kernel: Arc<Tensor>,
    pub group: usize,
    pub bias: Option<Arc<Tensor>>,
    pub q_params: Option<(DatumType, QParams)>,
}

Fields

pool_spec: PoolSpeckernel_fmt: KernelFormatkernel: Arc<Tensor>group: usizebias: Option<Arc<Tensor>>q_params: Option<(DatumType, QParams)>

Implementations

impl ConvUnary[src]

pub fn new(
    pool_spec: PoolSpec,
    kernel_fmt: KernelFormat,
    kernel: Arc<Tensor>,
    group: usize,
    bias: Option<Arc<Tensor>>,
    q_params: Option<(DatumType, QParams)>
) -> Self
[src]

Constructs a new ConvUnary.

impl ConvUnary[src]

pub fn kernel_as_group_o_ihw(&self) -> TractResult<Arc<Tensor>>[src]

pub unsafe fn wire_as_quant_im2col(
    &self,
    model: &mut TypedModel,
    name: &str,
    wires: &[OutletId]
) -> TractResult<OutletId>
[src]

pub unsafe fn wire_as_im2col_pair(
    &self,
    model: &mut TypedModel,
    name: &str,
    wire: OutletId
) -> TractResult<OutletId>
[src]

pub unsafe fn wire_as_direct(
    &self,
    model: &mut TypedModel,
    name: &str,
    wire: OutletId
) -> TractResult<OutletId>
[src]

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

Trait Implementations

impl Clone for ConvUnary[src]

impl Debug for ConvUnary[src]

impl DynHash for ConvUnary[src]

impl EvalOp for ConvUnary[src]

impl Hash for ConvUnary[src]

impl Op for ConvUnary[src]

impl TypedOp for ConvUnary[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
[src]

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

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.