[][src]Trait tract_hir::internal::StatelessOp

pub trait StatelessOp: Op {
    fn eval(
        &self,
        inputs: SmallVec<[Arc<Tensor>; 4]>
    ) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>; }

Required methods

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>

Loading content...

Implementations on Foreign Types

impl<T> StatelessOp for MatMatMulPackB<T> where
    T: Copy + Datum + Zero
[src]

impl StatelessOp for MergeOpUnicast[src]

impl StatelessOp for FiniteReshape[src]

impl StatelessOp for MultiBroadcastTo[src]

impl<T> StatelessOp for Im2Col<T> where
    T: Datum + Copy + Zero
[src]

impl StatelessOp for UnaryOp[src]

impl StatelessOp for Reduce[src]

impl StatelessOp for MatMulUnary[src]

impl StatelessOp for Tile[src]

impl StatelessOp for TypedBinOp[src]

Loading content...

Implementors

impl StatelessOp for AxisOp[src]

impl StatelessOp for Box<dyn Expansion>[src]

impl StatelessOp for ConstantLike[src]

fn eval(&self, inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>>[src]

Evaluates the operation given the input tensors.

impl StatelessOp for EyeLike[src]

fn eval(&self, inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>>[src]

Evaluates the operation given the input tensors.

impl StatelessOp for Gather[src]

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>
[src]

Evaluates the operation given the input tensors.

impl StatelessOp for Pad[src]

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>
[src]

Evaluates the operation given the input tensors.

impl StatelessOp for TypedConcat[src]

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>
[src]

Evaluates the operation given the input tensors.

impl StatelessOp for Nary[src]

impl StatelessOp for ConvUnary[src]

impl StatelessOp for MaxPool[src]

impl StatelessOp for SumPool[src]

impl StatelessOp for Downsample[src]

impl StatelessOp for Dummy[src]

impl StatelessOp for ElementWiseOp[src]

impl StatelessOp for Identity[src]

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>
[src]

Evaluates the operation given the input tensors.

impl StatelessOp for Const[src]

impl StatelessOp for Iff[src]

impl StatelessOp for MatMul[src]

impl StatelessOp for LayerHardmax[src]

impl StatelessOp for DequantizeLinearF32[src]

impl<D> StatelessOp for Slice<D> where
    D: DimLike + ToDim + Hash
[src]

fn eval(
    &self,
    inputs: SmallVec<[Arc<Tensor>; 4]>
) -> Result<SmallVec<[Arc<Tensor>; 4]>, TractError>
[src]

Evaluates the operation given the input tensors.

Loading content...