parameters: (self, model_path: str)
docstring: Initialize ORT format model dumper
          :param model_path: Path to model
docstring_summary: Initialize ORT format model dumper
          :param model_path: Path to model
docstring_tokens: Initialize ORT format model dumper : param model_path : Path to model
function: def __init__(self, model_path: str):
          '''
          Initialize ORT format model dumper
          :param model_path: Path to model
          '''
          self._file = open(model_path, 'rb').read()
          self._buffer = bytearray(self._file)
          if not fbs.InferenceSession.InferenceSession.InferenceSessionBufferHasIdentifier(self._buffer, 0):
              raise RuntimeError("File does not appear to be a valid ORT format model: '{}'".format(model_path))
          self._model = fbs.InferenceSession.InferenceSession.GetRootAsInferenceSession(self._buffer, 0).Model()
function_tokens: def __init__ ( self , model_path : str ) : self . _file = open ( model_path , 'rb' ) . read ( ) self . _buffer = bytearray ( self . _file ) if not fbs . InferenceSession . InferenceSession . InferenceSessionBufferHasIdentifier ( self . _buffer , 0 ) : raise RuntimeError ( "File does not appear to be a valid ORT format model: '{}'" . format ( model_path ) ) self . _model = fbs . InferenceSession . InferenceSession . GetRootAsInferenceSession ( self . _buffer , 0 ) . Model ( )