ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::OpCode Struct Reference

#include <SerializedData.h>

Collaboration diagram for luci::OpCode:

Public Member Functions

bool operator== (const OpCode &rhs) const
 

Data Fields

circle::BuiltinOperator opcode
 
std::string custom_code {""}
 
int32_t version = 1
 

Detailed Description

Definition at line 33 of file SerializedData.h.

Member Function Documentation

◆ operator==()

bool luci::OpCode::operator== ( const OpCode rhs) const
inline

Definition at line 39 of file SerializedData.h.

40 {
41 if (opcode == circle::BuiltinOperator_CUSTOM)
42 {
43 return custom_code == rhs.custom_code;
44 }
45 else
46 {
47 return opcode == rhs.opcode;
48 }
49 }
std::string custom_code
circle::BuiltinOperator opcode

References custom_code, and opcode.

Field Documentation

◆ custom_code

std::string luci::OpCode::custom_code {""}

Definition at line 36 of file SerializedData.h.

36{""};

Referenced by operator==().

◆ opcode

circle::BuiltinOperator luci::OpCode::opcode

Definition at line 35 of file SerializedData.h.

Referenced by operator==().

◆ version

int32_t luci::OpCode::version = 1

Definition at line 37 of file SerializedData.h.


The documentation for this struct was generated from the following file: