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 or has no letter or digit, so it cannot name an operator. |