fn rules<'r, 'p: 'r, 's: 'r>(
        &'s self,
        s: &mut Solver<'r>,
        inputs: &'p [TensorProxy],
        outputs: &'p [TensorProxy],
    ) -> InferenceResult {
        check_input_arity(&inputs, 5)?;
        check_output_arity(&outputs, 1)?;
        s.equals(&inputs[0].datum_type, f32::datum_type())?;
        s.equals(&inputs[1].datum_type, f32::datum_type())?;
        s.equals(&inputs[2].datum_type, f32::datum_type())?;
        s.equals(&inputs[3].datum_type, f32::datum_type())?;
        s.equals(&inputs[4].datum_type, f32::datum_type())?;
        s.equals(&outputs[0].datum_type, f32::datum_type())?;
        s.equals(&outputs[0].shape, &inputs[0].shape)?;
        s.equals(&inputs[0].rank, 4)?;
        s.equals(&inputs[1].rank, 1)?;
        s.equals(&inputs[2].rank, 1)?;
        s.equals(&inputs[3].rank, 1)?;
        s.equals(&inputs[4].rank, 1)?;
        s.equals(&inputs[0].shape, &outputs[0].shape)?;
        s.equals(&inputs[1].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[2].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[3].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[4].shape[0], &inputs[0].shape[3])?;
        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, 5)?;
        check_output_arity(&outputs, 1)?;
        s.equals(&inputs[0].datum_type, f32::datum_type())?;
        s.equals(&inputs[1].datum_type, f32::datum_type())?;
        s.equals(&inputs[2].datum_type, f32::datum_type())?;
        s.equals(&inputs[3].datum_type, f32::datum_type())?;
        s.equals(&inputs[4].datum_type, f32::datum_type())?;
        s.equals(&outputs[0].datum_type, f32::datum_type())?;
        s.equals(&outputs[0].shape, &inputs[0].shape)?;
        s.equals(&inputs[0].rank, 4)?;
        s.equals(&inputs[1].rank, 1)?;
        s.equals(&inputs[2].rank, 1)?;
        s.equals(&inputs[3].rank, 1)?;
        s.equals(&inputs[4].rank, 1)?;
        s.equals(&inputs[0].shape, &outputs[0].shape)?;
        s.equals(&inputs[1].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[2].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[3].shape[0], &inputs[0].shape[3])?;
        s.equals(&inputs[4].shape[0], &inputs[0].shape[3])?;
        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 , 5 ) ? ; check_output_arity ( & outputs , 1 ) ? ; s . equals ( & inputs [ 0 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & inputs [ 1 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & inputs [ 2 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & inputs [ 3 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & inputs [ 4 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & outputs [ 0 ] . datum_type , f32 :: datum_type ( ) ) ? ; s . equals ( & outputs [ 0 ] . shape , & inputs [ 0 ] . shape ) ? ; s . equals ( & inputs [ 0 ] . rank , 4 ) ? ; s . equals ( & inputs [ 1 ] . rank , 1 ) ? ; s . equals ( & inputs [ 2 ] . rank , 1 ) ? ; s . equals ( & inputs [ 3 ] . rank , 1 ) ? ; s . equals ( & inputs [ 4 ] . rank , 1 ) ? ; s . equals ( & inputs [ 0 ] . shape , & outputs [ 0 ] . shape ) ? ; s . equals ( & inputs [ 1 ] . shape [ 0 ] , & inputs [ 0 ] . shape [ 3 ] ) ? ; s . equals ( & inputs [ 2 ] . shape [ 0 ] , & inputs [ 0 ] . shape [ 3 ] ) ? ; s . equals ( & inputs [ 3 ] . shape [ 0 ] , & inputs [ 0 ] . shape [ 3 ] ) ? ; s . equals ( & inputs [ 4 ] . shape [ 0 ] , & inputs [ 0 ] . shape [ 3 ] ) ? ; 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]