ONE - On-device Neural Engine
|
Class that holds operator codes and related methods. More...
#include <Context.h>
Public Member Functions | |
TflOpCodeContext (const flatbuffers::Vector< flatbuffers::Offset< tflite::OperatorCode > > *opcodes) | |
tflite::BuiltinOperator | builtin_code (const tflite::Operator *op) const |
Returns BuiltinOperator value of the operator. | |
std::string | opcode_name (const tflite::Operator *op) const |
Returns human readable name of the operator code of the operator. | |
Static Public Member Functions | |
static bool | is_valid (const tflite::OperatorCode *opcode) |
static bool | is_custom (const tflite::OperatorCode *opcode) |
tflimport::TflOpCodeContext::TflOpCodeContext | ( | const flatbuffers::Vector< flatbuffers::Offset< tflite::OperatorCode > > * | opcodes | ) |
Definition at line 50 of file Context.cpp.
tflite::BuiltinOperator tflimport::TflOpCodeContext::builtin_code | ( | const tflite::Operator * | op | ) | const |
Returns BuiltinOperator value of the operator.
Definition at line 59 of file Context.cpp.
|
static |
Definition at line 98 of file Context.cpp.
Referenced by opcode_name().
|
static |
Definition at line 92 of file Context.cpp.
Referenced by opcode_name().
std::string tflimport::TflOpCodeContext::opcode_name | ( | const tflite::Operator * | op | ) | const |
Returns human readable name of the operator code of the operator.
Definition at line 67 of file Context.cpp.
References is_custom(), and is_valid().