Trait tract_hir::internal::EvalOp[][src]

pub trait EvalOp {
    fn is_stateless(&self) -> bool;

    fn eval(
        &self,
        inputs: SmallVec<[Arc<Tensor>; 4]>
    ) -> Result<SmallVec<[Arc<Tensor>; 4]>, Error> { ... }
fn state(
        &self,
        session: &mut SessionState,
        node_id: usize
    ) -> Result<Option<Box<dyn OpState + 'static, Global>>, Error> { ... } }

Required methods

Provided methods

Implementations on Foreign Types

Implementors