fn eval(&self, mut inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>> {
        let (input, block_shape, crops) = args_3!(inputs);
        let block_shape = block_shape.cast_to::<i32>()?;
        let block_shape = block_shape.to_array_view::<i32>()?.into_dimensionality()?;
        let crops = crops.cast_to::<i32>()?;
        let crops = crops.to_array_view::<i32>()?.into_dimensionality()?;
        let r = dispatch_numbers!(super::batch_to_space(input.datum_type())(
            input,
            &block_shape.view(),
            &crops.view()
        ))?;
        Ok(tvec!(r))
    }
/// Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors .
fn eval(&self, mut inputs: TVec<Arc<Tensor>>) -> TractResult<TVec<Arc<Tensor>>> {
        let (input, block_shape, crops) = args_3!(inputs);
        let block_shape = block_shape.cast_to::<i32>()?;
        let block_shape = block_shape.to_array_view::<i32>()?.into_dimensionality()?;
        let crops = crops.cast_to::<i32>()?;
        let crops = crops.to_array_view::<i32>()?.into_dimensionality()?;
        let r = dispatch_numbers!(super::batch_to_space(input.datum_type())(
            input,
            &block_shape.view(),
            &crops.view()
        ))?;
        Ok(tvec!(r))
    }
fn eval ( & self , mut inputs : TVec < Arc < Tensor > > ) -> TractResult < TVec < Arc < Tensor > > > { let ( input , block_shape , crops ) = args_3 ! ( inputs ) ; let block_shape = block_shape . cast_to :: < i32 > ( ) ? ; let block_shape = block_shape . to_array_view :: < i32 > ( ) ? . into_dimensionality ( ) ? ; let crops = crops . cast_to :: < i32 > ( ) ? ; let crops = crops . to_array_view :: < i32 > ( ) ? . into_dimensionality ( ) ? ; let r = dispatch_numbers ! ( super batch_to_space ( input datum_type ( ) ) ( input block_shape view ( ) crops view ( ) ) ) ? ; Ok ( tvec ! ( r ) ) }
Evaluates the operation given the input tensors.
Evaluates the operation given the input tensors .
&self
inputs
TVec<Arc<Tensor>>
&self
inputs
TVec<Arc<Tensor>>