nncf/experimental/onnx/engine.py
def _infer(self, _input: np.ndarray) -> Dict[str, np.ndarray]:
        """
        Runs InferenceSession on the provided '_input'.
        Returns the model outputs and corresponding node names in the model.
        """
        output = {}
        input_name = self.sess.get_inputs()[0].name
        output_tensor = self.sess.run([], {input_name: _input.astype(np.float32)})
        model_outputs = self.sess.get_outputs()
        for i, model_output in enumerate(model_outputs):
            output[model_output.name] = output_tensor[i]
        return output

        Runs InferenceSession on the provided '_input'.
        Returns the model outputs and corresponding node names in the model.
        
Runs InferenceSession on the provided '_input'.
Returns the model outputs and corresponding node names in the model.
Runs InferenceSession on the provided ' _input ' . Returns the model outputs and corresponding node names in the model .
def _infer(self, _input: np.ndarray) -> Dict[str, np.ndarray]:
        output = {}
        input_name = self.sess.get_inputs()[0].name
        output_tensor = self.sess.run([], {input_name: _input.astype(np.float32)})
        model_outputs = self.sess.get_outputs()
        for i, model_output in enumerate(model_outputs):
            output[model_output.name] = output_tensor[i]
        return output
def _infer ( self , _input : np . ndarray ) -> Dict [ str , np . ndarray ] : output = { } input_name = self . sess . get_inputs ( ) [ 0 ] . name output_tensor = self . sess . run ( [ ] , { input_name : _input . astype ( np . float32 ) } ) model_outputs = self . sess . get_outputs ( ) for i , model_output in enumerate ( model_outputs ) : output [ model_output . name ] = output_tensor [ i ] return output
Runs InferenceSession on the provided '_input'.
Runs InferenceSession on the provided ' _input ' .
"""
        Runs InferenceSession on the provided '_input'.
        Returns the model outputs and corresponding node names in the model.
        """
self
_input
np.ndarray