docstr: create the model predictor by model config
docstr_tok: ["create","the","model","predictor","by","model","config"]
code: def eval(self):
      """
      create the model predictor by model config
      """
      # 创建预测器
      self.predictor = create_predictor(self.config)
  
      # 获取模型的输入输出名称
      self.input_names = self.predictor.get_input_names()
      self.output_names = self.predictor.get_output_names()
  
      # 获取模型的输入输出节点数量
      self.input_num = len(self.input_names)
      self.output_num = len(self.output_names)
  
      # 获取输入
      self.input_handles = []
      for input_name in self.input_names:
          self.input_handles.append(
              self.predictor.get_input_handle(input_name)
          )
  
      # 获取输出
      self.output_handles = []
      for output_name in self.output_names:
          self.output_handles.append(
              self.predictor.get_output_handle(output_name)
          )
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/animegan_v2_paprika_54/model.py
imports: import os
  import numpy
  from paddle.inference import Config
  from paddle.inference import create_predictor
label_desc: Use image node_id 5 for calling the InferenceModel obj's underlying member method code with example usage: obj.eval() without return types