fn rules<'r, 'p: 'r, 's: 'r>(
        &'s self,
        s: &mut Solver<'r>,
        inputs: &'p [TensorProxy],
        outputs: &'p [TensorProxy],
    ) -> InferenceResult {
        check_input_arity(&inputs, 1)?;
        check_output_arity(&outputs, 1)?;
        s.equals(&inputs[0].datum_type, self.datum_type)?;
        s.equals(&outputs[0].datum_type, self.datum_type)?;
        s.equals(&inputs[0].rank, &outputs[0].rank)?;
        s.equals(&inputs[0].shape, self.batch_shape.clone())?;
        s.equals(&outputs[0].shape, self.space_shape.clone())?;
        Ok(())
    }
/// Registers the inference rules of the operator.
Registers the inference rules of the operator.
Registers the inference rules of the operator .
fn rules<'r, 'p: 'r, 's: 'r>(
        &'s self,
        s: &mut Solver<'r>,
        inputs: &'p [TensorProxy],
        outputs: &'p [TensorProxy],
    ) -> InferenceResult {
        check_input_arity(&inputs, 1)?;
        check_output_arity(&outputs, 1)?;
        s.equals(&inputs[0].datum_type, self.datum_type)?;
        s.equals(&outputs[0].datum_type, self.datum_type)?;
        s.equals(&inputs[0].rank, &outputs[0].rank)?;
        s.equals(&inputs[0].shape, self.batch_shape.clone())?;
        s.equals(&outputs[0].shape, self.space_shape.clone())?;
        Ok(())
    }
fn rules < ' r , ' p : ' r , ' s : ' r > ( & ' s self , s : & mut Solver < ' r > , inputs : & ' p [ TensorProxy ] , outputs : & ' p [ TensorProxy ] , ) -> InferenceResult { check_input_arity ( & inputs , 1 ) ? ; check_output_arity ( & outputs , 1 ) ? ; s . equals ( & inputs [ 0 ] . datum_type , self . datum_type ) ? ; s . equals ( & outputs [ 0 ] . datum_type , self . datum_type ) ? ; s . equals ( & inputs [ 0 ] . rank , & outputs [ 0 ] . rank ) ? ; s . equals ( & inputs [ 0 ] . shape , self . batch_shape . clone ( ) ) ? ; s . equals ( & outputs [ 0 ] . shape , self . space_shape . clone ( ) ) ? ; Ok ( ( ) ) }
Registers the inference rules of the operator.
Registers the inference rules of the operator .
&'s self
s
&mut Solver<'r>
inputs
&'p [TensorProxy]
outputs
&'p [TensorProxy]
&'s self
s
&mut Solver<'r>
inputs
&'p [TensorProxy]
outputs
&'p [TensorProxy]