class_docstr: This is the accelerated model for tensorflow and onnxruntime.
class_docstr_tok: ["This","is","the","accelerated","model","for","tensorflow","and","onnxruntime","."]
code: def forward(self, inputs: Union[Sequence[Any], Dict[str, Any]]):
      if isinstance(inputs, Sequence):
          return self.forward_step(*inputs)
      else:
          return self.ortsess.run(None, inputs)
  
imports: import os
  from bigdl.nano.utils.common import SafePickle
  from pathlib import Path
  from typing import Sequence, Any, Union, Dict
  from tempfile import TemporaryDirectory
  import tensorflow
  from bigdl.nano.utils.tf import convert_all
  from bigdl.nano.tf.model import KerasOptimizedModel
  from bigdl.nano.utils.common import invalidInputError
  from ..core.onnxruntime_model import ONNXRuntimeModel
  import onnxruntime
label_desc: Use image node_id 3 for calling the KerasONNXRuntimeModel obj's underlying member method code with example usage: obj.forward(inputs) and returns: self, self