code: def __init__(self, model, model_dir, device="gpu"):
      args.model = model
      model_file = model_dir + "/inference_%s.pdmodel" % model.lower()
      params_file = (
          model_dir + "/inference_%s.pdiparams" % model.lower()
      )
  
      config = paddle.inference.Config(model_file, params_file)
  
      config.switch_use_feed_fetch_ops(False)
      self.predictor = paddle.inference.create_predictor(config)
      self.input_handles = [
          self.predictor.get_input_handle(name)
          for name in self.predictor.get_input_names()
      ]
      self.output_handle = self.predictor.get_output_handle(
          self.predictor.get_output_names()[0]
      )
  
file_path: PGL/examples/gnn_depoly/node_classification_with_full_graph/python_deploy.py
imports: import argparse
  import os
  import sys
  import time
  import numpy
  import paddle
  import paddle.nn
  import pgl
label_desc: Use image node_id 1 to create a new Predictor object from inherited base classes: object with example: obj = Predictor(model, model_dir, device)