Skip to content
heliaAOT
API Reference
HELIA HUB

op_keys

Machine-readable model

function

Convert LiteRT customCode into the canonical registry key.

helia_aot/air/op_keys.py:8

custom_code_to_op_key(custom_code: str | bytes | bytearray) -> str

Convert LiteRT customCode into the canonical registry key.

Errors raised by custom_code_to_op_key
TypeDescription
TypeErrorIf ``custom_code`` is not text or bytes.
UnsupportedModelErrorIf it is not UTF-8 or has no letter or digit, so it cannot name an operator.