docstr: Load a paddle model from disk
  
  Parameters
  ----------
  model_network_path: str
      Path where the model network path is (json file)
  
  model_weight_path: str
      Path where the model network weights are (hd5 file)
  
  Returns
  -------
  model: A paddle model
docstr_tok: ["Load","a","paddle","model","from","disk","Parameters","--","--","--","--","--","model_network_path",":","str","Path","where","the","model","network","path","is","(","json","file",")","model_weight_path",":","str","Path","where","the","model","network","weights","are","(","hd5","file",")","Returns","--","--","--","-","model",":","A","paddle","model"]
code: def _load_model(self, model_network_path, model_weight_path):
      """Load a paddle model from disk
  
      Parameters
      ----------
      model_network_path: str
          Path where the model network path is (json file)
  
      model_weight_path: str
          Path where the model network weights are (hd5 file)
  
      Returns
      -------
      model: A paddle model
      """
      from paddle.proto import ModelConfig_pb2
      from mmdnn.conversion.common.IR.IR_graph import (
          load_protobuf_from_file,
      )
  
      loaded_model = ModelConfig_pb2.ModelConfig()
      load_protobuf_from_file(loaded_model, model_network_path)
  
      if model_weight_path:
          if os.path.isfile(model_weight_path):
              parameters = paddle.parameters.Parameters.from_tar(
                  gzip.open(model_weight_path, "r")
              )
              self.weight_loaded = True
              print(
                  "Network file [{}] and [{}] is loaded successfully.".format(
                      model_network_path, model_weight_path
                  )
              )
  
          else:
              print(
                  "Warning: Weights File [%s] is not found."
                  % (model_weight_path)
              )
  
      return loaded_model, parameters
  
imports: from __future__ import absolute_import
  import os
  import gzip
  from six import string_types
  import paddle.v2
  import paddle.trainer_config_helpers.layers
  import numpy
  from mmdnn.conversion.paddle.paddle_graph import PaddleGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.common.utils import *
label_desc: Use image node_id 1 for calling the PaddleParser obj's underlying member method code with example usage: obj._load_model(model_network_path, model_weight_path) and returns: loaded_model,  parameters