code: def __init__(self, pb_file=None, pb_model=None):
      """ """
      self.__pattern = ep.core.Pattern()
      if pb_file is not None:
          self.__pattern.LoadModel(pb_file)
      elif pb_model is not None:
          print(type(pb_model))
          assert isinstance(
              pb_model, tf.compat.v1.GraphDef
          ), "type of pb_model must be instance of GraphDef, but got {}".format(
              type(pb_model)
          )
          self.__pattern.LoadModelCT(pb_model.SerializeToString())
      else:
          raise ValueError(
              "Err: pb_file and pb_model can't be both None! "
          )
  
file_path: delta/gcompiler/python/delta_infer/cpp/__init__.py
imports: from __future__ import absolute_import, division, print_function
  import export_py
  import tensorflow
label_desc: Use image node_id 1 to create a new DeltaGraph object from inherited base classes: object with example: obj = DeltaGraph(pb_file, pb_model)