class_docstr: Model for thread-safe inference.
  To do inference, you need to first initiate an InferenceModel instance, then call
  load|load_caffe|load_openvino to load a pre-trained model, and finally call predict.
  
  # Arguments
  supported_concurrent_num: Int. How many concurrent threads to invoke. Default is 1.
class_docstr_tok: ["Model","for","thread-safe","inference",".","To","do","inference",",","you","need","to","first","initiate","an","InferenceModel","instance",",","then","call","load|load_caffe|load_openvino","to","load","a","pre-trained","model",",","and","finally","call","predict",".","#","Arguments","supported_concurrent_num",":","Int",".","How","many","concurrent","threads","to","invoke",".","Default","is","1","."]
docstr: Load a pre-trained BigDL model.
  
  :param model_path: String. The file path to the model.
  :param weight_path: String. The file path to the weights if any. Default is None.
docstr_tok: ["Load","a","pre-trained","BigDL","model",".",":","param","model_path",":","String",".","The","file","path","to","the","model",".",":","param","weight_path",":","String",".","The","file","path","to","the","weights","if","any",".","Default","is","None","."]
code: def load(
      self, model_path: str, weight_path: Optional[str] = None
  ) -> None:
      """
      Load a pre-trained BigDL model.
  
      :param model_path: String. The file path to the model.
      :param weight_path: String. The file path to the weights if any. Default is None.
      """
      warnings.warn("deprecated in 0.8.0")
      callZooFunc(
          self.bigdl_type,
          "inferenceModelLoad",
          self.value,
          model_path,
          weight_path,
      )
  
imports: import warnings
  from bigdl.dllib.utils.common import JavaValue
  from bigdl.dllib.utils.file_utils import callZooFunc
  from bigdl.dllib.keras.engine.topology import KerasNet
  from bigdl.dllib.nn.layer import Layer
  from bigdl.dllib.utils.log4Error import invalidInputError
  from typing import Any, Union, Optional, List
  from typing import TYPE_CHECKING
label_desc: Use image node_id 3 for calling the InferenceModel obj's underlying member method code with example usage: obj.load(model_path, weight_path) without return types