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:13

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, has a character other than an ASCII letter, digit, hyphen, space or underscore, which a generated C identifier cannot hold, or has no letter or digit, so it cannot name an operator.