docstr: init the inference model
  
  modelpath: inference model path
  
  use_gpu: use gpu or not
  
  use_mkldnn: use mkldnn or not
  
  combined: inference model format is combined or not
docstr_tok: ["init","the","inference","model","modelpath",":","inference","model","path","use_gpu",":","use","gpu","or","not","use_mkldnn",":","use","mkldnn","or","not","combined",":","inference","model","format","is","combined","or","not"]
code: def __init__(
      self, modelpath, use_gpu=False, use_mkldnn=False, combined=True
  ):
      """
      init the inference model
  
      modelpath: inference model path
  
      use_gpu: use gpu or not
  
      use_mkldnn: use mkldnn or not
  
      combined: inference model format is combined or not
      """
      # 加载模型配置
      self.config = self.load_config(
          modelpath, use_gpu, use_mkldnn, combined
      )
  
file_path: PaddleHub/modules/image/depth_estimation/MiDaS_Large/inference.py
imports: import os
  import numpy
  from paddle.inference import create_predictor, Config
label_desc: Use image node_id 1 to create a new InferenceModel object  with example: obj = InferenceModel(modelpath, use_gpu, use_mkldnn, combined)