docstr: InferenceOptimizer for Pytorch/TF Model.
  
  It can be used to accelerate your model's inference speed
  with very few code changes.
code: def __init__(self):
      """
      InferenceOptimizer for Pytorch/TF Model.
  
      It can be used to accelerate your model's inference speed
      with very few code changes.
      """
      # optimized_model_dict handles the optimized model and some metadata
      # in {"method_name": {"latency": ..., "accuracy": ..., "model": ...}}
      self.optimized_model_dict = {}
      self._optimize_result = None
  
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 1 to create a new BaseInferenceOptimizer object  with example: obj = BaseInferenceOptimizer()