code: def __init__(
      self, modelpath, use_gpu=False, use_mkldnn=True, combined=True
  ):
      # 加载模型预测器
      self.predictor = self.load_model(
          modelpath, use_gpu, use_mkldnn, combined
      )
  
      # 获取模型的输入输出
      self.input_names = self.predictor.get_input_names()
      self.output_names = self.predictor.get_output_names()
      self.input_handle = self.predictor.get_input_handle(
          self.input_names[0]
      )
      self.output_handle = self.predictor.get_output_handle(
          self.output_names[0]
      )
  
imports: import os
  import numpy
  from paddle.inference import create_predictor, Config
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(modelpath, use_gpu, use_mkldnn, combined)