function
custom_code_to_op_key
PythonConvert LiteRT customCode into the canonical registry key.
custom_code_to_op_key(custom_code: str | bytes | bytearray) -> strConvert LiteRT customCode into the canonical registry key.
Raises
| Type | Description |
|---|---|
TypeError | If ``custom_code`` is not text or bytes. |
UnsupportedModelError | If 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. |