loadHeModel#
- load_he_model(context: pyhelayers.HeContext, buf: bytes) pyhelayers.HeModel #
Loads an HeModel from the given buffer.
- Parameters:
context – The HeContext to initialize the HeModel with.
buf – The buffer to load from.
- Raises:
RuntimeError – If the given buffer does not contain an HeModel object, or if the object was saved with a mismatching HELayers version.