loadIoProcessor#

load_io_processor(context: pyhelayers.HeContext, buf: bytes) pyhelayers.ModelIoProcessor#

Loads a ModelIoProcessor object from the given buffer.

Parameters:
  • context – The HeContext to initialize the ModelIoProcessor with.

  • buf – The buffer to load from.

Raises:

RuntimeError – If the given buffer does not contain a ModelIoProcessor or if loading fails due to an illegal header of the ModelIoProcessor object in the given buffer.