Module tflite.utils

Functions

def opcode2name(opc)
Expand source code
def opcode2name(opc):
    if opc in BUILTIN_OPCODE2NAME:
        return BUILTIN_OPCODE2NAME[opc]
    else:
        raise ValueError("Unknown opcode %d, should be a custom operator." % opc)