fn eval(&self, inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>> {
        let casted_inputs: TVec<Cow<Tensor>> =
            inputs.iter().map(|x| x.cast_to::<T>()).collect::<TractResult<_>>()?;
        let refs: TVec<&Tensor> = casted_inputs.iter().map(|i| i.as_ref()).collect();
        let mats = slices(&self.slices, &refs)?;
        let result = T::stack_views(self.axis, &mats)?;
        Ok(tvec![result.into_arc_tensor()])
    }
/// Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors .
fn eval(&self, inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>> {
        let casted_inputs: TVec<Cow<Tensor>> =
            inputs.iter().map(|x| x.cast_to::<T>()).collect::<TractResult<_>>()?;
        let refs: TVec<&Tensor> = casted_inputs.iter().map(|i| i.as_ref()).collect();
        let mats = slices(&self.slices, &refs)?;
        let result = T::stack_views(self.axis, &mats)?;
        Ok(tvec![result.into_arc_tensor()])
    }
fn eval ( & self , inputs : TVec < Arc < Tensor > > ) -> TractResult < TVec < Arc < Tensor > > > { let casted_inputs : TVec < Cow < Tensor > > = inputs . iter ( ) . map ( | x | x . cast_to :: < T > ( ) ) . collect :: < TractResult < _ > > ( ) ? ; let refs : TVec < & Tensor > = casted_inputs . iter ( ) . map ( | i | i . as_ref ( ) ) . collect ( ) ; let mats = slices ( & self . slices , & refs ) ? ; let result = T :: stack_views ( self . axis , & mats ) ? ; Ok ( tvec ! [ result into_arc_tensor ( ) ] ) }
Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors .
&self
inputs
TVec<Arc<Tensor>>