1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 
4 #ifndef FLATBUFFERS_GENERATED_TYPE_MNN_H_
5 #define FLATBUFFERS_GENERATED_TYPE_MNN_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MNN {
10 
11 enum NetSource {
12   NetSource_CAFFE = 0,
13   NetSource_TENSORFLOW = 1,
14   NetSource_TFLITE = 2,
15   NetSource_ONNX = 3,
16   NetSource_TORCH = 4,
17   NetSource_MIN = NetSource_CAFFE,
18   NetSource_MAX = NetSource_TORCH
19 };
20 
EnumValuesNetSource()21 inline const NetSource (&EnumValuesNetSource())[5] {
22   static const NetSource values[] = {
23     NetSource_CAFFE,
24     NetSource_TENSORFLOW,
25     NetSource_TFLITE,
26     NetSource_ONNX,
27     NetSource_TORCH
28   };
29   return values;
30 }
31 
EnumNamesNetSource()32 inline const char * const *EnumNamesNetSource() {
33   static const char * const names[] = {
34     "CAFFE",
35     "TENSORFLOW",
36     "TFLITE",
37     "ONNX",
38     "TORCH",
39     nullptr
40   };
41   return names;
42 }
43 
EnumNameNetSource(NetSource e)44 inline const char *EnumNameNetSource(NetSource e) {
45   if (e < NetSource_CAFFE || e > NetSource_TORCH) return "";
46   const size_t index = static_cast<int>(e);
47   return EnumNamesNetSource()[index];
48 }
49 
50 enum DataType {
51   DataType_DT_INVALID = 0,
52   DataType_DT_FLOAT = 1,
53   DataType_DT_DOUBLE = 2,
54   DataType_DT_INT32 = 3,
55   DataType_DT_UINT8 = 4,
56   DataType_DT_INT16 = 5,
57   DataType_DT_INT8 = 6,
58   DataType_DT_STRING = 7,
59   DataType_DT_COMPLEX64 = 8,
60   DataType_DT_INT64 = 9,
61   DataType_DT_BOOL = 10,
62   DataType_DT_QINT8 = 11,
63   DataType_DT_QUINT8 = 12,
64   DataType_DT_QINT32 = 13,
65   DataType_DT_BFLOAT16 = 14,
66   DataType_DT_QINT16 = 15,
67   DataType_DT_QUINT16 = 16,
68   DataType_DT_UINT16 = 17,
69   DataType_DT_COMPLEX128 = 18,
70   DataType_DT_HALF = 19,
71   DataType_DT_RESOURCE = 20,
72   DataType_DT_VARIANT = 21,
73   DataType_MIN = DataType_DT_INVALID,
74   DataType_MAX = DataType_DT_VARIANT
75 };
76 
EnumValuesDataType()77 inline const DataType (&EnumValuesDataType())[22] {
78   static const DataType values[] = {
79     DataType_DT_INVALID,
80     DataType_DT_FLOAT,
81     DataType_DT_DOUBLE,
82     DataType_DT_INT32,
83     DataType_DT_UINT8,
84     DataType_DT_INT16,
85     DataType_DT_INT8,
86     DataType_DT_STRING,
87     DataType_DT_COMPLEX64,
88     DataType_DT_INT64,
89     DataType_DT_BOOL,
90     DataType_DT_QINT8,
91     DataType_DT_QUINT8,
92     DataType_DT_QINT32,
93     DataType_DT_BFLOAT16,
94     DataType_DT_QINT16,
95     DataType_DT_QUINT16,
96     DataType_DT_UINT16,
97     DataType_DT_COMPLEX128,
98     DataType_DT_HALF,
99     DataType_DT_RESOURCE,
100     DataType_DT_VARIANT
101   };
102   return values;
103 }
104 
EnumNamesDataType()105 inline const char * const *EnumNamesDataType() {
106   static const char * const names[] = {
107     "DT_INVALID",
108     "DT_FLOAT",
109     "DT_DOUBLE",
110     "DT_INT32",
111     "DT_UINT8",
112     "DT_INT16",
113     "DT_INT8",
114     "DT_STRING",
115     "DT_COMPLEX64",
116     "DT_INT64",
117     "DT_BOOL",
118     "DT_QINT8",
119     "DT_QUINT8",
120     "DT_QINT32",
121     "DT_BFLOAT16",
122     "DT_QINT16",
123     "DT_QUINT16",
124     "DT_UINT16",
125     "DT_COMPLEX128",
126     "DT_HALF",
127     "DT_RESOURCE",
128     "DT_VARIANT",
129     nullptr
130   };
131   return names;
132 }
133 
EnumNameDataType(DataType e)134 inline const char *EnumNameDataType(DataType e) {
135   if (e < DataType_DT_INVALID || e > DataType_DT_VARIANT) return "";
136   const size_t index = static_cast<int>(e);
137   return EnumNamesDataType()[index];
138 }
139 
NetSourceTypeTable()140 inline const flatbuffers::TypeTable *NetSourceTypeTable() {
141   static const flatbuffers::TypeCode type_codes[] = {
142     { flatbuffers::ET_CHAR, 0, 0 },
143     { flatbuffers::ET_CHAR, 0, 0 },
144     { flatbuffers::ET_CHAR, 0, 0 },
145     { flatbuffers::ET_CHAR, 0, 0 },
146     { flatbuffers::ET_CHAR, 0, 0 }
147   };
148   static const flatbuffers::TypeFunction type_refs[] = {
149     NetSourceTypeTable
150   };
151   static const char * const names[] = {
152     "CAFFE",
153     "TENSORFLOW",
154     "TFLITE",
155     "ONNX",
156     "TORCH"
157   };
158   static const flatbuffers::TypeTable tt = {
159     flatbuffers::ST_ENUM, 5, type_codes, type_refs, nullptr, names
160   };
161   return &tt;
162 }
163 
DataTypeTypeTable()164 inline const flatbuffers::TypeTable *DataTypeTypeTable() {
165   static const flatbuffers::TypeCode type_codes[] = {
166     { flatbuffers::ET_INT, 0, 0 },
167     { flatbuffers::ET_INT, 0, 0 },
168     { flatbuffers::ET_INT, 0, 0 },
169     { flatbuffers::ET_INT, 0, 0 },
170     { flatbuffers::ET_INT, 0, 0 },
171     { flatbuffers::ET_INT, 0, 0 },
172     { flatbuffers::ET_INT, 0, 0 },
173     { flatbuffers::ET_INT, 0, 0 },
174     { flatbuffers::ET_INT, 0, 0 },
175     { flatbuffers::ET_INT, 0, 0 },
176     { flatbuffers::ET_INT, 0, 0 },
177     { flatbuffers::ET_INT, 0, 0 },
178     { flatbuffers::ET_INT, 0, 0 },
179     { flatbuffers::ET_INT, 0, 0 },
180     { flatbuffers::ET_INT, 0, 0 },
181     { flatbuffers::ET_INT, 0, 0 },
182     { flatbuffers::ET_INT, 0, 0 },
183     { flatbuffers::ET_INT, 0, 0 },
184     { flatbuffers::ET_INT, 0, 0 },
185     { flatbuffers::ET_INT, 0, 0 },
186     { flatbuffers::ET_INT, 0, 0 },
187     { flatbuffers::ET_INT, 0, 0 }
188   };
189   static const flatbuffers::TypeFunction type_refs[] = {
190     DataTypeTypeTable
191   };
192   static const char * const names[] = {
193     "DT_INVALID",
194     "DT_FLOAT",
195     "DT_DOUBLE",
196     "DT_INT32",
197     "DT_UINT8",
198     "DT_INT16",
199     "DT_INT8",
200     "DT_STRING",
201     "DT_COMPLEX64",
202     "DT_INT64",
203     "DT_BOOL",
204     "DT_QINT8",
205     "DT_QUINT8",
206     "DT_QINT32",
207     "DT_BFLOAT16",
208     "DT_QINT16",
209     "DT_QUINT16",
210     "DT_UINT16",
211     "DT_COMPLEX128",
212     "DT_HALF",
213     "DT_RESOURCE",
214     "DT_VARIANT"
215   };
216   static const flatbuffers::TypeTable tt = {
217     flatbuffers::ST_ENUM, 22, type_codes, type_refs, nullptr, names
218   };
219   return &tt;
220 }
221 
222 }  // namespace MNN
223 
224 #endif  // FLATBUFFERS_GENERATED_TYPE_MNN_H_
225