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