class_docstr: A base class for keras optimized model.
class_docstr_tok: ["A","base","class","for","keras","optimized","model","."]
docstr: Run inference, automatically perform type and dtype conversion.
docstr_tok: ["Run","inference",",","automatically","perform","type","and","dtype","conversion","."]
code: def __call__(self, *args, **kwargs):
      """Run inference, automatically perform type and dtype conversion."""
      kwargs.pop("training", None)
      inputs = self.preprocess(args, kwargs)
      outputs = self.forward(inputs)
      outputs = self.postprocess(outputs)
      return outputs
  
file_path: BigDL/python/nano/src/bigdl/nano/tf/model.py
imports: from pathlib import Path
  from typing import Sequence, Any, Union, Dict
  import yaml
  import tensorflow
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling the KerasOptimizedModel obj's underlying member method code with example usage: obj.__call__() and returns: outputs