docstr: According to results of `optimize`, obtain the model with method_name.
  
  The available methods are "original", "fp32_channels_last", "fp32_ipex",
  "fp32_ipex_channels_last", "bf16", "bf16_channels_last", "bf16_ipex",
  "bf16_ipex_channels_last", "static_int8", "static_int8_ipex", "jit_fp32",
  "jit_fp32_channels_last", "jit_bf16", "jit_bf16_channels_last",
  "jit_fp32_ipex", "jit_fp32_ipex_channels_last", "jit_bf16_ipex",
  "jit_bf16_ipex_channels_last", "jit_int8", "jit_int8_channels_last",
  "openvino_fp32", "openvino_int8", "onnxruntime_fp32",
  "onnxruntime_int8_qlinear" and "onnxruntime_int8_integer".
  
  :param method_name: (optional) Obtain specific model according to method_name.
  :return: Model with different acceleration.
code: def get_model(self, method_name: str):
      """
      According to results of `optimize`, obtain the model with method_name.
  
      The available methods are "original", "fp32_channels_last", "fp32_ipex",
      "fp32_ipex_channels_last", "bf16", "bf16_channels_last", "bf16_ipex",
      "bf16_ipex_channels_last", "static_int8", "static_int8_ipex", "jit_fp32",
      "jit_fp32_channels_last", "jit_bf16", "jit_bf16_channels_last",
      "jit_fp32_ipex", "jit_fp32_ipex_channels_last", "jit_bf16_ipex",
      "jit_bf16_ipex_channels_last", "jit_int8", "jit_int8_channels_last",
      "openvino_fp32", "openvino_int8", "onnxruntime_fp32",
      "onnxruntime_int8_qlinear" and "onnxruntime_int8_integer".
  
      :param method_name: (optional) Obtain specific model according to method_name.
      :return: Model with different acceleration.
      """
      invalidOperationError(
          len(self.optimized_model_dict) > 0,
          "There is no optimized model. You should call .optimize() "
          "before get_model()",
      )
      invalidInputError(
          method_name in self.ALL_INFERENCE_ACCELERATION_METHOD.keys(),
          f"The model name you passed does not exist in the existing method "
          f"list{list(self.ALL_INFERENCE_ACCELERATION_METHOD.keys())}, "
          f"please re-enter the model name again.",
      )
      invalidInputError(
          "model" in self.optimized_model_dict[method_name],
          "Unable to get the specified model as it doesn't exist in "
          "optimized_model_dict.",
      )
      return self.optimized_model_dict[method_name]["model"]
  
file_path: BigDL/python/nano/src/bigdl/nano/utils/common/optimizer/optimizer.py
imports: from abc import abstractmethod
  from typing import Dict, Optional
  from bigdl.nano.utils.common import invalidInputError, invalidOperationError
  from .acceleration_option import AccelerationOption
  from .format import format_acceleration_option
  from .metric import CompareMetric
label_desc: Use image node_id 4 for calling the BaseInferenceOptimizer obj's underlying member method code with example usage: obj.get_model(method_name) and returns: self