(self, x)
return output
run

        Inference process using inference engine.

        Args:
            x: Input data after preprocess.

        Returns: Inference engine output
run
run
def run(self, x):
        """run

        Inference process using inference engine.

        Args:
            x: Input data after preprocess.

        Returns: Inference engine output
        """
        self.input_tensor.copy_from_cpu(x)
        self.predictor.run()
        output = self.output_tensor.copy_to_cpu()
        return output
def run ( self , x ) : self . input_tensor . copy_from_cpu ( x ) self . predictor . run ( ) output = self . output_tensor . copy_to_cpu ( ) return output