Struct tract_pulse::internal::tract_core::ops::cnn::ConvUnary[]

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

pub fn kernel_as_group_o_ihw(&self) -> Result<Arc<Tensor>, Error>

pub unsafe fn wire_as_quant_im2col(
    &self,
    model: &mut Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    name: &str,
    wires: &[OutletId]
) -> Result<OutletId, Error>

pub unsafe fn wire_as_im2col_pair(
    &self,
    model: &mut Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    name: &str,
    wire: OutletId
) -> Result<OutletId, Error>

pub unsafe fn wire_as_direct(
    &self,
    model: &mut Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    name: &str,
    wire: OutletId
) -> Result<OutletId, Error>

pub fn to_depth_wise<T>(
    &self,
    input_full_shape: &[usize]
) -> Result<Box<dyn TypedOp + 'static, Global>, Error> where
    T: Datum + Clone + LinalgScalar + PartialEq<T> + Sum<T>, 

impl ConvUnary

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

Constructs a new ConvUnary.

Trait Implementations

impl Clone for ConvUnary

impl Debug for ConvUnary

impl DynHash for ConvUnary

impl EvalOp for ConvUnary

impl Hash for ConvUnary

impl Op for ConvUnary

impl PulsedOp for ConvUnary[src]

impl TypedOp for ConvUnary

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.