• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 
4 #ifndef FLATBUFFERS_GENERATED_MODEL_MINDSPORE_SCHEMA_H_
5 #define FLATBUFFERS_GENERATED_MODEL_MINDSPORE_SCHEMA_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 #include "ops_types_generated.h"
10 #include "ops_generated.h"
11 
12 namespace mindspore {
13 namespace schema {
14 
15 struct QuantParam;
16 struct QuantParamBuilder;
17 struct QuantParamT;
18 
19 struct Tensor;
20 struct TensorBuilder;
21 struct TensorT;
22 
23 struct Primitive;
24 struct PrimitiveBuilder;
25 struct PrimitiveT;
26 
27 struct CNode;
28 struct CNodeBuilder;
29 struct CNodeT;
30 
31 struct SubGraph;
32 struct SubGraphBuilder;
33 struct SubGraphT;
34 
35 struct MetaGraph;
36 struct MetaGraphBuilder;
37 struct MetaGraphT;
38 
39 inline const flatbuffers::TypeTable *QuantParamTypeTable();
40 
41 inline const flatbuffers::TypeTable *TensorTypeTable();
42 
43 inline const flatbuffers::TypeTable *PrimitiveTypeTable();
44 
45 inline const flatbuffers::TypeTable *CNodeTypeTable();
46 
47 inline const flatbuffers::TypeTable *SubGraphTypeTable();
48 
49 inline const flatbuffers::TypeTable *MetaGraphTypeTable();
50 
51 enum WeightQunatCompressType : int32_t {
52   WeightQunatCompressType_NONE = 0,
53   WeightQunatCompressType_INDEXING = 1,
54   WeightQunatCompressType_SPARSE = 2,
55   WeightQunatCompressType_FSE = 3,
56   WeightQunatCompressType_MIN = WeightQunatCompressType_NONE,
57   WeightQunatCompressType_MAX = WeightQunatCompressType_FSE
58 };
59 
EnumValuesWeightQunatCompressType()60 inline const WeightQunatCompressType (&EnumValuesWeightQunatCompressType())[4] {
61   static const WeightQunatCompressType values[] = {
62     WeightQunatCompressType_NONE,
63     WeightQunatCompressType_INDEXING,
64     WeightQunatCompressType_SPARSE,
65     WeightQunatCompressType_FSE
66   };
67   return values;
68 }
69 
EnumNamesWeightQunatCompressType()70 inline const char * const *EnumNamesWeightQunatCompressType() {
71   static const char * const names[5] = {
72     "NONE",
73     "INDEXING",
74     "SPARSE",
75     "FSE",
76     nullptr
77   };
78   return names;
79 }
80 
EnumNameWeightQunatCompressType(WeightQunatCompressType e)81 inline const char *EnumNameWeightQunatCompressType(WeightQunatCompressType e) {
82   if (flatbuffers::IsOutRange(e, WeightQunatCompressType_NONE, WeightQunatCompressType_FSE)) return "";
83   const size_t index = static_cast<size_t>(e);
84   return EnumNamesWeightQunatCompressType()[index];
85 }
86 
87 enum QuantType : int32_t {
88   QuantType_QUANT_NONE = 0,
89   QuantType_AwareTraining = 1,
90   QuantType_WeightQuant = 2,
91   QuantType_PostTraining = 3,
92   QuantType_QUANT_WEIGHT = 4,
93   QuantType_QUANT_ALL = 5,
94   QuantType_MIN = QuantType_QUANT_NONE,
95   QuantType_MAX = QuantType_QUANT_ALL
96 };
97 
EnumValuesQuantType()98 inline const QuantType (&EnumValuesQuantType())[6] {
99   static const QuantType values[] = {
100     QuantType_QUANT_NONE,
101     QuantType_AwareTraining,
102     QuantType_WeightQuant,
103     QuantType_PostTraining,
104     QuantType_QUANT_WEIGHT,
105     QuantType_QUANT_ALL
106   };
107   return values;
108 }
109 
EnumNamesQuantType()110 inline const char * const *EnumNamesQuantType() {
111   static const char * const names[7] = {
112     "QUANT_NONE",
113     "AwareTraining",
114     "WeightQuant",
115     "PostTraining",
116     "QUANT_WEIGHT",
117     "QUANT_ALL",
118     nullptr
119   };
120   return names;
121 }
122 
EnumNameQuantType(QuantType e)123 inline const char *EnumNameQuantType(QuantType e) {
124   if (flatbuffers::IsOutRange(e, QuantType_QUANT_NONE, QuantType_QUANT_ALL)) return "";
125   const size_t index = static_cast<size_t>(e);
126   return EnumNamesQuantType()[index];
127 }
128 
129 struct QuantParamT : public flatbuffers::NativeTable {
130   typedef QuantParam TableType;
131   double scale = 0.0;
132   int32_t zeroPoint = 0;
133   double min = 0.0;
134   double max = 0.0;
135   bool narrowRange = true;
136   int32_t numBits = 8;
137   bool inited = false;
138   float varCorr = 1.0f;
139   float meanCorr = 0.0f;
140   int32_t dstDtype = 32;
141   int32_t roundType = 1;
142   int32_t multiplier = 1;
143 };
144 
145 struct QuantParam FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
146   typedef QuantParamT NativeTableType;
147   typedef QuantParamBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS148   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
149     return QuantParamTypeTable();
150   }
151   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
152     VT_SCALE = 4,
153     VT_ZEROPOINT = 6,
154     VT_MIN = 8,
155     VT_MAX = 10,
156     VT_NARROWRANGE = 12,
157     VT_NUMBITS = 14,
158     VT_INITED = 16,
159     VT_VARCORR = 18,
160     VT_MEANCORR = 20,
161     VT_DSTDTYPE = 22,
162     VT_ROUNDTYPE = 24,
163     VT_MULTIPLIER = 26
164   };
scaleFLATBUFFERS_FINAL_CLASS165   double scale() const {
166     return GetField<double>(VT_SCALE, 0.0);
167   }
mutate_scaleFLATBUFFERS_FINAL_CLASS168   bool mutate_scale(double _scale) {
169     return SetField<double>(VT_SCALE, _scale, 0.0);
170   }
zeroPointFLATBUFFERS_FINAL_CLASS171   int32_t zeroPoint() const {
172     return GetField<int32_t>(VT_ZEROPOINT, 0);
173   }
mutate_zeroPointFLATBUFFERS_FINAL_CLASS174   bool mutate_zeroPoint(int32_t _zeroPoint) {
175     return SetField<int32_t>(VT_ZEROPOINT, _zeroPoint, 0);
176   }
minFLATBUFFERS_FINAL_CLASS177   double min() const {
178     return GetField<double>(VT_MIN, 0.0);
179   }
mutate_minFLATBUFFERS_FINAL_CLASS180   bool mutate_min(double _min) {
181     return SetField<double>(VT_MIN, _min, 0.0);
182   }
maxFLATBUFFERS_FINAL_CLASS183   double max() const {
184     return GetField<double>(VT_MAX, 0.0);
185   }
mutate_maxFLATBUFFERS_FINAL_CLASS186   bool mutate_max(double _max) {
187     return SetField<double>(VT_MAX, _max, 0.0);
188   }
narrowRangeFLATBUFFERS_FINAL_CLASS189   bool narrowRange() const {
190     return GetField<uint8_t>(VT_NARROWRANGE, 1) != 0;
191   }
mutate_narrowRangeFLATBUFFERS_FINAL_CLASS192   bool mutate_narrowRange(bool _narrowRange) {
193     return SetField<uint8_t>(VT_NARROWRANGE, static_cast<uint8_t>(_narrowRange), 1);
194   }
numBitsFLATBUFFERS_FINAL_CLASS195   int32_t numBits() const {
196     return GetField<int32_t>(VT_NUMBITS, 8);
197   }
mutate_numBitsFLATBUFFERS_FINAL_CLASS198   bool mutate_numBits(int32_t _numBits) {
199     return SetField<int32_t>(VT_NUMBITS, _numBits, 8);
200   }
initedFLATBUFFERS_FINAL_CLASS201   bool inited() const {
202     return GetField<uint8_t>(VT_INITED, 0) != 0;
203   }
mutate_initedFLATBUFFERS_FINAL_CLASS204   bool mutate_inited(bool _inited) {
205     return SetField<uint8_t>(VT_INITED, static_cast<uint8_t>(_inited), 0);
206   }
varCorrFLATBUFFERS_FINAL_CLASS207   float varCorr() const {
208     return GetField<float>(VT_VARCORR, 1.0f);
209   }
mutate_varCorrFLATBUFFERS_FINAL_CLASS210   bool mutate_varCorr(float _varCorr) {
211     return SetField<float>(VT_VARCORR, _varCorr, 1.0f);
212   }
meanCorrFLATBUFFERS_FINAL_CLASS213   float meanCorr() const {
214     return GetField<float>(VT_MEANCORR, 0.0f);
215   }
mutate_meanCorrFLATBUFFERS_FINAL_CLASS216   bool mutate_meanCorr(float _meanCorr) {
217     return SetField<float>(VT_MEANCORR, _meanCorr, 0.0f);
218   }
dstDtypeFLATBUFFERS_FINAL_CLASS219   int32_t dstDtype() const {
220     return GetField<int32_t>(VT_DSTDTYPE, 32);
221   }
mutate_dstDtypeFLATBUFFERS_FINAL_CLASS222   bool mutate_dstDtype(int32_t _dstDtype) {
223     return SetField<int32_t>(VT_DSTDTYPE, _dstDtype, 32);
224   }
roundTypeFLATBUFFERS_FINAL_CLASS225   int32_t roundType() const {
226     return GetField<int32_t>(VT_ROUNDTYPE, 1);
227   }
mutate_roundTypeFLATBUFFERS_FINAL_CLASS228   bool mutate_roundType(int32_t _roundType) {
229     return SetField<int32_t>(VT_ROUNDTYPE, _roundType, 1);
230   }
multiplierFLATBUFFERS_FINAL_CLASS231   int32_t multiplier() const {
232     return GetField<int32_t>(VT_MULTIPLIER, 1);
233   }
mutate_multiplierFLATBUFFERS_FINAL_CLASS234   bool mutate_multiplier(int32_t _multiplier) {
235     return SetField<int32_t>(VT_MULTIPLIER, _multiplier, 1);
236   }
VerifyFLATBUFFERS_FINAL_CLASS237   bool Verify(flatbuffers::Verifier &verifier) const {
238     return VerifyTableStart(verifier) &&
239            VerifyField<double>(verifier, VT_SCALE) &&
240            VerifyField<int32_t>(verifier, VT_ZEROPOINT) &&
241            VerifyField<double>(verifier, VT_MIN) &&
242            VerifyField<double>(verifier, VT_MAX) &&
243            VerifyField<uint8_t>(verifier, VT_NARROWRANGE) &&
244            VerifyField<int32_t>(verifier, VT_NUMBITS) &&
245            VerifyField<uint8_t>(verifier, VT_INITED) &&
246            VerifyField<float>(verifier, VT_VARCORR) &&
247            VerifyField<float>(verifier, VT_MEANCORR) &&
248            VerifyField<int32_t>(verifier, VT_DSTDTYPE) &&
249            VerifyField<int32_t>(verifier, VT_ROUNDTYPE) &&
250            VerifyField<int32_t>(verifier, VT_MULTIPLIER) &&
251            verifier.EndTable();
252   }
253   QuantParamT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
254   void UnPackTo(QuantParamT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
255   static flatbuffers::Offset<QuantParam> Pack(flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
256 };
257 
258 struct QuantParamBuilder {
259   typedef QuantParam Table;
260   flatbuffers::FlatBufferBuilder &fbb_;
261   flatbuffers::uoffset_t start_;
add_scaleQuantParamBuilder262   void add_scale(double scale) {
263     fbb_.AddElement<double>(QuantParam::VT_SCALE, scale, 0.0);
264   }
add_zeroPointQuantParamBuilder265   void add_zeroPoint(int32_t zeroPoint) {
266     fbb_.AddElement<int32_t>(QuantParam::VT_ZEROPOINT, zeroPoint, 0);
267   }
add_minQuantParamBuilder268   void add_min(double min) {
269     fbb_.AddElement<double>(QuantParam::VT_MIN, min, 0.0);
270   }
add_maxQuantParamBuilder271   void add_max(double max) {
272     fbb_.AddElement<double>(QuantParam::VT_MAX, max, 0.0);
273   }
add_narrowRangeQuantParamBuilder274   void add_narrowRange(bool narrowRange) {
275     fbb_.AddElement<uint8_t>(QuantParam::VT_NARROWRANGE, static_cast<uint8_t>(narrowRange), 1);
276   }
add_numBitsQuantParamBuilder277   void add_numBits(int32_t numBits) {
278     fbb_.AddElement<int32_t>(QuantParam::VT_NUMBITS, numBits, 8);
279   }
add_initedQuantParamBuilder280   void add_inited(bool inited) {
281     fbb_.AddElement<uint8_t>(QuantParam::VT_INITED, static_cast<uint8_t>(inited), 0);
282   }
add_varCorrQuantParamBuilder283   void add_varCorr(float varCorr) {
284     fbb_.AddElement<float>(QuantParam::VT_VARCORR, varCorr, 1.0f);
285   }
add_meanCorrQuantParamBuilder286   void add_meanCorr(float meanCorr) {
287     fbb_.AddElement<float>(QuantParam::VT_MEANCORR, meanCorr, 0.0f);
288   }
add_dstDtypeQuantParamBuilder289   void add_dstDtype(int32_t dstDtype) {
290     fbb_.AddElement<int32_t>(QuantParam::VT_DSTDTYPE, dstDtype, 32);
291   }
add_roundTypeQuantParamBuilder292   void add_roundType(int32_t roundType) {
293     fbb_.AddElement<int32_t>(QuantParam::VT_ROUNDTYPE, roundType, 1);
294   }
add_multiplierQuantParamBuilder295   void add_multiplier(int32_t multiplier) {
296     fbb_.AddElement<int32_t>(QuantParam::VT_MULTIPLIER, multiplier, 1);
297   }
QuantParamBuilderQuantParamBuilder298   explicit QuantParamBuilder(flatbuffers::FlatBufferBuilder &_fbb)
299         : fbb_(_fbb) {
300     start_ = fbb_.StartTable();
301   }
FinishQuantParamBuilder302   flatbuffers::Offset<QuantParam> Finish() {
303     const auto end = fbb_.EndTable(start_);
304     auto o = flatbuffers::Offset<QuantParam>(end);
305     return o;
306   }
307 };
308 
309 inline flatbuffers::Offset<QuantParam> CreateQuantParam(
310     flatbuffers::FlatBufferBuilder &_fbb,
311     double scale = 0.0,
312     int32_t zeroPoint = 0,
313     double min = 0.0,
314     double max = 0.0,
315     bool narrowRange = true,
316     int32_t numBits = 8,
317     bool inited = false,
318     float varCorr = 1.0f,
319     float meanCorr = 0.0f,
320     int32_t dstDtype = 32,
321     int32_t roundType = 1,
322     int32_t multiplier = 1) {
323   QuantParamBuilder builder_(_fbb);
324   builder_.add_max(max);
325   builder_.add_min(min);
326   builder_.add_scale(scale);
327   builder_.add_multiplier(multiplier);
328   builder_.add_roundType(roundType);
329   builder_.add_dstDtype(dstDtype);
330   builder_.add_meanCorr(meanCorr);
331   builder_.add_varCorr(varCorr);
332   builder_.add_numBits(numBits);
333   builder_.add_zeroPoint(zeroPoint);
334   builder_.add_inited(inited);
335   builder_.add_narrowRange(narrowRange);
336   return builder_.Finish();
337 }
338 
339 flatbuffers::Offset<QuantParam> CreateQuantParam(flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
340 
341 struct TensorT : public flatbuffers::NativeTable {
342   typedef Tensor TableType;
343   int32_t nodeType = 0;
344   int32_t dataType = 0;
345   std::vector<int32_t> dims{};
346   mindspore::schema::Format format = mindspore::schema::Format_NCHW;
347   int32_t refCount = 0;
348   int32_t offset = 0;
349   std::vector<uint8_t> data{};
350   std::vector<std::unique_ptr<mindspore::schema::QuantParamT>> quantParams{};
351   std::vector<float> quantClusters{};
352   std::string name{};
353   bool enableHuffmanCode = false;
354   mindspore::schema::WeightQunatCompressType weightQunatCompressType = mindspore::schema::WeightQunatCompressType_NONE;
355 };
356 
357 struct Tensor FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
358   typedef TensorT NativeTableType;
359   typedef TensorBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS360   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
361     return TensorTypeTable();
362   }
363   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
364     VT_NODETYPE = 4,
365     VT_DATATYPE = 6,
366     VT_DIMS = 8,
367     VT_FORMAT = 10,
368     VT_REFCOUNT = 12,
369     VT_OFFSET = 14,
370     VT_DATA = 16,
371     VT_QUANTPARAMS = 18,
372     VT_QUANTCLUSTERS = 20,
373     VT_NAME = 22,
374     VT_ENABLEHUFFMANCODE = 24,
375     VT_WEIGHTQUNATCOMPRESSTYPE = 26
376   };
nodeTypeFLATBUFFERS_FINAL_CLASS377   int32_t nodeType() const {
378     return GetField<int32_t>(VT_NODETYPE, 0);
379   }
mutate_nodeTypeFLATBUFFERS_FINAL_CLASS380   bool mutate_nodeType(int32_t _nodeType) {
381     return SetField<int32_t>(VT_NODETYPE, _nodeType, 0);
382   }
dataTypeFLATBUFFERS_FINAL_CLASS383   int32_t dataType() const {
384     return GetField<int32_t>(VT_DATATYPE, 0);
385   }
mutate_dataTypeFLATBUFFERS_FINAL_CLASS386   bool mutate_dataType(int32_t _dataType) {
387     return SetField<int32_t>(VT_DATATYPE, _dataType, 0);
388   }
dimsFLATBUFFERS_FINAL_CLASS389   const flatbuffers::Vector<int32_t> *dims() const {
390     return GetPointer<const flatbuffers::Vector<int32_t> *>(VT_DIMS);
391   }
mutable_dimsFLATBUFFERS_FINAL_CLASS392   flatbuffers::Vector<int32_t> *mutable_dims() {
393     return GetPointer<flatbuffers::Vector<int32_t> *>(VT_DIMS);
394   }
formatFLATBUFFERS_FINAL_CLASS395   mindspore::schema::Format format() const {
396     return static_cast<mindspore::schema::Format>(GetField<int32_t>(VT_FORMAT, 0));
397   }
mutate_formatFLATBUFFERS_FINAL_CLASS398   bool mutate_format(mindspore::schema::Format _format) {
399     return SetField<int32_t>(VT_FORMAT, static_cast<int32_t>(_format), 0);
400   }
refCountFLATBUFFERS_FINAL_CLASS401   int32_t refCount() const {
402     return GetField<int32_t>(VT_REFCOUNT, 0);
403   }
mutate_refCountFLATBUFFERS_FINAL_CLASS404   bool mutate_refCount(int32_t _refCount) {
405     return SetField<int32_t>(VT_REFCOUNT, _refCount, 0);
406   }
offsetFLATBUFFERS_FINAL_CLASS407   int32_t offset() const {
408     return GetField<int32_t>(VT_OFFSET, 0);
409   }
mutate_offsetFLATBUFFERS_FINAL_CLASS410   bool mutate_offset(int32_t _offset) {
411     return SetField<int32_t>(VT_OFFSET, _offset, 0);
412   }
dataFLATBUFFERS_FINAL_CLASS413   const flatbuffers::Vector<uint8_t> *data() const {
414     return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_DATA);
415   }
mutable_dataFLATBUFFERS_FINAL_CLASS416   flatbuffers::Vector<uint8_t> *mutable_data() {
417     return GetPointer<flatbuffers::Vector<uint8_t> *>(VT_DATA);
418   }
quantParamsFLATBUFFERS_FINAL_CLASS419   const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>> *quantParams() const {
420     return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>> *>(VT_QUANTPARAMS);
421   }
mutable_quantParamsFLATBUFFERS_FINAL_CLASS422   flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>> *mutable_quantParams() {
423     return GetPointer<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>> *>(VT_QUANTPARAMS);
424   }
quantClustersFLATBUFFERS_FINAL_CLASS425   const flatbuffers::Vector<float> *quantClusters() const {
426     return GetPointer<const flatbuffers::Vector<float> *>(VT_QUANTCLUSTERS);
427   }
mutable_quantClustersFLATBUFFERS_FINAL_CLASS428   flatbuffers::Vector<float> *mutable_quantClusters() {
429     return GetPointer<flatbuffers::Vector<float> *>(VT_QUANTCLUSTERS);
430   }
nameFLATBUFFERS_FINAL_CLASS431   const flatbuffers::String *name() const {
432     return GetPointer<const flatbuffers::String *>(VT_NAME);
433   }
mutable_nameFLATBUFFERS_FINAL_CLASS434   flatbuffers::String *mutable_name() {
435     return GetPointer<flatbuffers::String *>(VT_NAME);
436   }
enableHuffmanCodeFLATBUFFERS_FINAL_CLASS437   bool enableHuffmanCode() const {
438     return GetField<uint8_t>(VT_ENABLEHUFFMANCODE, 0) != 0;
439   }
mutate_enableHuffmanCodeFLATBUFFERS_FINAL_CLASS440   bool mutate_enableHuffmanCode(bool _enableHuffmanCode) {
441     return SetField<uint8_t>(VT_ENABLEHUFFMANCODE, static_cast<uint8_t>(_enableHuffmanCode), 0);
442   }
weightQunatCompressTypeFLATBUFFERS_FINAL_CLASS443   mindspore::schema::WeightQunatCompressType weightQunatCompressType() const {
444     return static_cast<mindspore::schema::WeightQunatCompressType>(GetField<int32_t>(VT_WEIGHTQUNATCOMPRESSTYPE, 0));
445   }
mutate_weightQunatCompressTypeFLATBUFFERS_FINAL_CLASS446   bool mutate_weightQunatCompressType(mindspore::schema::WeightQunatCompressType _weightQunatCompressType) {
447     return SetField<int32_t>(VT_WEIGHTQUNATCOMPRESSTYPE, static_cast<int32_t>(_weightQunatCompressType), 0);
448   }
VerifyFLATBUFFERS_FINAL_CLASS449   bool Verify(flatbuffers::Verifier &verifier) const {
450     return VerifyTableStart(verifier) &&
451            VerifyField<int32_t>(verifier, VT_NODETYPE) &&
452            VerifyField<int32_t>(verifier, VT_DATATYPE) &&
453            VerifyOffset(verifier, VT_DIMS) &&
454            verifier.VerifyVector(dims()) &&
455            VerifyField<int32_t>(verifier, VT_FORMAT) &&
456            VerifyField<int32_t>(verifier, VT_REFCOUNT) &&
457            VerifyField<int32_t>(verifier, VT_OFFSET) &&
458            VerifyOffset(verifier, VT_DATA) &&
459            verifier.VerifyVector(data()) &&
460            VerifyOffset(verifier, VT_QUANTPARAMS) &&
461            verifier.VerifyVector(quantParams()) &&
462            verifier.VerifyVectorOfTables(quantParams()) &&
463            VerifyOffset(verifier, VT_QUANTCLUSTERS) &&
464            verifier.VerifyVector(quantClusters()) &&
465            VerifyOffset(verifier, VT_NAME) &&
466            verifier.VerifyString(name()) &&
467            VerifyField<uint8_t>(verifier, VT_ENABLEHUFFMANCODE) &&
468            VerifyField<int32_t>(verifier, VT_WEIGHTQUNATCOMPRESSTYPE) &&
469            verifier.EndTable();
470   }
471   TensorT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
472   void UnPackTo(TensorT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
473   static flatbuffers::Offset<Tensor> Pack(flatbuffers::FlatBufferBuilder &_fbb, const TensorT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
474 };
475 
476 struct TensorBuilder {
477   typedef Tensor Table;
478   flatbuffers::FlatBufferBuilder &fbb_;
479   flatbuffers::uoffset_t start_;
add_nodeTypeTensorBuilder480   void add_nodeType(int32_t nodeType) {
481     fbb_.AddElement<int32_t>(Tensor::VT_NODETYPE, nodeType, 0);
482   }
add_dataTypeTensorBuilder483   void add_dataType(int32_t dataType) {
484     fbb_.AddElement<int32_t>(Tensor::VT_DATATYPE, dataType, 0);
485   }
add_dimsTensorBuilder486   void add_dims(flatbuffers::Offset<flatbuffers::Vector<int32_t>> dims) {
487     fbb_.AddOffset(Tensor::VT_DIMS, dims);
488   }
add_formatTensorBuilder489   void add_format(mindspore::schema::Format format) {
490     fbb_.AddElement<int32_t>(Tensor::VT_FORMAT, static_cast<int32_t>(format), 0);
491   }
add_refCountTensorBuilder492   void add_refCount(int32_t refCount) {
493     fbb_.AddElement<int32_t>(Tensor::VT_REFCOUNT, refCount, 0);
494   }
add_offsetTensorBuilder495   void add_offset(int32_t offset) {
496     fbb_.AddElement<int32_t>(Tensor::VT_OFFSET, offset, 0);
497   }
add_dataTensorBuilder498   void add_data(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> data) {
499     fbb_.AddOffset(Tensor::VT_DATA, data);
500   }
add_quantParamsTensorBuilder501   void add_quantParams(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>>> quantParams) {
502     fbb_.AddOffset(Tensor::VT_QUANTPARAMS, quantParams);
503   }
add_quantClustersTensorBuilder504   void add_quantClusters(flatbuffers::Offset<flatbuffers::Vector<float>> quantClusters) {
505     fbb_.AddOffset(Tensor::VT_QUANTCLUSTERS, quantClusters);
506   }
add_nameTensorBuilder507   void add_name(flatbuffers::Offset<flatbuffers::String> name) {
508     fbb_.AddOffset(Tensor::VT_NAME, name);
509   }
add_enableHuffmanCodeTensorBuilder510   void add_enableHuffmanCode(bool enableHuffmanCode) {
511     fbb_.AddElement<uint8_t>(Tensor::VT_ENABLEHUFFMANCODE, static_cast<uint8_t>(enableHuffmanCode), 0);
512   }
add_weightQunatCompressTypeTensorBuilder513   void add_weightQunatCompressType(mindspore::schema::WeightQunatCompressType weightQunatCompressType) {
514     fbb_.AddElement<int32_t>(Tensor::VT_WEIGHTQUNATCOMPRESSTYPE, static_cast<int32_t>(weightQunatCompressType), 0);
515   }
TensorBuilderTensorBuilder516   explicit TensorBuilder(flatbuffers::FlatBufferBuilder &_fbb)
517         : fbb_(_fbb) {
518     start_ = fbb_.StartTable();
519   }
FinishTensorBuilder520   flatbuffers::Offset<Tensor> Finish() {
521     const auto end = fbb_.EndTable(start_);
522     auto o = flatbuffers::Offset<Tensor>(end);
523     return o;
524   }
525 };
526 
527 inline flatbuffers::Offset<Tensor> CreateTensor(
528     flatbuffers::FlatBufferBuilder &_fbb,
529     int32_t nodeType = 0,
530     int32_t dataType = 0,
531     flatbuffers::Offset<flatbuffers::Vector<int32_t>> dims = 0,
532     mindspore::schema::Format format = mindspore::schema::Format_NCHW,
533     int32_t refCount = 0,
534     int32_t offset = 0,
535     flatbuffers::Offset<flatbuffers::Vector<uint8_t>> data = 0,
536     flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::QuantParam>>> quantParams = 0,
537     flatbuffers::Offset<flatbuffers::Vector<float>> quantClusters = 0,
538     flatbuffers::Offset<flatbuffers::String> name = 0,
539     bool enableHuffmanCode = false,
540     mindspore::schema::WeightQunatCompressType weightQunatCompressType = mindspore::schema::WeightQunatCompressType_NONE) {
541   TensorBuilder builder_(_fbb);
542   builder_.add_weightQunatCompressType(weightQunatCompressType);
543   builder_.add_name(name);
544   builder_.add_quantClusters(quantClusters);
545   builder_.add_quantParams(quantParams);
546   builder_.add_data(data);
547   builder_.add_offset(offset);
548   builder_.add_refCount(refCount);
549   builder_.add_format(format);
550   builder_.add_dims(dims);
551   builder_.add_dataType(dataType);
552   builder_.add_nodeType(nodeType);
553   builder_.add_enableHuffmanCode(enableHuffmanCode);
554   return builder_.Finish();
555 }
556 
557 inline flatbuffers::Offset<Tensor> CreateTensorDirect(
558     flatbuffers::FlatBufferBuilder &_fbb,
559     int32_t nodeType = 0,
560     int32_t dataType = 0,
561     const std::vector<int32_t> *dims = nullptr,
562     mindspore::schema::Format format = mindspore::schema::Format_NCHW,
563     int32_t refCount = 0,
564     int32_t offset = 0,
565     const std::vector<uint8_t> *data = nullptr,
566     const std::vector<flatbuffers::Offset<mindspore::schema::QuantParam>> *quantParams = nullptr,
567     const std::vector<float> *quantClusters = nullptr,
568     const char *name = nullptr,
569     bool enableHuffmanCode = false,
570     mindspore::schema::WeightQunatCompressType weightQunatCompressType = mindspore::schema::WeightQunatCompressType_NONE) {
571   auto dims__ = dims ? _fbb.CreateVector<int32_t>(*dims) : 0;
572   auto data__ = data ? _fbb.CreateVector<uint8_t>(*data) : 0;
573   auto quantParams__ = quantParams ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::QuantParam>>(*quantParams) : 0;
574   auto quantClusters__ = quantClusters ? _fbb.CreateVector<float>(*quantClusters) : 0;
575   auto name__ = name ? _fbb.CreateString(name) : 0;
576   return mindspore::schema::CreateTensor(
577       _fbb,
578       nodeType,
579       dataType,
580       dims__,
581       format,
582       refCount,
583       offset,
584       data__,
585       quantParams__,
586       quantClusters__,
587       name__,
588       enableHuffmanCode,
589       weightQunatCompressType);
590 }
591 
592 flatbuffers::Offset<Tensor> CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
593 
594 struct PrimitiveT : public flatbuffers::NativeTable {
595   typedef Primitive TableType;
596   mindspore::schema::PrimitiveTypeUnion value{};
597 };
598 
599 struct Primitive FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
600   typedef PrimitiveT NativeTableType;
601   typedef PrimitiveBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS602   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
603     return PrimitiveTypeTable();
604   }
605   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
606     VT_VALUE_TYPE = 4,
607     VT_VALUE = 6
608   };
value_typeFLATBUFFERS_FINAL_CLASS609   mindspore::schema::PrimitiveType value_type() const {
610     return static_cast<mindspore::schema::PrimitiveType>(GetField<uint8_t>(VT_VALUE_TYPE, 0));
611   }
valueFLATBUFFERS_FINAL_CLASS612   const void *value() const {
613     return GetPointer<const void *>(VT_VALUE);
614   }
615   template<typename T> const T *value_as() const;
value_as_AbsFLATBUFFERS_FINAL_CLASS616   const mindspore::schema::Abs *value_as_Abs() const {
617     return value_type() == mindspore::schema::PrimitiveType_Abs ? static_cast<const mindspore::schema::Abs *>(value()) : nullptr;
618   }
value_as_ActivationFLATBUFFERS_FINAL_CLASS619   const mindspore::schema::Activation *value_as_Activation() const {
620     return value_type() == mindspore::schema::PrimitiveType_Activation ? static_cast<const mindspore::schema::Activation *>(value()) : nullptr;
621   }
value_as_ActivationGradFLATBUFFERS_FINAL_CLASS622   const mindspore::schema::ActivationGrad *value_as_ActivationGrad() const {
623     return value_type() == mindspore::schema::PrimitiveType_ActivationGrad ? static_cast<const mindspore::schema::ActivationGrad *>(value()) : nullptr;
624   }
value_as_AdamFLATBUFFERS_FINAL_CLASS625   const mindspore::schema::Adam *value_as_Adam() const {
626     return value_type() == mindspore::schema::PrimitiveType_Adam ? static_cast<const mindspore::schema::Adam *>(value()) : nullptr;
627   }
value_as_AddFusionFLATBUFFERS_FINAL_CLASS628   const mindspore::schema::AddFusion *value_as_AddFusion() const {
629     return value_type() == mindspore::schema::PrimitiveType_AddFusion ? static_cast<const mindspore::schema::AddFusion *>(value()) : nullptr;
630   }
value_as_AdderFusionFLATBUFFERS_FINAL_CLASS631   const mindspore::schema::AdderFusion *value_as_AdderFusion() const {
632     return value_type() == mindspore::schema::PrimitiveType_AdderFusion ? static_cast<const mindspore::schema::AdderFusion *>(value()) : nullptr;
633   }
value_as_AddGradFLATBUFFERS_FINAL_CLASS634   const mindspore::schema::AddGrad *value_as_AddGrad() const {
635     return value_type() == mindspore::schema::PrimitiveType_AddGrad ? static_cast<const mindspore::schema::AddGrad *>(value()) : nullptr;
636   }
value_as_AddNFLATBUFFERS_FINAL_CLASS637   const mindspore::schema::AddN *value_as_AddN() const {
638     return value_type() == mindspore::schema::PrimitiveType_AddN ? static_cast<const mindspore::schema::AddN *>(value()) : nullptr;
639   }
value_as_AllFLATBUFFERS_FINAL_CLASS640   const mindspore::schema::All *value_as_All() const {
641     return value_type() == mindspore::schema::PrimitiveType_All ? static_cast<const mindspore::schema::All *>(value()) : nullptr;
642   }
value_as_ApplyMomentumFLATBUFFERS_FINAL_CLASS643   const mindspore::schema::ApplyMomentum *value_as_ApplyMomentum() const {
644     return value_type() == mindspore::schema::PrimitiveType_ApplyMomentum ? static_cast<const mindspore::schema::ApplyMomentum *>(value()) : nullptr;
645   }
value_as_ArgMaxFusionFLATBUFFERS_FINAL_CLASS646   const mindspore::schema::ArgMaxFusion *value_as_ArgMaxFusion() const {
647     return value_type() == mindspore::schema::PrimitiveType_ArgMaxFusion ? static_cast<const mindspore::schema::ArgMaxFusion *>(value()) : nullptr;
648   }
value_as_ArgMinFusionFLATBUFFERS_FINAL_CLASS649   const mindspore::schema::ArgMinFusion *value_as_ArgMinFusion() const {
650     return value_type() == mindspore::schema::PrimitiveType_ArgMinFusion ? static_cast<const mindspore::schema::ArgMinFusion *>(value()) : nullptr;
651   }
value_as_AssertFLATBUFFERS_FINAL_CLASS652   const mindspore::schema::Assert *value_as_Assert() const {
653     return value_type() == mindspore::schema::PrimitiveType_Assert ? static_cast<const mindspore::schema::Assert *>(value()) : nullptr;
654   }
value_as_AssignFLATBUFFERS_FINAL_CLASS655   const mindspore::schema::Assign *value_as_Assign() const {
656     return value_type() == mindspore::schema::PrimitiveType_Assign ? static_cast<const mindspore::schema::Assign *>(value()) : nullptr;
657   }
value_as_AssignAddFLATBUFFERS_FINAL_CLASS658   const mindspore::schema::AssignAdd *value_as_AssignAdd() const {
659     return value_type() == mindspore::schema::PrimitiveType_AssignAdd ? static_cast<const mindspore::schema::AssignAdd *>(value()) : nullptr;
660   }
value_as_AudioSpectrogramFLATBUFFERS_FINAL_CLASS661   const mindspore::schema::AudioSpectrogram *value_as_AudioSpectrogram() const {
662     return value_type() == mindspore::schema::PrimitiveType_AudioSpectrogram ? static_cast<const mindspore::schema::AudioSpectrogram *>(value()) : nullptr;
663   }
value_as_AvgPoolFusionFLATBUFFERS_FINAL_CLASS664   const mindspore::schema::AvgPoolFusion *value_as_AvgPoolFusion() const {
665     return value_type() == mindspore::schema::PrimitiveType_AvgPoolFusion ? static_cast<const mindspore::schema::AvgPoolFusion *>(value()) : nullptr;
666   }
value_as_AvgPoolGradFLATBUFFERS_FINAL_CLASS667   const mindspore::schema::AvgPoolGrad *value_as_AvgPoolGrad() const {
668     return value_type() == mindspore::schema::PrimitiveType_AvgPoolGrad ? static_cast<const mindspore::schema::AvgPoolGrad *>(value()) : nullptr;
669   }
value_as_BatchNormFLATBUFFERS_FINAL_CLASS670   const mindspore::schema::BatchNorm *value_as_BatchNorm() const {
671     return value_type() == mindspore::schema::PrimitiveType_BatchNorm ? static_cast<const mindspore::schema::BatchNorm *>(value()) : nullptr;
672   }
value_as_BatchNormGradFLATBUFFERS_FINAL_CLASS673   const mindspore::schema::BatchNormGrad *value_as_BatchNormGrad() const {
674     return value_type() == mindspore::schema::PrimitiveType_BatchNormGrad ? static_cast<const mindspore::schema::BatchNormGrad *>(value()) : nullptr;
675   }
value_as_BatchToSpaceFLATBUFFERS_FINAL_CLASS676   const mindspore::schema::BatchToSpace *value_as_BatchToSpace() const {
677     return value_type() == mindspore::schema::PrimitiveType_BatchToSpace ? static_cast<const mindspore::schema::BatchToSpace *>(value()) : nullptr;
678   }
value_as_BatchToSpaceNDFLATBUFFERS_FINAL_CLASS679   const mindspore::schema::BatchToSpaceND *value_as_BatchToSpaceND() const {
680     return value_type() == mindspore::schema::PrimitiveType_BatchToSpaceND ? static_cast<const mindspore::schema::BatchToSpaceND *>(value()) : nullptr;
681   }
value_as_BiasAddFLATBUFFERS_FINAL_CLASS682   const mindspore::schema::BiasAdd *value_as_BiasAdd() const {
683     return value_type() == mindspore::schema::PrimitiveType_BiasAdd ? static_cast<const mindspore::schema::BiasAdd *>(value()) : nullptr;
684   }
value_as_BinaryCrossEntropyFLATBUFFERS_FINAL_CLASS685   const mindspore::schema::BinaryCrossEntropy *value_as_BinaryCrossEntropy() const {
686     return value_type() == mindspore::schema::PrimitiveType_BinaryCrossEntropy ? static_cast<const mindspore::schema::BinaryCrossEntropy *>(value()) : nullptr;
687   }
value_as_BinaryCrossEntropyGradFLATBUFFERS_FINAL_CLASS688   const mindspore::schema::BinaryCrossEntropyGrad *value_as_BinaryCrossEntropyGrad() const {
689     return value_type() == mindspore::schema::PrimitiveType_BinaryCrossEntropyGrad ? static_cast<const mindspore::schema::BinaryCrossEntropyGrad *>(value()) : nullptr;
690   }
value_as_BiasAddGradFLATBUFFERS_FINAL_CLASS691   const mindspore::schema::BiasAddGrad *value_as_BiasAddGrad() const {
692     return value_type() == mindspore::schema::PrimitiveType_BiasAddGrad ? static_cast<const mindspore::schema::BiasAddGrad *>(value()) : nullptr;
693   }
value_as_BroadcastToFLATBUFFERS_FINAL_CLASS694   const mindspore::schema::BroadcastTo *value_as_BroadcastTo() const {
695     return value_type() == mindspore::schema::PrimitiveType_BroadcastTo ? static_cast<const mindspore::schema::BroadcastTo *>(value()) : nullptr;
696   }
value_as_CastFLATBUFFERS_FINAL_CLASS697   const mindspore::schema::Cast *value_as_Cast() const {
698     return value_type() == mindspore::schema::PrimitiveType_Cast ? static_cast<const mindspore::schema::Cast *>(value()) : nullptr;
699   }
value_as_CeilFLATBUFFERS_FINAL_CLASS700   const mindspore::schema::Ceil *value_as_Ceil() const {
701     return value_type() == mindspore::schema::PrimitiveType_Ceil ? static_cast<const mindspore::schema::Ceil *>(value()) : nullptr;
702   }
value_as_ClipFLATBUFFERS_FINAL_CLASS703   const mindspore::schema::Clip *value_as_Clip() const {
704     return value_type() == mindspore::schema::PrimitiveType_Clip ? static_cast<const mindspore::schema::Clip *>(value()) : nullptr;
705   }
value_as_ConcatFLATBUFFERS_FINAL_CLASS706   const mindspore::schema::Concat *value_as_Concat() const {
707     return value_type() == mindspore::schema::PrimitiveType_Concat ? static_cast<const mindspore::schema::Concat *>(value()) : nullptr;
708   }
value_as_AttentionFLATBUFFERS_FINAL_CLASS709   const mindspore::schema::Attention *value_as_Attention() const {
710     return value_type() == mindspore::schema::PrimitiveType_Attention ? static_cast<const mindspore::schema::Attention *>(value()) : nullptr;
711   }
value_as_Conv2DBackpropFilterFusionFLATBUFFERS_FINAL_CLASS712   const mindspore::schema::Conv2DBackpropFilterFusion *value_as_Conv2DBackpropFilterFusion() const {
713     return value_type() == mindspore::schema::PrimitiveType_Conv2DBackpropFilterFusion ? static_cast<const mindspore::schema::Conv2DBackpropFilterFusion *>(value()) : nullptr;
714   }
value_as_Conv2DBackpropInputFusionFLATBUFFERS_FINAL_CLASS715   const mindspore::schema::Conv2DBackpropInputFusion *value_as_Conv2DBackpropInputFusion() const {
716     return value_type() == mindspore::schema::PrimitiveType_Conv2DBackpropInputFusion ? static_cast<const mindspore::schema::Conv2DBackpropInputFusion *>(value()) : nullptr;
717   }
value_as_Conv2DFusionFLATBUFFERS_FINAL_CLASS718   const mindspore::schema::Conv2DFusion *value_as_Conv2DFusion() const {
719     return value_type() == mindspore::schema::PrimitiveType_Conv2DFusion ? static_cast<const mindspore::schema::Conv2DFusion *>(value()) : nullptr;
720   }
value_as_Conv2dTransposeFusionFLATBUFFERS_FINAL_CLASS721   const mindspore::schema::Conv2dTransposeFusion *value_as_Conv2dTransposeFusion() const {
722     return value_type() == mindspore::schema::PrimitiveType_Conv2dTransposeFusion ? static_cast<const mindspore::schema::Conv2dTransposeFusion *>(value()) : nullptr;
723   }
value_as_CosFLATBUFFERS_FINAL_CLASS724   const mindspore::schema::Cos *value_as_Cos() const {
725     return value_type() == mindspore::schema::PrimitiveType_Cos ? static_cast<const mindspore::schema::Cos *>(value()) : nullptr;
726   }
value_as_ConstantOfShapeFLATBUFFERS_FINAL_CLASS727   const mindspore::schema::ConstantOfShape *value_as_ConstantOfShape() const {
728     return value_type() == mindspore::schema::PrimitiveType_ConstantOfShape ? static_cast<const mindspore::schema::ConstantOfShape *>(value()) : nullptr;
729   }
value_as_CropFLATBUFFERS_FINAL_CLASS730   const mindspore::schema::Crop *value_as_Crop() const {
731     return value_type() == mindspore::schema::PrimitiveType_Crop ? static_cast<const mindspore::schema::Crop *>(value()) : nullptr;
732   }
value_as_CustomExtractFeaturesFLATBUFFERS_FINAL_CLASS733   const mindspore::schema::CustomExtractFeatures *value_as_CustomExtractFeatures() const {
734     return value_type() == mindspore::schema::PrimitiveType_CustomExtractFeatures ? static_cast<const mindspore::schema::CustomExtractFeatures *>(value()) : nullptr;
735   }
value_as_CustomNormalizeFLATBUFFERS_FINAL_CLASS736   const mindspore::schema::CustomNormalize *value_as_CustomNormalize() const {
737     return value_type() == mindspore::schema::PrimitiveType_CustomNormalize ? static_cast<const mindspore::schema::CustomNormalize *>(value()) : nullptr;
738   }
value_as_CustomPredictFLATBUFFERS_FINAL_CLASS739   const mindspore::schema::CustomPredict *value_as_CustomPredict() const {
740     return value_type() == mindspore::schema::PrimitiveType_CustomPredict ? static_cast<const mindspore::schema::CustomPredict *>(value()) : nullptr;
741   }
value_as_DeConv2DGradFilterFLATBUFFERS_FINAL_CLASS742   const mindspore::schema::DeConv2DGradFilter *value_as_DeConv2DGradFilter() const {
743     return value_type() == mindspore::schema::PrimitiveType_DeConv2DGradFilter ? static_cast<const mindspore::schema::DeConv2DGradFilter *>(value()) : nullptr;
744   }
value_as_DependFLATBUFFERS_FINAL_CLASS745   const mindspore::schema::Depend *value_as_Depend() const {
746     return value_type() == mindspore::schema::PrimitiveType_Depend ? static_cast<const mindspore::schema::Depend *>(value()) : nullptr;
747   }
value_as_DepthToSpaceFLATBUFFERS_FINAL_CLASS748   const mindspore::schema::DepthToSpace *value_as_DepthToSpace() const {
749     return value_type() == mindspore::schema::PrimitiveType_DepthToSpace ? static_cast<const mindspore::schema::DepthToSpace *>(value()) : nullptr;
750   }
value_as_DetectionPostProcessFLATBUFFERS_FINAL_CLASS751   const mindspore::schema::DetectionPostProcess *value_as_DetectionPostProcess() const {
752     return value_type() == mindspore::schema::PrimitiveType_DetectionPostProcess ? static_cast<const mindspore::schema::DetectionPostProcess *>(value()) : nullptr;
753   }
value_as_DivFusionFLATBUFFERS_FINAL_CLASS754   const mindspore::schema::DivFusion *value_as_DivFusion() const {
755     return value_type() == mindspore::schema::PrimitiveType_DivFusion ? static_cast<const mindspore::schema::DivFusion *>(value()) : nullptr;
756   }
value_as_DivGradFLATBUFFERS_FINAL_CLASS757   const mindspore::schema::DivGrad *value_as_DivGrad() const {
758     return value_type() == mindspore::schema::PrimitiveType_DivGrad ? static_cast<const mindspore::schema::DivGrad *>(value()) : nullptr;
759   }
value_as_DropoutFLATBUFFERS_FINAL_CLASS760   const mindspore::schema::Dropout *value_as_Dropout() const {
761     return value_type() == mindspore::schema::PrimitiveType_Dropout ? static_cast<const mindspore::schema::Dropout *>(value()) : nullptr;
762   }
value_as_DropoutGradFLATBUFFERS_FINAL_CLASS763   const mindspore::schema::DropoutGrad *value_as_DropoutGrad() const {
764     return value_type() == mindspore::schema::PrimitiveType_DropoutGrad ? static_cast<const mindspore::schema::DropoutGrad *>(value()) : nullptr;
765   }
value_as_EluFLATBUFFERS_FINAL_CLASS766   const mindspore::schema::Elu *value_as_Elu() const {
767     return value_type() == mindspore::schema::PrimitiveType_Elu ? static_cast<const mindspore::schema::Elu *>(value()) : nullptr;
768   }
value_as_EltwiseFLATBUFFERS_FINAL_CLASS769   const mindspore::schema::Eltwise *value_as_Eltwise() const {
770     return value_type() == mindspore::schema::PrimitiveType_Eltwise ? static_cast<const mindspore::schema::Eltwise *>(value()) : nullptr;
771   }
value_as_EqualFLATBUFFERS_FINAL_CLASS772   const mindspore::schema::Equal *value_as_Equal() const {
773     return value_type() == mindspore::schema::PrimitiveType_Equal ? static_cast<const mindspore::schema::Equal *>(value()) : nullptr;
774   }
value_as_EmbeddingLookupFusionFLATBUFFERS_FINAL_CLASS775   const mindspore::schema::EmbeddingLookupFusion *value_as_EmbeddingLookupFusion() const {
776     return value_type() == mindspore::schema::PrimitiveType_EmbeddingLookupFusion ? static_cast<const mindspore::schema::EmbeddingLookupFusion *>(value()) : nullptr;
777   }
value_as_ExpFusionFLATBUFFERS_FINAL_CLASS778   const mindspore::schema::ExpFusion *value_as_ExpFusion() const {
779     return value_type() == mindspore::schema::PrimitiveType_ExpFusion ? static_cast<const mindspore::schema::ExpFusion *>(value()) : nullptr;
780   }
value_as_ExpandDimsFLATBUFFERS_FINAL_CLASS781   const mindspore::schema::ExpandDims *value_as_ExpandDims() const {
782     return value_type() == mindspore::schema::PrimitiveType_ExpandDims ? static_cast<const mindspore::schema::ExpandDims *>(value()) : nullptr;
783   }
value_as_FakeQuantWithMinMaxVarsFLATBUFFERS_FINAL_CLASS784   const mindspore::schema::FakeQuantWithMinMaxVars *value_as_FakeQuantWithMinMaxVars() const {
785     return value_type() == mindspore::schema::PrimitiveType_FakeQuantWithMinMaxVars ? static_cast<const mindspore::schema::FakeQuantWithMinMaxVars *>(value()) : nullptr;
786   }
value_as_FakeQuantWithMinMaxVarsPerChannelFLATBUFFERS_FINAL_CLASS787   const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *value_as_FakeQuantWithMinMaxVarsPerChannel() const {
788     return value_type() == mindspore::schema::PrimitiveType_FakeQuantWithMinMaxVarsPerChannel ? static_cast<const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *>(value()) : nullptr;
789   }
value_as_FftRealFLATBUFFERS_FINAL_CLASS790   const mindspore::schema::FftReal *value_as_FftReal() const {
791     return value_type() == mindspore::schema::PrimitiveType_FftReal ? static_cast<const mindspore::schema::FftReal *>(value()) : nullptr;
792   }
value_as_FftImagFLATBUFFERS_FINAL_CLASS793   const mindspore::schema::FftImag *value_as_FftImag() const {
794     return value_type() == mindspore::schema::PrimitiveType_FftImag ? static_cast<const mindspore::schema::FftImag *>(value()) : nullptr;
795   }
value_as_FlattenFLATBUFFERS_FINAL_CLASS796   const mindspore::schema::Flatten *value_as_Flatten() const {
797     return value_type() == mindspore::schema::PrimitiveType_Flatten ? static_cast<const mindspore::schema::Flatten *>(value()) : nullptr;
798   }
value_as_FlattenGradFLATBUFFERS_FINAL_CLASS799   const mindspore::schema::FlattenGrad *value_as_FlattenGrad() const {
800     return value_type() == mindspore::schema::PrimitiveType_FlattenGrad ? static_cast<const mindspore::schema::FlattenGrad *>(value()) : nullptr;
801   }
value_as_FloorFLATBUFFERS_FINAL_CLASS802   const mindspore::schema::Floor *value_as_Floor() const {
803     return value_type() == mindspore::schema::PrimitiveType_Floor ? static_cast<const mindspore::schema::Floor *>(value()) : nullptr;
804   }
value_as_FloorDivFLATBUFFERS_FINAL_CLASS805   const mindspore::schema::FloorDiv *value_as_FloorDiv() const {
806     return value_type() == mindspore::schema::PrimitiveType_FloorDiv ? static_cast<const mindspore::schema::FloorDiv *>(value()) : nullptr;
807   }
value_as_FloorModFLATBUFFERS_FINAL_CLASS808   const mindspore::schema::FloorMod *value_as_FloorMod() const {
809     return value_type() == mindspore::schema::PrimitiveType_FloorMod ? static_cast<const mindspore::schema::FloorMod *>(value()) : nullptr;
810   }
value_as_FillFLATBUFFERS_FINAL_CLASS811   const mindspore::schema::Fill *value_as_Fill() const {
812     return value_type() == mindspore::schema::PrimitiveType_Fill ? static_cast<const mindspore::schema::Fill *>(value()) : nullptr;
813   }
value_as_FullConnectionFLATBUFFERS_FINAL_CLASS814   const mindspore::schema::FullConnection *value_as_FullConnection() const {
815     return value_type() == mindspore::schema::PrimitiveType_FullConnection ? static_cast<const mindspore::schema::FullConnection *>(value()) : nullptr;
816   }
value_as_FusedBatchNormFLATBUFFERS_FINAL_CLASS817   const mindspore::schema::FusedBatchNorm *value_as_FusedBatchNorm() const {
818     return value_type() == mindspore::schema::PrimitiveType_FusedBatchNorm ? static_cast<const mindspore::schema::FusedBatchNorm *>(value()) : nullptr;
819   }
value_as_GatherFLATBUFFERS_FINAL_CLASS820   const mindspore::schema::Gather *value_as_Gather() const {
821     return value_type() == mindspore::schema::PrimitiveType_Gather ? static_cast<const mindspore::schema::Gather *>(value()) : nullptr;
822   }
value_as_GatherNdFLATBUFFERS_FINAL_CLASS823   const mindspore::schema::GatherNd *value_as_GatherNd() const {
824     return value_type() == mindspore::schema::PrimitiveType_GatherNd ? static_cast<const mindspore::schema::GatherNd *>(value()) : nullptr;
825   }
value_as_GreaterFLATBUFFERS_FINAL_CLASS826   const mindspore::schema::Greater *value_as_Greater() const {
827     return value_type() == mindspore::schema::PrimitiveType_Greater ? static_cast<const mindspore::schema::Greater *>(value()) : nullptr;
828   }
value_as_GreaterEqualFLATBUFFERS_FINAL_CLASS829   const mindspore::schema::GreaterEqual *value_as_GreaterEqual() const {
830     return value_type() == mindspore::schema::PrimitiveType_GreaterEqual ? static_cast<const mindspore::schema::GreaterEqual *>(value()) : nullptr;
831   }
value_as_HashtableLookupFLATBUFFERS_FINAL_CLASS832   const mindspore::schema::HashtableLookup *value_as_HashtableLookup() const {
833     return value_type() == mindspore::schema::PrimitiveType_HashtableLookup ? static_cast<const mindspore::schema::HashtableLookup *>(value()) : nullptr;
834   }
value_as_InstanceNormFLATBUFFERS_FINAL_CLASS835   const mindspore::schema::InstanceNorm *value_as_InstanceNorm() const {
836     return value_type() == mindspore::schema::PrimitiveType_InstanceNorm ? static_cast<const mindspore::schema::InstanceNorm *>(value()) : nullptr;
837   }
value_as_LayerNormFusionFLATBUFFERS_FINAL_CLASS838   const mindspore::schema::LayerNormFusion *value_as_LayerNormFusion() const {
839     return value_type() == mindspore::schema::PrimitiveType_LayerNormFusion ? static_cast<const mindspore::schema::LayerNormFusion *>(value()) : nullptr;
840   }
value_as_LeakyReluFLATBUFFERS_FINAL_CLASS841   const mindspore::schema::LeakyRelu *value_as_LeakyRelu() const {
842     return value_type() == mindspore::schema::PrimitiveType_LeakyRelu ? static_cast<const mindspore::schema::LeakyRelu *>(value()) : nullptr;
843   }
value_as_LessFLATBUFFERS_FINAL_CLASS844   const mindspore::schema::Less *value_as_Less() const {
845     return value_type() == mindspore::schema::PrimitiveType_Less ? static_cast<const mindspore::schema::Less *>(value()) : nullptr;
846   }
value_as_LessEqualFLATBUFFERS_FINAL_CLASS847   const mindspore::schema::LessEqual *value_as_LessEqual() const {
848     return value_type() == mindspore::schema::PrimitiveType_LessEqual ? static_cast<const mindspore::schema::LessEqual *>(value()) : nullptr;
849   }
value_as_LogFLATBUFFERS_FINAL_CLASS850   const mindspore::schema::Log *value_as_Log() const {
851     return value_type() == mindspore::schema::PrimitiveType_Log ? static_cast<const mindspore::schema::Log *>(value()) : nullptr;
852   }
value_as_LogGradFLATBUFFERS_FINAL_CLASS853   const mindspore::schema::LogGrad *value_as_LogGrad() const {
854     return value_type() == mindspore::schema::PrimitiveType_LogGrad ? static_cast<const mindspore::schema::LogGrad *>(value()) : nullptr;
855   }
value_as_LogicalAndFLATBUFFERS_FINAL_CLASS856   const mindspore::schema::LogicalAnd *value_as_LogicalAnd() const {
857     return value_type() == mindspore::schema::PrimitiveType_LogicalAnd ? static_cast<const mindspore::schema::LogicalAnd *>(value()) : nullptr;
858   }
value_as_LogicalNotFLATBUFFERS_FINAL_CLASS859   const mindspore::schema::LogicalNot *value_as_LogicalNot() const {
860     return value_type() == mindspore::schema::PrimitiveType_LogicalNot ? static_cast<const mindspore::schema::LogicalNot *>(value()) : nullptr;
861   }
value_as_LogicalOrFLATBUFFERS_FINAL_CLASS862   const mindspore::schema::LogicalOr *value_as_LogicalOr() const {
863     return value_type() == mindspore::schema::PrimitiveType_LogicalOr ? static_cast<const mindspore::schema::LogicalOr *>(value()) : nullptr;
864   }
value_as_LpNormalizationFLATBUFFERS_FINAL_CLASS865   const mindspore::schema::LpNormalization *value_as_LpNormalization() const {
866     return value_type() == mindspore::schema::PrimitiveType_LpNormalization ? static_cast<const mindspore::schema::LpNormalization *>(value()) : nullptr;
867   }
value_as_LRNFLATBUFFERS_FINAL_CLASS868   const mindspore::schema::LRN *value_as_LRN() const {
869     return value_type() == mindspore::schema::PrimitiveType_LRN ? static_cast<const mindspore::schema::LRN *>(value()) : nullptr;
870   }
value_as_LshProjectionFLATBUFFERS_FINAL_CLASS871   const mindspore::schema::LshProjection *value_as_LshProjection() const {
872     return value_type() == mindspore::schema::PrimitiveType_LshProjection ? static_cast<const mindspore::schema::LshProjection *>(value()) : nullptr;
873   }
value_as_LSTMFLATBUFFERS_FINAL_CLASS874   const mindspore::schema::LSTM *value_as_LSTM() const {
875     return value_type() == mindspore::schema::PrimitiveType_LSTM ? static_cast<const mindspore::schema::LSTM *>(value()) : nullptr;
876   }
value_as_L2NormalizeFusionFLATBUFFERS_FINAL_CLASS877   const mindspore::schema::L2NormalizeFusion *value_as_L2NormalizeFusion() const {
878     return value_type() == mindspore::schema::PrimitiveType_L2NormalizeFusion ? static_cast<const mindspore::schema::L2NormalizeFusion *>(value()) : nullptr;
879   }
value_as_MatMulFusionFLATBUFFERS_FINAL_CLASS880   const mindspore::schema::MatMulFusion *value_as_MatMulFusion() const {
881     return value_type() == mindspore::schema::PrimitiveType_MatMulFusion ? static_cast<const mindspore::schema::MatMulFusion *>(value()) : nullptr;
882   }
value_as_MaximumFLATBUFFERS_FINAL_CLASS883   const mindspore::schema::Maximum *value_as_Maximum() const {
884     return value_type() == mindspore::schema::PrimitiveType_Maximum ? static_cast<const mindspore::schema::Maximum *>(value()) : nullptr;
885   }
value_as_MaximumGradFLATBUFFERS_FINAL_CLASS886   const mindspore::schema::MaximumGrad *value_as_MaximumGrad() const {
887     return value_type() == mindspore::schema::PrimitiveType_MaximumGrad ? static_cast<const mindspore::schema::MaximumGrad *>(value()) : nullptr;
888   }
value_as_MaxPoolFusionFLATBUFFERS_FINAL_CLASS889   const mindspore::schema::MaxPoolFusion *value_as_MaxPoolFusion() const {
890     return value_type() == mindspore::schema::PrimitiveType_MaxPoolFusion ? static_cast<const mindspore::schema::MaxPoolFusion *>(value()) : nullptr;
891   }
value_as_MaxPoolGradFLATBUFFERS_FINAL_CLASS892   const mindspore::schema::MaxPoolGrad *value_as_MaxPoolGrad() const {
893     return value_type() == mindspore::schema::PrimitiveType_MaxPoolGrad ? static_cast<const mindspore::schema::MaxPoolGrad *>(value()) : nullptr;
894   }
value_as_MergeFLATBUFFERS_FINAL_CLASS895   const mindspore::schema::Merge *value_as_Merge() const {
896     return value_type() == mindspore::schema::PrimitiveType_Merge ? static_cast<const mindspore::schema::Merge *>(value()) : nullptr;
897   }
value_as_MfccFLATBUFFERS_FINAL_CLASS898   const mindspore::schema::Mfcc *value_as_Mfcc() const {
899     return value_type() == mindspore::schema::PrimitiveType_Mfcc ? static_cast<const mindspore::schema::Mfcc *>(value()) : nullptr;
900   }
value_as_MinimumFLATBUFFERS_FINAL_CLASS901   const mindspore::schema::Minimum *value_as_Minimum() const {
902     return value_type() == mindspore::schema::PrimitiveType_Minimum ? static_cast<const mindspore::schema::Minimum *>(value()) : nullptr;
903   }
value_as_MinimumGradFLATBUFFERS_FINAL_CLASS904   const mindspore::schema::MinimumGrad *value_as_MinimumGrad() const {
905     return value_type() == mindspore::schema::PrimitiveType_MinimumGrad ? static_cast<const mindspore::schema::MinimumGrad *>(value()) : nullptr;
906   }
value_as_ModFLATBUFFERS_FINAL_CLASS907   const mindspore::schema::Mod *value_as_Mod() const {
908     return value_type() == mindspore::schema::PrimitiveType_Mod ? static_cast<const mindspore::schema::Mod *>(value()) : nullptr;
909   }
value_as_MulFusionFLATBUFFERS_FINAL_CLASS910   const mindspore::schema::MulFusion *value_as_MulFusion() const {
911     return value_type() == mindspore::schema::PrimitiveType_MulFusion ? static_cast<const mindspore::schema::MulFusion *>(value()) : nullptr;
912   }
value_as_MulGradFLATBUFFERS_FINAL_CLASS913   const mindspore::schema::MulGrad *value_as_MulGrad() const {
914     return value_type() == mindspore::schema::PrimitiveType_MulGrad ? static_cast<const mindspore::schema::MulGrad *>(value()) : nullptr;
915   }
value_as_NegFLATBUFFERS_FINAL_CLASS916   const mindspore::schema::Neg *value_as_Neg() const {
917     return value_type() == mindspore::schema::PrimitiveType_Neg ? static_cast<const mindspore::schema::Neg *>(value()) : nullptr;
918   }
value_as_NegGradFLATBUFFERS_FINAL_CLASS919   const mindspore::schema::NegGrad *value_as_NegGrad() const {
920     return value_type() == mindspore::schema::PrimitiveType_NegGrad ? static_cast<const mindspore::schema::NegGrad *>(value()) : nullptr;
921   }
value_as_NotEqualFLATBUFFERS_FINAL_CLASS922   const mindspore::schema::NotEqual *value_as_NotEqual() const {
923     return value_type() == mindspore::schema::PrimitiveType_NotEqual ? static_cast<const mindspore::schema::NotEqual *>(value()) : nullptr;
924   }
value_as_NonMaxSuppressionFLATBUFFERS_FINAL_CLASS925   const mindspore::schema::NonMaxSuppression *value_as_NonMaxSuppression() const {
926     return value_type() == mindspore::schema::PrimitiveType_NonMaxSuppression ? static_cast<const mindspore::schema::NonMaxSuppression *>(value()) : nullptr;
927   }
value_as_OneHotFLATBUFFERS_FINAL_CLASS928   const mindspore::schema::OneHot *value_as_OneHot() const {
929     return value_type() == mindspore::schema::PrimitiveType_OneHot ? static_cast<const mindspore::schema::OneHot *>(value()) : nullptr;
930   }
value_as_OnesLikeFLATBUFFERS_FINAL_CLASS931   const mindspore::schema::OnesLike *value_as_OnesLike() const {
932     return value_type() == mindspore::schema::PrimitiveType_OnesLike ? static_cast<const mindspore::schema::OnesLike *>(value()) : nullptr;
933   }
value_as_PadFusionFLATBUFFERS_FINAL_CLASS934   const mindspore::schema::PadFusion *value_as_PadFusion() const {
935     return value_type() == mindspore::schema::PrimitiveType_PadFusion ? static_cast<const mindspore::schema::PadFusion *>(value()) : nullptr;
936   }
value_as_PartialFusionFLATBUFFERS_FINAL_CLASS937   const mindspore::schema::PartialFusion *value_as_PartialFusion() const {
938     return value_type() == mindspore::schema::PrimitiveType_PartialFusion ? static_cast<const mindspore::schema::PartialFusion *>(value()) : nullptr;
939   }
value_as_PowerGradFLATBUFFERS_FINAL_CLASS940   const mindspore::schema::PowerGrad *value_as_PowerGrad() const {
941     return value_type() == mindspore::schema::PrimitiveType_PowerGrad ? static_cast<const mindspore::schema::PowerGrad *>(value()) : nullptr;
942   }
value_as_PowFusionFLATBUFFERS_FINAL_CLASS943   const mindspore::schema::PowFusion *value_as_PowFusion() const {
944     return value_type() == mindspore::schema::PrimitiveType_PowFusion ? static_cast<const mindspore::schema::PowFusion *>(value()) : nullptr;
945   }
value_as_PriorBoxFLATBUFFERS_FINAL_CLASS946   const mindspore::schema::PriorBox *value_as_PriorBox() const {
947     return value_type() == mindspore::schema::PrimitiveType_PriorBox ? static_cast<const mindspore::schema::PriorBox *>(value()) : nullptr;
948   }
value_as_PReLUFusionFLATBUFFERS_FINAL_CLASS949   const mindspore::schema::PReLUFusion *value_as_PReLUFusion() const {
950     return value_type() == mindspore::schema::PrimitiveType_PReLUFusion ? static_cast<const mindspore::schema::PReLUFusion *>(value()) : nullptr;
951   }
value_as_QuantDTypeCastFLATBUFFERS_FINAL_CLASS952   const mindspore::schema::QuantDTypeCast *value_as_QuantDTypeCast() const {
953     return value_type() == mindspore::schema::PrimitiveType_QuantDTypeCast ? static_cast<const mindspore::schema::QuantDTypeCast *>(value()) : nullptr;
954   }
value_as_RankFLATBUFFERS_FINAL_CLASS955   const mindspore::schema::Rank *value_as_Rank() const {
956     return value_type() == mindspore::schema::PrimitiveType_Rank ? static_cast<const mindspore::schema::Rank *>(value()) : nullptr;
957   }
value_as_RangeFLATBUFFERS_FINAL_CLASS958   const mindspore::schema::Range *value_as_Range() const {
959     return value_type() == mindspore::schema::PrimitiveType_Range ? static_cast<const mindspore::schema::Range *>(value()) : nullptr;
960   }
value_as_ReciprocalFLATBUFFERS_FINAL_CLASS961   const mindspore::schema::Reciprocal *value_as_Reciprocal() const {
962     return value_type() == mindspore::schema::PrimitiveType_Reciprocal ? static_cast<const mindspore::schema::Reciprocal *>(value()) : nullptr;
963   }
value_as_RealDivFLATBUFFERS_FINAL_CLASS964   const mindspore::schema::RealDiv *value_as_RealDiv() const {
965     return value_type() == mindspore::schema::PrimitiveType_RealDiv ? static_cast<const mindspore::schema::RealDiv *>(value()) : nullptr;
966   }
value_as_ReduceFusionFLATBUFFERS_FINAL_CLASS967   const mindspore::schema::ReduceFusion *value_as_ReduceFusion() const {
968     return value_type() == mindspore::schema::PrimitiveType_ReduceFusion ? static_cast<const mindspore::schema::ReduceFusion *>(value()) : nullptr;
969   }
value_as_ReshapeFLATBUFFERS_FINAL_CLASS970   const mindspore::schema::Reshape *value_as_Reshape() const {
971     return value_type() == mindspore::schema::PrimitiveType_Reshape ? static_cast<const mindspore::schema::Reshape *>(value()) : nullptr;
972   }
value_as_ResizeFLATBUFFERS_FINAL_CLASS973   const mindspore::schema::Resize *value_as_Resize() const {
974     return value_type() == mindspore::schema::PrimitiveType_Resize ? static_cast<const mindspore::schema::Resize *>(value()) : nullptr;
975   }
value_as_ReverseSequenceFLATBUFFERS_FINAL_CLASS976   const mindspore::schema::ReverseSequence *value_as_ReverseSequence() const {
977     return value_type() == mindspore::schema::PrimitiveType_ReverseSequence ? static_cast<const mindspore::schema::ReverseSequence *>(value()) : nullptr;
978   }
value_as_ReverseV2FLATBUFFERS_FINAL_CLASS979   const mindspore::schema::ReverseV2 *value_as_ReverseV2() const {
980     return value_type() == mindspore::schema::PrimitiveType_ReverseV2 ? static_cast<const mindspore::schema::ReverseV2 *>(value()) : nullptr;
981   }
value_as_RfftFLATBUFFERS_FINAL_CLASS982   const mindspore::schema::Rfft *value_as_Rfft() const {
983     return value_type() == mindspore::schema::PrimitiveType_Rfft ? static_cast<const mindspore::schema::Rfft *>(value()) : nullptr;
984   }
value_as_ROIPoolingFLATBUFFERS_FINAL_CLASS985   const mindspore::schema::ROIPooling *value_as_ROIPooling() const {
986     return value_type() == mindspore::schema::PrimitiveType_ROIPooling ? static_cast<const mindspore::schema::ROIPooling *>(value()) : nullptr;
987   }
value_as_RoundFLATBUFFERS_FINAL_CLASS988   const mindspore::schema::Round *value_as_Round() const {
989     return value_type() == mindspore::schema::PrimitiveType_Round ? static_cast<const mindspore::schema::Round *>(value()) : nullptr;
990   }
value_as_RsqrtFLATBUFFERS_FINAL_CLASS991   const mindspore::schema::Rsqrt *value_as_Rsqrt() const {
992     return value_type() == mindspore::schema::PrimitiveType_Rsqrt ? static_cast<const mindspore::schema::Rsqrt *>(value()) : nullptr;
993   }
value_as_ScaleFusionFLATBUFFERS_FINAL_CLASS994   const mindspore::schema::ScaleFusion *value_as_ScaleFusion() const {
995     return value_type() == mindspore::schema::PrimitiveType_ScaleFusion ? static_cast<const mindspore::schema::ScaleFusion *>(value()) : nullptr;
996   }
value_as_ScatterNdFLATBUFFERS_FINAL_CLASS997   const mindspore::schema::ScatterNd *value_as_ScatterNd() const {
998     return value_type() == mindspore::schema::PrimitiveType_ScatterNd ? static_cast<const mindspore::schema::ScatterNd *>(value()) : nullptr;
999   }
value_as_SGDFLATBUFFERS_FINAL_CLASS1000   const mindspore::schema::SGD *value_as_SGD() const {
1001     return value_type() == mindspore::schema::PrimitiveType_SGD ? static_cast<const mindspore::schema::SGD *>(value()) : nullptr;
1002   }
value_as_ShapeFLATBUFFERS_FINAL_CLASS1003   const mindspore::schema::Shape *value_as_Shape() const {
1004     return value_type() == mindspore::schema::PrimitiveType_Shape ? static_cast<const mindspore::schema::Shape *>(value()) : nullptr;
1005   }
value_as_SigmoidCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1006   const mindspore::schema::SigmoidCrossEntropyWithLogits *value_as_SigmoidCrossEntropyWithLogits() const {
1007     return value_type() == mindspore::schema::PrimitiveType_SigmoidCrossEntropyWithLogits ? static_cast<const mindspore::schema::SigmoidCrossEntropyWithLogits *>(value()) : nullptr;
1008   }
value_as_SigmoidCrossEntropyWithLogitsGradFLATBUFFERS_FINAL_CLASS1009   const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *value_as_SigmoidCrossEntropyWithLogitsGrad() const {
1010     return value_type() == mindspore::schema::PrimitiveType_SigmoidCrossEntropyWithLogitsGrad ? static_cast<const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *>(value()) : nullptr;
1011   }
value_as_SinFLATBUFFERS_FINAL_CLASS1012   const mindspore::schema::Sin *value_as_Sin() const {
1013     return value_type() == mindspore::schema::PrimitiveType_Sin ? static_cast<const mindspore::schema::Sin *>(value()) : nullptr;
1014   }
value_as_SkipGramFLATBUFFERS_FINAL_CLASS1015   const mindspore::schema::SkipGram *value_as_SkipGram() const {
1016     return value_type() == mindspore::schema::PrimitiveType_SkipGram ? static_cast<const mindspore::schema::SkipGram *>(value()) : nullptr;
1017   }
value_as_SliceFusionFLATBUFFERS_FINAL_CLASS1018   const mindspore::schema::SliceFusion *value_as_SliceFusion() const {
1019     return value_type() == mindspore::schema::PrimitiveType_SliceFusion ? static_cast<const mindspore::schema::SliceFusion *>(value()) : nullptr;
1020   }
value_as_SmoothL1LossFLATBUFFERS_FINAL_CLASS1021   const mindspore::schema::SmoothL1Loss *value_as_SmoothL1Loss() const {
1022     return value_type() == mindspore::schema::PrimitiveType_SmoothL1Loss ? static_cast<const mindspore::schema::SmoothL1Loss *>(value()) : nullptr;
1023   }
value_as_SmoothL1LossGradFLATBUFFERS_FINAL_CLASS1024   const mindspore::schema::SmoothL1LossGrad *value_as_SmoothL1LossGrad() const {
1025     return value_type() == mindspore::schema::PrimitiveType_SmoothL1LossGrad ? static_cast<const mindspore::schema::SmoothL1LossGrad *>(value()) : nullptr;
1026   }
value_as_SoftmaxFLATBUFFERS_FINAL_CLASS1027   const mindspore::schema::Softmax *value_as_Softmax() const {
1028     return value_type() == mindspore::schema::PrimitiveType_Softmax ? static_cast<const mindspore::schema::Softmax *>(value()) : nullptr;
1029   }
value_as_SoftmaxCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1030   const mindspore::schema::SoftmaxCrossEntropyWithLogits *value_as_SoftmaxCrossEntropyWithLogits() const {
1031     return value_type() == mindspore::schema::PrimitiveType_SoftmaxCrossEntropyWithLogits ? static_cast<const mindspore::schema::SoftmaxCrossEntropyWithLogits *>(value()) : nullptr;
1032   }
value_as_SpaceToBatchFLATBUFFERS_FINAL_CLASS1033   const mindspore::schema::SpaceToBatch *value_as_SpaceToBatch() const {
1034     return value_type() == mindspore::schema::PrimitiveType_SpaceToBatch ? static_cast<const mindspore::schema::SpaceToBatch *>(value()) : nullptr;
1035   }
value_as_SpaceToBatchNDFLATBUFFERS_FINAL_CLASS1036   const mindspore::schema::SpaceToBatchND *value_as_SpaceToBatchND() const {
1037     return value_type() == mindspore::schema::PrimitiveType_SpaceToBatchND ? static_cast<const mindspore::schema::SpaceToBatchND *>(value()) : nullptr;
1038   }
value_as_SpaceToDepthFLATBUFFERS_FINAL_CLASS1039   const mindspore::schema::SpaceToDepth *value_as_SpaceToDepth() const {
1040     return value_type() == mindspore::schema::PrimitiveType_SpaceToDepth ? static_cast<const mindspore::schema::SpaceToDepth *>(value()) : nullptr;
1041   }
value_as_SparseSoftmaxCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1042   const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *value_as_SparseSoftmaxCrossEntropyWithLogits() const {
1043     return value_type() == mindspore::schema::PrimitiveType_SparseSoftmaxCrossEntropyWithLogits ? static_cast<const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *>(value()) : nullptr;
1044   }
value_as_SparseToDenseFLATBUFFERS_FINAL_CLASS1045   const mindspore::schema::SparseToDense *value_as_SparseToDense() const {
1046     return value_type() == mindspore::schema::PrimitiveType_SparseToDense ? static_cast<const mindspore::schema::SparseToDense *>(value()) : nullptr;
1047   }
value_as_SplitFLATBUFFERS_FINAL_CLASS1048   const mindspore::schema::Split *value_as_Split() const {
1049     return value_type() == mindspore::schema::PrimitiveType_Split ? static_cast<const mindspore::schema::Split *>(value()) : nullptr;
1050   }
value_as_SqrtFLATBUFFERS_FINAL_CLASS1051   const mindspore::schema::Sqrt *value_as_Sqrt() const {
1052     return value_type() == mindspore::schema::PrimitiveType_Sqrt ? static_cast<const mindspore::schema::Sqrt *>(value()) : nullptr;
1053   }
value_as_SqueezeFLATBUFFERS_FINAL_CLASS1054   const mindspore::schema::Squeeze *value_as_Squeeze() const {
1055     return value_type() == mindspore::schema::PrimitiveType_Squeeze ? static_cast<const mindspore::schema::Squeeze *>(value()) : nullptr;
1056   }
value_as_SquareFLATBUFFERS_FINAL_CLASS1057   const mindspore::schema::Square *value_as_Square() const {
1058     return value_type() == mindspore::schema::PrimitiveType_Square ? static_cast<const mindspore::schema::Square *>(value()) : nullptr;
1059   }
value_as_SquaredDifferenceFLATBUFFERS_FINAL_CLASS1060   const mindspore::schema::SquaredDifference *value_as_SquaredDifference() const {
1061     return value_type() == mindspore::schema::PrimitiveType_SquaredDifference ? static_cast<const mindspore::schema::SquaredDifference *>(value()) : nullptr;
1062   }
value_as_StackFLATBUFFERS_FINAL_CLASS1063   const mindspore::schema::Stack *value_as_Stack() const {
1064     return value_type() == mindspore::schema::PrimitiveType_Stack ? static_cast<const mindspore::schema::Stack *>(value()) : nullptr;
1065   }
value_as_StridedSliceFLATBUFFERS_FINAL_CLASS1066   const mindspore::schema::StridedSlice *value_as_StridedSlice() const {
1067     return value_type() == mindspore::schema::PrimitiveType_StridedSlice ? static_cast<const mindspore::schema::StridedSlice *>(value()) : nullptr;
1068   }
value_as_SubFusionFLATBUFFERS_FINAL_CLASS1069   const mindspore::schema::SubFusion *value_as_SubFusion() const {
1070     return value_type() == mindspore::schema::PrimitiveType_SubFusion ? static_cast<const mindspore::schema::SubFusion *>(value()) : nullptr;
1071   }
value_as_SubGradFLATBUFFERS_FINAL_CLASS1072   const mindspore::schema::SubGrad *value_as_SubGrad() const {
1073     return value_type() == mindspore::schema::PrimitiveType_SubGrad ? static_cast<const mindspore::schema::SubGrad *>(value()) : nullptr;
1074   }
value_as_SwitchFLATBUFFERS_FINAL_CLASS1075   const mindspore::schema::Switch *value_as_Switch() const {
1076     return value_type() == mindspore::schema::PrimitiveType_Switch ? static_cast<const mindspore::schema::Switch *>(value()) : nullptr;
1077   }
value_as_TensorListFromTensorFLATBUFFERS_FINAL_CLASS1078   const mindspore::schema::TensorListFromTensor *value_as_TensorListFromTensor() const {
1079     return value_type() == mindspore::schema::PrimitiveType_TensorListFromTensor ? static_cast<const mindspore::schema::TensorListFromTensor *>(value()) : nullptr;
1080   }
value_as_TensorListGetItemFLATBUFFERS_FINAL_CLASS1081   const mindspore::schema::TensorListGetItem *value_as_TensorListGetItem() const {
1082     return value_type() == mindspore::schema::PrimitiveType_TensorListGetItem ? static_cast<const mindspore::schema::TensorListGetItem *>(value()) : nullptr;
1083   }
value_as_TensorListReserveFLATBUFFERS_FINAL_CLASS1084   const mindspore::schema::TensorListReserve *value_as_TensorListReserve() const {
1085     return value_type() == mindspore::schema::PrimitiveType_TensorListReserve ? static_cast<const mindspore::schema::TensorListReserve *>(value()) : nullptr;
1086   }
value_as_TensorListSetItemFLATBUFFERS_FINAL_CLASS1087   const mindspore::schema::TensorListSetItem *value_as_TensorListSetItem() const {
1088     return value_type() == mindspore::schema::PrimitiveType_TensorListSetItem ? static_cast<const mindspore::schema::TensorListSetItem *>(value()) : nullptr;
1089   }
value_as_TensorListStackFLATBUFFERS_FINAL_CLASS1090   const mindspore::schema::TensorListStack *value_as_TensorListStack() const {
1091     return value_type() == mindspore::schema::PrimitiveType_TensorListStack ? static_cast<const mindspore::schema::TensorListStack *>(value()) : nullptr;
1092   }
value_as_TileFusionFLATBUFFERS_FINAL_CLASS1093   const mindspore::schema::TileFusion *value_as_TileFusion() const {
1094     return value_type() == mindspore::schema::PrimitiveType_TileFusion ? static_cast<const mindspore::schema::TileFusion *>(value()) : nullptr;
1095   }
value_as_TopKFusionFLATBUFFERS_FINAL_CLASS1096   const mindspore::schema::TopKFusion *value_as_TopKFusion() const {
1097     return value_type() == mindspore::schema::PrimitiveType_TopKFusion ? static_cast<const mindspore::schema::TopKFusion *>(value()) : nullptr;
1098   }
value_as_TransposeFLATBUFFERS_FINAL_CLASS1099   const mindspore::schema::Transpose *value_as_Transpose() const {
1100     return value_type() == mindspore::schema::PrimitiveType_Transpose ? static_cast<const mindspore::schema::Transpose *>(value()) : nullptr;
1101   }
value_as_UniqueFLATBUFFERS_FINAL_CLASS1102   const mindspore::schema::Unique *value_as_Unique() const {
1103     return value_type() == mindspore::schema::PrimitiveType_Unique ? static_cast<const mindspore::schema::Unique *>(value()) : nullptr;
1104   }
value_as_UnsortedSegmentSumFLATBUFFERS_FINAL_CLASS1105   const mindspore::schema::UnsortedSegmentSum *value_as_UnsortedSegmentSum() const {
1106     return value_type() == mindspore::schema::PrimitiveType_UnsortedSegmentSum ? static_cast<const mindspore::schema::UnsortedSegmentSum *>(value()) : nullptr;
1107   }
value_as_UnsqueezeFLATBUFFERS_FINAL_CLASS1108   const mindspore::schema::Unsqueeze *value_as_Unsqueeze() const {
1109     return value_type() == mindspore::schema::PrimitiveType_Unsqueeze ? static_cast<const mindspore::schema::Unsqueeze *>(value()) : nullptr;
1110   }
value_as_UnstackFLATBUFFERS_FINAL_CLASS1111   const mindspore::schema::Unstack *value_as_Unstack() const {
1112     return value_type() == mindspore::schema::PrimitiveType_Unstack ? static_cast<const mindspore::schema::Unstack *>(value()) : nullptr;
1113   }
value_as_LSTMGradFLATBUFFERS_FINAL_CLASS1114   const mindspore::schema::LSTMGrad *value_as_LSTMGrad() const {
1115     return value_type() == mindspore::schema::PrimitiveType_LSTMGrad ? static_cast<const mindspore::schema::LSTMGrad *>(value()) : nullptr;
1116   }
value_as_WhereFLATBUFFERS_FINAL_CLASS1117   const mindspore::schema::Where *value_as_Where() const {
1118     return value_type() == mindspore::schema::PrimitiveType_Where ? static_cast<const mindspore::schema::Where *>(value()) : nullptr;
1119   }
value_as_ZerosLikeFLATBUFFERS_FINAL_CLASS1120   const mindspore::schema::ZerosLike *value_as_ZerosLike() const {
1121     return value_type() == mindspore::schema::PrimitiveType_ZerosLike ? static_cast<const mindspore::schema::ZerosLike *>(value()) : nullptr;
1122   }
value_as_SelectFLATBUFFERS_FINAL_CLASS1123   const mindspore::schema::Select *value_as_Select() const {
1124     return value_type() == mindspore::schema::PrimitiveType_Select ? static_cast<const mindspore::schema::Select *>(value()) : nullptr;
1125   }
value_as_ScatterNdUpdateFLATBUFFERS_FINAL_CLASS1126   const mindspore::schema::ScatterNdUpdate *value_as_ScatterNdUpdate() const {
1127     return value_type() == mindspore::schema::PrimitiveType_ScatterNdUpdate ? static_cast<const mindspore::schema::ScatterNdUpdate *>(value()) : nullptr;
1128   }
value_as_GRUFLATBUFFERS_FINAL_CLASS1129   const mindspore::schema::GRU *value_as_GRU() const {
1130     return value_type() == mindspore::schema::PrimitiveType_GRU ? static_cast<const mindspore::schema::GRU *>(value()) : nullptr;
1131   }
value_as_NonZeroFLATBUFFERS_FINAL_CLASS1132   const mindspore::schema::NonZero *value_as_NonZero() const {
1133     return value_type() == mindspore::schema::PrimitiveType_NonZero ? static_cast<const mindspore::schema::NonZero *>(value()) : nullptr;
1134   }
value_as_InvertPermutationFLATBUFFERS_FINAL_CLASS1135   const mindspore::schema::InvertPermutation *value_as_InvertPermutation() const {
1136     return value_type() == mindspore::schema::PrimitiveType_InvertPermutation ? static_cast<const mindspore::schema::InvertPermutation *>(value()) : nullptr;
1137   }
value_as_SizeFLATBUFFERS_FINAL_CLASS1138   const mindspore::schema::Size *value_as_Size() const {
1139     return value_type() == mindspore::schema::PrimitiveType_Size ? static_cast<const mindspore::schema::Size *>(value()) : nullptr;
1140   }
value_as_RandomStandardNormalFLATBUFFERS_FINAL_CLASS1141   const mindspore::schema::RandomStandardNormal *value_as_RandomStandardNormal() const {
1142     return value_type() == mindspore::schema::PrimitiveType_RandomStandardNormal ? static_cast<const mindspore::schema::RandomStandardNormal *>(value()) : nullptr;
1143   }
value_as_CropAndResizeFLATBUFFERS_FINAL_CLASS1144   const mindspore::schema::CropAndResize *value_as_CropAndResize() const {
1145     return value_type() == mindspore::schema::PrimitiveType_CropAndResize ? static_cast<const mindspore::schema::CropAndResize *>(value()) : nullptr;
1146   }
value_as_ErfFLATBUFFERS_FINAL_CLASS1147   const mindspore::schema::Erf *value_as_Erf() const {
1148     return value_type() == mindspore::schema::PrimitiveType_Erf ? static_cast<const mindspore::schema::Erf *>(value()) : nullptr;
1149   }
value_as_StridedSliceGradFLATBUFFERS_FINAL_CLASS1150   const mindspore::schema::StridedSliceGrad *value_as_StridedSliceGrad() const {
1151     return value_type() == mindspore::schema::PrimitiveType_StridedSliceGrad ? static_cast<const mindspore::schema::StridedSliceGrad *>(value()) : nullptr;
1152   }
value_as_IsFiniteFLATBUFFERS_FINAL_CLASS1153   const mindspore::schema::IsFinite *value_as_IsFinite() const {
1154     return value_type() == mindspore::schema::PrimitiveType_IsFinite ? static_cast<const mindspore::schema::IsFinite *>(value()) : nullptr;
1155   }
value_as_LinSpaceFLATBUFFERS_FINAL_CLASS1156   const mindspore::schema::LinSpace *value_as_LinSpace() const {
1157     return value_type() == mindspore::schema::PrimitiveType_LinSpace ? static_cast<const mindspore::schema::LinSpace *>(value()) : nullptr;
1158   }
value_as_UniformRealFLATBUFFERS_FINAL_CLASS1159   const mindspore::schema::UniformReal *value_as_UniformReal() const {
1160     return value_type() == mindspore::schema::PrimitiveType_UniformReal ? static_cast<const mindspore::schema::UniformReal *>(value()) : nullptr;
1161   }
value_as_AbsGradFLATBUFFERS_FINAL_CLASS1162   const mindspore::schema::AbsGrad *value_as_AbsGrad() const {
1163     return value_type() == mindspore::schema::PrimitiveType_AbsGrad ? static_cast<const mindspore::schema::AbsGrad *>(value()) : nullptr;
1164   }
value_as_RsqrtGradFLATBUFFERS_FINAL_CLASS1165   const mindspore::schema::RsqrtGrad *value_as_RsqrtGrad() const {
1166     return value_type() == mindspore::schema::PrimitiveType_RsqrtGrad ? static_cast<const mindspore::schema::RsqrtGrad *>(value()) : nullptr;
1167   }
value_as_SqrtGradFLATBUFFERS_FINAL_CLASS1168   const mindspore::schema::SqrtGrad *value_as_SqrtGrad() const {
1169     return value_type() == mindspore::schema::PrimitiveType_SqrtGrad ? static_cast<const mindspore::schema::SqrtGrad *>(value()) : nullptr;
1170   }
value_as_LayerNormGradFLATBUFFERS_FINAL_CLASS1171   const mindspore::schema::LayerNormGrad *value_as_LayerNormGrad() const {
1172     return value_type() == mindspore::schema::PrimitiveType_LayerNormGrad ? static_cast<const mindspore::schema::LayerNormGrad *>(value()) : nullptr;
1173   }
value_as_ResizeGradFLATBUFFERS_FINAL_CLASS1174   const mindspore::schema::ResizeGrad *value_as_ResizeGrad() const {
1175     return value_type() == mindspore::schema::PrimitiveType_ResizeGrad ? static_cast<const mindspore::schema::ResizeGrad *>(value()) : nullptr;
1176   }
value_as_SpliceFLATBUFFERS_FINAL_CLASS1177   const mindspore::schema::Splice *value_as_Splice() const {
1178     return value_type() == mindspore::schema::PrimitiveType_Splice ? static_cast<const mindspore::schema::Splice *>(value()) : nullptr;
1179   }
value_as_LogSoftmaxFLATBUFFERS_FINAL_CLASS1180   const mindspore::schema::LogSoftmax *value_as_LogSoftmax() const {
1181     return value_type() == mindspore::schema::PrimitiveType_LogSoftmax ? static_cast<const mindspore::schema::LogSoftmax *>(value()) : nullptr;
1182   }
value_as_CallFLATBUFFERS_FINAL_CLASS1183   const mindspore::schema::Call *value_as_Call() const {
1184     return value_type() == mindspore::schema::PrimitiveType_Call ? static_cast<const mindspore::schema::Call *>(value()) : nullptr;
1185   }
value_as_CustomFLATBUFFERS_FINAL_CLASS1186   const mindspore::schema::Custom *value_as_Custom() const {
1187     return value_type() == mindspore::schema::PrimitiveType_Custom ? static_cast<const mindspore::schema::Custom *>(value()) : nullptr;
1188   }
value_as_CumSumFLATBUFFERS_FINAL_CLASS1189   const mindspore::schema::CumSum *value_as_CumSum() const {
1190     return value_type() == mindspore::schema::PrimitiveType_CumSum ? static_cast<const mindspore::schema::CumSum *>(value()) : nullptr;
1191   }
value_as_SplitWithOverlapFLATBUFFERS_FINAL_CLASS1192   const mindspore::schema::SplitWithOverlap *value_as_SplitWithOverlap() const {
1193     return value_type() == mindspore::schema::PrimitiveType_SplitWithOverlap ? static_cast<const mindspore::schema::SplitWithOverlap *>(value()) : nullptr;
1194   }
value_as_GenOPFLATBUFFERS_FINAL_CLASS1195   const mindspore::schema::GenOP *value_as_GenOP() const {
1196     return value_type() == mindspore::schema::PrimitiveType_GenOP ? static_cast<const mindspore::schema::GenOP *>(value()) : nullptr;
1197   }
value_as_RaggedRangeFLATBUFFERS_FINAL_CLASS1198   const mindspore::schema::RaggedRange *value_as_RaggedRange() const {
1199     return value_type() == mindspore::schema::PrimitiveType_RaggedRange ? static_cast<const mindspore::schema::RaggedRange *>(value()) : nullptr;
1200   }
value_as_GLUFLATBUFFERS_FINAL_CLASS1201   const mindspore::schema::GLU *value_as_GLU() const {
1202     return value_type() == mindspore::schema::PrimitiveType_GLU ? static_cast<const mindspore::schema::GLU *>(value()) : nullptr;
1203   }
value_as_TensorArrayFLATBUFFERS_FINAL_CLASS1204   const mindspore::schema::TensorArray *value_as_TensorArray() const {
1205     return value_type() == mindspore::schema::PrimitiveType_TensorArray ? static_cast<const mindspore::schema::TensorArray *>(value()) : nullptr;
1206   }
value_as_TensorArrayReadFLATBUFFERS_FINAL_CLASS1207   const mindspore::schema::TensorArrayRead *value_as_TensorArrayRead() const {
1208     return value_type() == mindspore::schema::PrimitiveType_TensorArrayRead ? static_cast<const mindspore::schema::TensorArrayRead *>(value()) : nullptr;
1209   }
value_as_TensorArrayWriteFLATBUFFERS_FINAL_CLASS1210   const mindspore::schema::TensorArrayWrite *value_as_TensorArrayWrite() const {
1211     return value_type() == mindspore::schema::PrimitiveType_TensorArrayWrite ? static_cast<const mindspore::schema::TensorArrayWrite *>(value()) : nullptr;
1212   }
value_as_AffineFLATBUFFERS_FINAL_CLASS1213   const mindspore::schema::Affine *value_as_Affine() const {
1214     return value_type() == mindspore::schema::PrimitiveType_Affine ? static_cast<const mindspore::schema::Affine *>(value()) : nullptr;
1215   }
mutable_valueFLATBUFFERS_FINAL_CLASS1216   void *mutable_value() {
1217     return GetPointer<void *>(VT_VALUE);
1218   }
VerifyFLATBUFFERS_FINAL_CLASS1219   bool Verify(flatbuffers::Verifier &verifier) const {
1220     return VerifyTableStart(verifier) &&
1221            VerifyField<uint8_t>(verifier, VT_VALUE_TYPE) &&
1222            VerifyOffset(verifier, VT_VALUE) &&
1223            VerifyPrimitiveType(verifier, value(), value_type()) &&
1224            verifier.EndTable();
1225   }
1226   PrimitiveT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
1227   void UnPackTo(PrimitiveT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
1228   static flatbuffers::Offset<Primitive> Pack(flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
1229 };
1230 
1231 template<> inline const mindspore::schema::Abs *Primitive::value_as<mindspore::schema::Abs>() const {
1232   return value_as_Abs();
1233 }
1234 
1235 template<> inline const mindspore::schema::Activation *Primitive::value_as<mindspore::schema::Activation>() const {
1236   return value_as_Activation();
1237 }
1238 
1239 template<> inline const mindspore::schema::ActivationGrad *Primitive::value_as<mindspore::schema::ActivationGrad>() const {
1240   return value_as_ActivationGrad();
1241 }
1242 
1243 template<> inline const mindspore::schema::Adam *Primitive::value_as<mindspore::schema::Adam>() const {
1244   return value_as_Adam();
1245 }
1246 
1247 template<> inline const mindspore::schema::AddFusion *Primitive::value_as<mindspore::schema::AddFusion>() const {
1248   return value_as_AddFusion();
1249 }
1250 
1251 template<> inline const mindspore::schema::AdderFusion *Primitive::value_as<mindspore::schema::AdderFusion>() const {
1252   return value_as_AdderFusion();
1253 }
1254 
1255 template<> inline const mindspore::schema::AddGrad *Primitive::value_as<mindspore::schema::AddGrad>() const {
1256   return value_as_AddGrad();
1257 }
1258 
1259 template<> inline const mindspore::schema::AddN *Primitive::value_as<mindspore::schema::AddN>() const {
1260   return value_as_AddN();
1261 }
1262 
1263 template<> inline const mindspore::schema::All *Primitive::value_as<mindspore::schema::All>() const {
1264   return value_as_All();
1265 }
1266 
1267 template<> inline const mindspore::schema::ApplyMomentum *Primitive::value_as<mindspore::schema::ApplyMomentum>() const {
1268   return value_as_ApplyMomentum();
1269 }
1270 
1271 template<> inline const mindspore::schema::ArgMaxFusion *Primitive::value_as<mindspore::schema::ArgMaxFusion>() const {
1272   return value_as_ArgMaxFusion();
1273 }
1274 
1275 template<> inline const mindspore::schema::ArgMinFusion *Primitive::value_as<mindspore::schema::ArgMinFusion>() const {
1276   return value_as_ArgMinFusion();
1277 }
1278 
1279 template<> inline const mindspore::schema::Assert *Primitive::value_as<mindspore::schema::Assert>() const {
1280   return value_as_Assert();
1281 }
1282 
1283 template<> inline const mindspore::schema::Assign *Primitive::value_as<mindspore::schema::Assign>() const {
1284   return value_as_Assign();
1285 }
1286 
1287 template<> inline const mindspore::schema::AssignAdd *Primitive::value_as<mindspore::schema::AssignAdd>() const {
1288   return value_as_AssignAdd();
1289 }
1290 
1291 template<> inline const mindspore::schema::AudioSpectrogram *Primitive::value_as<mindspore::schema::AudioSpectrogram>() const {
1292   return value_as_AudioSpectrogram();
1293 }
1294 
1295 template<> inline const mindspore::schema::AvgPoolFusion *Primitive::value_as<mindspore::schema::AvgPoolFusion>() const {
1296   return value_as_AvgPoolFusion();
1297 }
1298 
1299 template<> inline const mindspore::schema::AvgPoolGrad *Primitive::value_as<mindspore::schema::AvgPoolGrad>() const {
1300   return value_as_AvgPoolGrad();
1301 }
1302 
1303 template<> inline const mindspore::schema::BatchNorm *Primitive::value_as<mindspore::schema::BatchNorm>() const {
1304   return value_as_BatchNorm();
1305 }
1306 
1307 template<> inline const mindspore::schema::BatchNormGrad *Primitive::value_as<mindspore::schema::BatchNormGrad>() const {
1308   return value_as_BatchNormGrad();
1309 }
1310 
1311 template<> inline const mindspore::schema::BatchToSpace *Primitive::value_as<mindspore::schema::BatchToSpace>() const {
1312   return value_as_BatchToSpace();
1313 }
1314 
1315 template<> inline const mindspore::schema::BatchToSpaceND *Primitive::value_as<mindspore::schema::BatchToSpaceND>() const {
1316   return value_as_BatchToSpaceND();
1317 }
1318 
1319 template<> inline const mindspore::schema::BiasAdd *Primitive::value_as<mindspore::schema::BiasAdd>() const {
1320   return value_as_BiasAdd();
1321 }
1322 
1323 template<> inline const mindspore::schema::BinaryCrossEntropy *Primitive::value_as<mindspore::schema::BinaryCrossEntropy>() const {
1324   return value_as_BinaryCrossEntropy();
1325 }
1326 
1327 template<> inline const mindspore::schema::BinaryCrossEntropyGrad *Primitive::value_as<mindspore::schema::BinaryCrossEntropyGrad>() const {
1328   return value_as_BinaryCrossEntropyGrad();
1329 }
1330 
1331 template<> inline const mindspore::schema::BiasAddGrad *Primitive::value_as<mindspore::schema::BiasAddGrad>() const {
1332   return value_as_BiasAddGrad();
1333 }
1334 
1335 template<> inline const mindspore::schema::BroadcastTo *Primitive::value_as<mindspore::schema::BroadcastTo>() const {
1336   return value_as_BroadcastTo();
1337 }
1338 
1339 template<> inline const mindspore::schema::Cast *Primitive::value_as<mindspore::schema::Cast>() const {
1340   return value_as_Cast();
1341 }
1342 
1343 template<> inline const mindspore::schema::Ceil *Primitive::value_as<mindspore::schema::Ceil>() const {
1344   return value_as_Ceil();
1345 }
1346 
1347 template<> inline const mindspore::schema::Clip *Primitive::value_as<mindspore::schema::Clip>() const {
1348   return value_as_Clip();
1349 }
1350 
1351 template<> inline const mindspore::schema::Concat *Primitive::value_as<mindspore::schema::Concat>() const {
1352   return value_as_Concat();
1353 }
1354 
1355 template<> inline const mindspore::schema::Attention *Primitive::value_as<mindspore::schema::Attention>() const {
1356   return value_as_Attention();
1357 }
1358 
1359 template<> inline const mindspore::schema::Conv2DBackpropFilterFusion *Primitive::value_as<mindspore::schema::Conv2DBackpropFilterFusion>() const {
1360   return value_as_Conv2DBackpropFilterFusion();
1361 }
1362 
1363 template<> inline const mindspore::schema::Conv2DBackpropInputFusion *Primitive::value_as<mindspore::schema::Conv2DBackpropInputFusion>() const {
1364   return value_as_Conv2DBackpropInputFusion();
1365 }
1366 
1367 template<> inline const mindspore::schema::Conv2DFusion *Primitive::value_as<mindspore::schema::Conv2DFusion>() const {
1368   return value_as_Conv2DFusion();
1369 }
1370 
1371 template<> inline const mindspore::schema::Conv2dTransposeFusion *Primitive::value_as<mindspore::schema::Conv2dTransposeFusion>() const {
1372   return value_as_Conv2dTransposeFusion();
1373 }
1374 
1375 template<> inline const mindspore::schema::Cos *Primitive::value_as<mindspore::schema::Cos>() const {
1376   return value_as_Cos();
1377 }
1378 
1379 template<> inline const mindspore::schema::ConstantOfShape *Primitive::value_as<mindspore::schema::ConstantOfShape>() const {
1380   return value_as_ConstantOfShape();
1381 }
1382 
1383 template<> inline const mindspore::schema::Crop *Primitive::value_as<mindspore::schema::Crop>() const {
1384   return value_as_Crop();
1385 }
1386 
1387 template<> inline const mindspore::schema::CustomExtractFeatures *Primitive::value_as<mindspore::schema::CustomExtractFeatures>() const {
1388   return value_as_CustomExtractFeatures();
1389 }
1390 
1391 template<> inline const mindspore::schema::CustomNormalize *Primitive::value_as<mindspore::schema::CustomNormalize>() const {
1392   return value_as_CustomNormalize();
1393 }
1394 
1395 template<> inline const mindspore::schema::CustomPredict *Primitive::value_as<mindspore::schema::CustomPredict>() const {
1396   return value_as_CustomPredict();
1397 }
1398 
1399 template<> inline const mindspore::schema::DeConv2DGradFilter *Primitive::value_as<mindspore::schema::DeConv2DGradFilter>() const {
1400   return value_as_DeConv2DGradFilter();
1401 }
1402 
1403 template<> inline const mindspore::schema::Depend *Primitive::value_as<mindspore::schema::Depend>() const {
1404   return value_as_Depend();
1405 }
1406 
1407 template<> inline const mindspore::schema::DepthToSpace *Primitive::value_as<mindspore::schema::DepthToSpace>() const {
1408   return value_as_DepthToSpace();
1409 }
1410 
1411 template<> inline const mindspore::schema::DetectionPostProcess *Primitive::value_as<mindspore::schema::DetectionPostProcess>() const {
1412   return value_as_DetectionPostProcess();
1413 }
1414 
1415 template<> inline const mindspore::schema::DivFusion *Primitive::value_as<mindspore::schema::DivFusion>() const {
1416   return value_as_DivFusion();
1417 }
1418 
1419 template<> inline const mindspore::schema::DivGrad *Primitive::value_as<mindspore::schema::DivGrad>() const {
1420   return value_as_DivGrad();
1421 }
1422 
1423 template<> inline const mindspore::schema::Dropout *Primitive::value_as<mindspore::schema::Dropout>() const {
1424   return value_as_Dropout();
1425 }
1426 
1427 template<> inline const mindspore::schema::DropoutGrad *Primitive::value_as<mindspore::schema::DropoutGrad>() const {
1428   return value_as_DropoutGrad();
1429 }
1430 
1431 template<> inline const mindspore::schema::Elu *Primitive::value_as<mindspore::schema::Elu>() const {
1432   return value_as_Elu();
1433 }
1434 
1435 template<> inline const mindspore::schema::Eltwise *Primitive::value_as<mindspore::schema::Eltwise>() const {
1436   return value_as_Eltwise();
1437 }
1438 
1439 template<> inline const mindspore::schema::Equal *Primitive::value_as<mindspore::schema::Equal>() const {
1440   return value_as_Equal();
1441 }
1442 
1443 template<> inline const mindspore::schema::EmbeddingLookupFusion *Primitive::value_as<mindspore::schema::EmbeddingLookupFusion>() const {
1444   return value_as_EmbeddingLookupFusion();
1445 }
1446 
1447 template<> inline const mindspore::schema::ExpFusion *Primitive::value_as<mindspore::schema::ExpFusion>() const {
1448   return value_as_ExpFusion();
1449 }
1450 
1451 template<> inline const mindspore::schema::ExpandDims *Primitive::value_as<mindspore::schema::ExpandDims>() const {
1452   return value_as_ExpandDims();
1453 }
1454 
1455 template<> inline const mindspore::schema::FakeQuantWithMinMaxVars *Primitive::value_as<mindspore::schema::FakeQuantWithMinMaxVars>() const {
1456   return value_as_FakeQuantWithMinMaxVars();
1457 }
1458 
1459 template<> inline const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *Primitive::value_as<mindspore::schema::FakeQuantWithMinMaxVarsPerChannel>() const {
1460   return value_as_FakeQuantWithMinMaxVarsPerChannel();
1461 }
1462 
1463 template<> inline const mindspore::schema::FftReal *Primitive::value_as<mindspore::schema::FftReal>() const {
1464   return value_as_FftReal();
1465 }
1466 
1467 template<> inline const mindspore::schema::FftImag *Primitive::value_as<mindspore::schema::FftImag>() const {
1468   return value_as_FftImag();
1469 }
1470 
1471 template<> inline const mindspore::schema::Flatten *Primitive::value_as<mindspore::schema::Flatten>() const {
1472   return value_as_Flatten();
1473 }
1474 
1475 template<> inline const mindspore::schema::FlattenGrad *Primitive::value_as<mindspore::schema::FlattenGrad>() const {
1476   return value_as_FlattenGrad();
1477 }
1478 
1479 template<> inline const mindspore::schema::Floor *Primitive::value_as<mindspore::schema::Floor>() const {
1480   return value_as_Floor();
1481 }
1482 
1483 template<> inline const mindspore::schema::FloorDiv *Primitive::value_as<mindspore::schema::FloorDiv>() const {
1484   return value_as_FloorDiv();
1485 }
1486 
1487 template<> inline const mindspore::schema::FloorMod *Primitive::value_as<mindspore::schema::FloorMod>() const {
1488   return value_as_FloorMod();
1489 }
1490 
1491 template<> inline const mindspore::schema::Fill *Primitive::value_as<mindspore::schema::Fill>() const {
1492   return value_as_Fill();
1493 }
1494 
1495 template<> inline const mindspore::schema::FullConnection *Primitive::value_as<mindspore::schema::FullConnection>() const {
1496   return value_as_FullConnection();
1497 }
1498 
1499 template<> inline const mindspore::schema::FusedBatchNorm *Primitive::value_as<mindspore::schema::FusedBatchNorm>() const {
1500   return value_as_FusedBatchNorm();
1501 }
1502 
1503 template<> inline const mindspore::schema::Gather *Primitive::value_as<mindspore::schema::Gather>() const {
1504   return value_as_Gather();
1505 }
1506 
1507 template<> inline const mindspore::schema::GatherNd *Primitive::value_as<mindspore::schema::GatherNd>() const {
1508   return value_as_GatherNd();
1509 }
1510 
1511 template<> inline const mindspore::schema::Greater *Primitive::value_as<mindspore::schema::Greater>() const {
1512   return value_as_Greater();
1513 }
1514 
1515 template<> inline const mindspore::schema::GreaterEqual *Primitive::value_as<mindspore::schema::GreaterEqual>() const {
1516   return value_as_GreaterEqual();
1517 }
1518 
1519 template<> inline const mindspore::schema::HashtableLookup *Primitive::value_as<mindspore::schema::HashtableLookup>() const {
1520   return value_as_HashtableLookup();
1521 }
1522 
1523 template<> inline const mindspore::schema::InstanceNorm *Primitive::value_as<mindspore::schema::InstanceNorm>() const {
1524   return value_as_InstanceNorm();
1525 }
1526 
1527 template<> inline const mindspore::schema::LayerNormFusion *Primitive::value_as<mindspore::schema::LayerNormFusion>() const {
1528   return value_as_LayerNormFusion();
1529 }
1530 
1531 template<> inline const mindspore::schema::LeakyRelu *Primitive::value_as<mindspore::schema::LeakyRelu>() const {
1532   return value_as_LeakyRelu();
1533 }
1534 
1535 template<> inline const mindspore::schema::Less *Primitive::value_as<mindspore::schema::Less>() const {
1536   return value_as_Less();
1537 }
1538 
1539 template<> inline const mindspore::schema::LessEqual *Primitive::value_as<mindspore::schema::LessEqual>() const {
1540   return value_as_LessEqual();
1541 }
1542 
1543 template<> inline const mindspore::schema::Log *Primitive::value_as<mindspore::schema::Log>() const {
1544   return value_as_Log();
1545 }
1546 
1547 template<> inline const mindspore::schema::LogGrad *Primitive::value_as<mindspore::schema::LogGrad>() const {
1548   return value_as_LogGrad();
1549 }
1550 
1551 template<> inline const mindspore::schema::LogicalAnd *Primitive::value_as<mindspore::schema::LogicalAnd>() const {
1552   return value_as_LogicalAnd();
1553 }
1554 
1555 template<> inline const mindspore::schema::LogicalNot *Primitive::value_as<mindspore::schema::LogicalNot>() const {
1556   return value_as_LogicalNot();
1557 }
1558 
1559 template<> inline const mindspore::schema::LogicalOr *Primitive::value_as<mindspore::schema::LogicalOr>() const {
1560   return value_as_LogicalOr();
1561 }
1562 
1563 template<> inline const mindspore::schema::LpNormalization *Primitive::value_as<mindspore::schema::LpNormalization>() const {
1564   return value_as_LpNormalization();
1565 }
1566 
1567 template<> inline const mindspore::schema::LRN *Primitive::value_as<mindspore::schema::LRN>() const {
1568   return value_as_LRN();
1569 }
1570 
1571 template<> inline const mindspore::schema::LshProjection *Primitive::value_as<mindspore::schema::LshProjection>() const {
1572   return value_as_LshProjection();
1573 }
1574 
1575 template<> inline const mindspore::schema::LSTM *Primitive::value_as<mindspore::schema::LSTM>() const {
1576   return value_as_LSTM();
1577 }
1578 
1579 template<> inline const mindspore::schema::L2NormalizeFusion *Primitive::value_as<mindspore::schema::L2NormalizeFusion>() const {
1580   return value_as_L2NormalizeFusion();
1581 }
1582 
1583 template<> inline const mindspore::schema::MatMulFusion *Primitive::value_as<mindspore::schema::MatMulFusion>() const {
1584   return value_as_MatMulFusion();
1585 }
1586 
1587 template<> inline const mindspore::schema::Maximum *Primitive::value_as<mindspore::schema::Maximum>() const {
1588   return value_as_Maximum();
1589 }
1590 
1591 template<> inline const mindspore::schema::MaximumGrad *Primitive::value_as<mindspore::schema::MaximumGrad>() const {
1592   return value_as_MaximumGrad();
1593 }
1594 
1595 template<> inline const mindspore::schema::MaxPoolFusion *Primitive::value_as<mindspore::schema::MaxPoolFusion>() const {
1596   return value_as_MaxPoolFusion();
1597 }
1598 
1599 template<> inline const mindspore::schema::MaxPoolGrad *Primitive::value_as<mindspore::schema::MaxPoolGrad>() const {
1600   return value_as_MaxPoolGrad();
1601 }
1602 
1603 template<> inline const mindspore::schema::Merge *Primitive::value_as<mindspore::schema::Merge>() const {
1604   return value_as_Merge();
1605 }
1606 
1607 template<> inline const mindspore::schema::Mfcc *Primitive::value_as<mindspore::schema::Mfcc>() const {
1608   return value_as_Mfcc();
1609 }
1610 
1611 template<> inline const mindspore::schema::Minimum *Primitive::value_as<mindspore::schema::Minimum>() const {
1612   return value_as_Minimum();
1613 }
1614 
1615 template<> inline const mindspore::schema::MinimumGrad *Primitive::value_as<mindspore::schema::MinimumGrad>() const {
1616   return value_as_MinimumGrad();
1617 }
1618 
1619 template<> inline const mindspore::schema::Mod *Primitive::value_as<mindspore::schema::Mod>() const {
1620   return value_as_Mod();
1621 }
1622 
1623 template<> inline const mindspore::schema::MulFusion *Primitive::value_as<mindspore::schema::MulFusion>() const {
1624   return value_as_MulFusion();
1625 }
1626 
1627 template<> inline const mindspore::schema::MulGrad *Primitive::value_as<mindspore::schema::MulGrad>() const {
1628   return value_as_MulGrad();
1629 }
1630 
1631 template<> inline const mindspore::schema::Neg *Primitive::value_as<mindspore::schema::Neg>() const {
1632   return value_as_Neg();
1633 }
1634 
1635 template<> inline const mindspore::schema::NegGrad *Primitive::value_as<mindspore::schema::NegGrad>() const {
1636   return value_as_NegGrad();
1637 }
1638 
1639 template<> inline const mindspore::schema::NotEqual *Primitive::value_as<mindspore::schema::NotEqual>() const {
1640   return value_as_NotEqual();
1641 }
1642 
1643 template<> inline const mindspore::schema::NonMaxSuppression *Primitive::value_as<mindspore::schema::NonMaxSuppression>() const {
1644   return value_as_NonMaxSuppression();
1645 }
1646 
1647 template<> inline const mindspore::schema::OneHot *Primitive::value_as<mindspore::schema::OneHot>() const {
1648   return value_as_OneHot();
1649 }
1650 
1651 template<> inline const mindspore::schema::OnesLike *Primitive::value_as<mindspore::schema::OnesLike>() const {
1652   return value_as_OnesLike();
1653 }
1654 
1655 template<> inline const mindspore::schema::PadFusion *Primitive::value_as<mindspore::schema::PadFusion>() const {
1656   return value_as_PadFusion();
1657 }
1658 
1659 template<> inline const mindspore::schema::PartialFusion *Primitive::value_as<mindspore::schema::PartialFusion>() const {
1660   return value_as_PartialFusion();
1661 }
1662 
1663 template<> inline const mindspore::schema::PowerGrad *Primitive::value_as<mindspore::schema::PowerGrad>() const {
1664   return value_as_PowerGrad();
1665 }
1666 
1667 template<> inline const mindspore::schema::PowFusion *Primitive::value_as<mindspore::schema::PowFusion>() const {
1668   return value_as_PowFusion();
1669 }
1670 
1671 template<> inline const mindspore::schema::PriorBox *Primitive::value_as<mindspore::schema::PriorBox>() const {
1672   return value_as_PriorBox();
1673 }
1674 
1675 template<> inline const mindspore::schema::PReLUFusion *Primitive::value_as<mindspore::schema::PReLUFusion>() const {
1676   return value_as_PReLUFusion();
1677 }
1678 
1679 template<> inline const mindspore::schema::QuantDTypeCast *Primitive::value_as<mindspore::schema::QuantDTypeCast>() const {
1680   return value_as_QuantDTypeCast();
1681 }
1682 
1683 template<> inline const mindspore::schema::Rank *Primitive::value_as<mindspore::schema::Rank>() const {
1684   return value_as_Rank();
1685 }
1686 
1687 template<> inline const mindspore::schema::Range *Primitive::value_as<mindspore::schema::Range>() const {
1688   return value_as_Range();
1689 }
1690 
1691 template<> inline const mindspore::schema::Reciprocal *Primitive::value_as<mindspore::schema::Reciprocal>() const {
1692   return value_as_Reciprocal();
1693 }
1694 
1695 template<> inline const mindspore::schema::RealDiv *Primitive::value_as<mindspore::schema::RealDiv>() const {
1696   return value_as_RealDiv();
1697 }
1698 
1699 template<> inline const mindspore::schema::ReduceFusion *Primitive::value_as<mindspore::schema::ReduceFusion>() const {
1700   return value_as_ReduceFusion();
1701 }
1702 
1703 template<> inline const mindspore::schema::Reshape *Primitive::value_as<mindspore::schema::Reshape>() const {
1704   return value_as_Reshape();
1705 }
1706 
1707 template<> inline const mindspore::schema::Resize *Primitive::value_as<mindspore::schema::Resize>() const {
1708   return value_as_Resize();
1709 }
1710 
1711 template<> inline const mindspore::schema::ReverseSequence *Primitive::value_as<mindspore::schema::ReverseSequence>() const {
1712   return value_as_ReverseSequence();
1713 }
1714 
1715 template<> inline const mindspore::schema::ReverseV2 *Primitive::value_as<mindspore::schema::ReverseV2>() const {
1716   return value_as_ReverseV2();
1717 }
1718 
1719 template<> inline const mindspore::schema::Rfft *Primitive::value_as<mindspore::schema::Rfft>() const {
1720   return value_as_Rfft();
1721 }
1722 
1723 template<> inline const mindspore::schema::ROIPooling *Primitive::value_as<mindspore::schema::ROIPooling>() const {
1724   return value_as_ROIPooling();
1725 }
1726 
1727 template<> inline const mindspore::schema::Round *Primitive::value_as<mindspore::schema::Round>() const {
1728   return value_as_Round();
1729 }
1730 
1731 template<> inline const mindspore::schema::Rsqrt *Primitive::value_as<mindspore::schema::Rsqrt>() const {
1732   return value_as_Rsqrt();
1733 }
1734 
1735 template<> inline const mindspore::schema::ScaleFusion *Primitive::value_as<mindspore::schema::ScaleFusion>() const {
1736   return value_as_ScaleFusion();
1737 }
1738 
1739 template<> inline const mindspore::schema::ScatterNd *Primitive::value_as<mindspore::schema::ScatterNd>() const {
1740   return value_as_ScatterNd();
1741 }
1742 
1743 template<> inline const mindspore::schema::SGD *Primitive::value_as<mindspore::schema::SGD>() const {
1744   return value_as_SGD();
1745 }
1746 
1747 template<> inline const mindspore::schema::Shape *Primitive::value_as<mindspore::schema::Shape>() const {
1748   return value_as_Shape();
1749 }
1750 
1751 template<> inline const mindspore::schema::SigmoidCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SigmoidCrossEntropyWithLogits>() const {
1752   return value_as_SigmoidCrossEntropyWithLogits();
1753 }
1754 
1755 template<> inline const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *Primitive::value_as<mindspore::schema::SigmoidCrossEntropyWithLogitsGrad>() const {
1756   return value_as_SigmoidCrossEntropyWithLogitsGrad();
1757 }
1758 
1759 template<> inline const mindspore::schema::Sin *Primitive::value_as<mindspore::schema::Sin>() const {
1760   return value_as_Sin();
1761 }
1762 
1763 template<> inline const mindspore::schema::SkipGram *Primitive::value_as<mindspore::schema::SkipGram>() const {
1764   return value_as_SkipGram();
1765 }
1766 
1767 template<> inline const mindspore::schema::SliceFusion *Primitive::value_as<mindspore::schema::SliceFusion>() const {
1768   return value_as_SliceFusion();
1769 }
1770 
1771 template<> inline const mindspore::schema::SmoothL1Loss *Primitive::value_as<mindspore::schema::SmoothL1Loss>() const {
1772   return value_as_SmoothL1Loss();
1773 }
1774 
1775 template<> inline const mindspore::schema::SmoothL1LossGrad *Primitive::value_as<mindspore::schema::SmoothL1LossGrad>() const {
1776   return value_as_SmoothL1LossGrad();
1777 }
1778 
1779 template<> inline const mindspore::schema::Softmax *Primitive::value_as<mindspore::schema::Softmax>() const {
1780   return value_as_Softmax();
1781 }
1782 
1783 template<> inline const mindspore::schema::SoftmaxCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SoftmaxCrossEntropyWithLogits>() const {
1784   return value_as_SoftmaxCrossEntropyWithLogits();
1785 }
1786 
1787 template<> inline const mindspore::schema::SpaceToBatch *Primitive::value_as<mindspore::schema::SpaceToBatch>() const {
1788   return value_as_SpaceToBatch();
1789 }
1790 
1791 template<> inline const mindspore::schema::SpaceToBatchND *Primitive::value_as<mindspore::schema::SpaceToBatchND>() const {
1792   return value_as_SpaceToBatchND();
1793 }
1794 
1795 template<> inline const mindspore::schema::SpaceToDepth *Primitive::value_as<mindspore::schema::SpaceToDepth>() const {
1796   return value_as_SpaceToDepth();
1797 }
1798 
1799 template<> inline const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SparseSoftmaxCrossEntropyWithLogits>() const {
1800   return value_as_SparseSoftmaxCrossEntropyWithLogits();
1801 }
1802 
1803 template<> inline const mindspore::schema::SparseToDense *Primitive::value_as<mindspore::schema::SparseToDense>() const {
1804   return value_as_SparseToDense();
1805 }
1806 
1807 template<> inline const mindspore::schema::Split *Primitive::value_as<mindspore::schema::Split>() const {
1808   return value_as_Split();
1809 }
1810 
1811 template<> inline const mindspore::schema::Sqrt *Primitive::value_as<mindspore::schema::Sqrt>() const {
1812   return value_as_Sqrt();
1813 }
1814 
1815 template<> inline const mindspore::schema::Squeeze *Primitive::value_as<mindspore::schema::Squeeze>() const {
1816   return value_as_Squeeze();
1817 }
1818 
1819 template<> inline const mindspore::schema::Square *Primitive::value_as<mindspore::schema::Square>() const {
1820   return value_as_Square();
1821 }
1822 
1823 template<> inline const mindspore::schema::SquaredDifference *Primitive::value_as<mindspore::schema::SquaredDifference>() const {
1824   return value_as_SquaredDifference();
1825 }
1826 
1827 template<> inline const mindspore::schema::Stack *Primitive::value_as<mindspore::schema::Stack>() const {
1828   return value_as_Stack();
1829 }
1830 
1831 template<> inline const mindspore::schema::StridedSlice *Primitive::value_as<mindspore::schema::StridedSlice>() const {
1832   return value_as_StridedSlice();
1833 }
1834 
1835 template<> inline const mindspore::schema::SubFusion *Primitive::value_as<mindspore::schema::SubFusion>() const {
1836   return value_as_SubFusion();
1837 }
1838 
1839 template<> inline const mindspore::schema::SubGrad *Primitive::value_as<mindspore::schema::SubGrad>() const {
1840   return value_as_SubGrad();
1841 }
1842 
1843 template<> inline const mindspore::schema::Switch *Primitive::value_as<mindspore::schema::Switch>() const {
1844   return value_as_Switch();
1845 }
1846 
1847 template<> inline const mindspore::schema::TensorListFromTensor *Primitive::value_as<mindspore::schema::TensorListFromTensor>() const {
1848   return value_as_TensorListFromTensor();
1849 }
1850 
1851 template<> inline const mindspore::schema::TensorListGetItem *Primitive::value_as<mindspore::schema::TensorListGetItem>() const {
1852   return value_as_TensorListGetItem();
1853 }
1854 
1855 template<> inline const mindspore::schema::TensorListReserve *Primitive::value_as<mindspore::schema::TensorListReserve>() const {
1856   return value_as_TensorListReserve();
1857 }
1858 
1859 template<> inline const mindspore::schema::TensorListSetItem *Primitive::value_as<mindspore::schema::TensorListSetItem>() const {
1860   return value_as_TensorListSetItem();
1861 }
1862 
1863 template<> inline const mindspore::schema::TensorListStack *Primitive::value_as<mindspore::schema::TensorListStack>() const {
1864   return value_as_TensorListStack();
1865 }
1866 
1867 template<> inline const mindspore::schema::TileFusion *Primitive::value_as<mindspore::schema::TileFusion>() const {
1868   return value_as_TileFusion();
1869 }
1870 
1871 template<> inline const mindspore::schema::TopKFusion *Primitive::value_as<mindspore::schema::TopKFusion>() const {
1872   return value_as_TopKFusion();
1873 }
1874 
1875 template<> inline const mindspore::schema::Transpose *Primitive::value_as<mindspore::schema::Transpose>() const {
1876   return value_as_Transpose();
1877 }
1878 
1879 template<> inline const mindspore::schema::Unique *Primitive::value_as<mindspore::schema::Unique>() const {
1880   return value_as_Unique();
1881 }
1882 
1883 template<> inline const mindspore::schema::UnsortedSegmentSum *Primitive::value_as<mindspore::schema::UnsortedSegmentSum>() const {
1884   return value_as_UnsortedSegmentSum();
1885 }
1886 
1887 template<> inline const mindspore::schema::Unsqueeze *Primitive::value_as<mindspore::schema::Unsqueeze>() const {
1888   return value_as_Unsqueeze();
1889 }
1890 
1891 template<> inline const mindspore::schema::Unstack *Primitive::value_as<mindspore::schema::Unstack>() const {
1892   return value_as_Unstack();
1893 }
1894 
1895 template<> inline const mindspore::schema::LSTMGrad *Primitive::value_as<mindspore::schema::LSTMGrad>() const {
1896   return value_as_LSTMGrad();
1897 }
1898 
1899 template<> inline const mindspore::schema::Where *Primitive::value_as<mindspore::schema::Where>() const {
1900   return value_as_Where();
1901 }
1902 
1903 template<> inline const mindspore::schema::ZerosLike *Primitive::value_as<mindspore::schema::ZerosLike>() const {
1904   return value_as_ZerosLike();
1905 }
1906 
1907 template<> inline const mindspore::schema::Select *Primitive::value_as<mindspore::schema::Select>() const {
1908   return value_as_Select();
1909 }
1910 
1911 template<> inline const mindspore::schema::ScatterNdUpdate *Primitive::value_as<mindspore::schema::ScatterNdUpdate>() const {
1912   return value_as_ScatterNdUpdate();
1913 }
1914 
1915 template<> inline const mindspore::schema::GRU *Primitive::value_as<mindspore::schema::GRU>() const {
1916   return value_as_GRU();
1917 }
1918 
1919 template<> inline const mindspore::schema::NonZero *Primitive::value_as<mindspore::schema::NonZero>() const {
1920   return value_as_NonZero();
1921 }
1922 
1923 template<> inline const mindspore::schema::InvertPermutation *Primitive::value_as<mindspore::schema::InvertPermutation>() const {
1924   return value_as_InvertPermutation();
1925 }
1926 
1927 template<> inline const mindspore::schema::Size *Primitive::value_as<mindspore::schema::Size>() const {
1928   return value_as_Size();
1929 }
1930 
1931 template<> inline const mindspore::schema::RandomStandardNormal *Primitive::value_as<mindspore::schema::RandomStandardNormal>() const {
1932   return value_as_RandomStandardNormal();
1933 }
1934 
1935 template<> inline const mindspore::schema::CropAndResize *Primitive::value_as<mindspore::schema::CropAndResize>() const {
1936   return value_as_CropAndResize();
1937 }
1938 
1939 template<> inline const mindspore::schema::Erf *Primitive::value_as<mindspore::schema::Erf>() const {
1940   return value_as_Erf();
1941 }
1942 
1943 template<> inline const mindspore::schema::StridedSliceGrad *Primitive::value_as<mindspore::schema::StridedSliceGrad>() const {
1944   return value_as_StridedSliceGrad();
1945 }
1946 
1947 template<> inline const mindspore::schema::IsFinite *Primitive::value_as<mindspore::schema::IsFinite>() const {
1948   return value_as_IsFinite();
1949 }
1950 
1951 template<> inline const mindspore::schema::LinSpace *Primitive::value_as<mindspore::schema::LinSpace>() const {
1952   return value_as_LinSpace();
1953 }
1954 
1955 template<> inline const mindspore::schema::UniformReal *Primitive::value_as<mindspore::schema::UniformReal>() const {
1956   return value_as_UniformReal();
1957 }
1958 
1959 template<> inline const mindspore::schema::AbsGrad *Primitive::value_as<mindspore::schema::AbsGrad>() const {
1960   return value_as_AbsGrad();
1961 }
1962 
1963 template<> inline const mindspore::schema::RsqrtGrad *Primitive::value_as<mindspore::schema::RsqrtGrad>() const {
1964   return value_as_RsqrtGrad();
1965 }
1966 
1967 template<> inline const mindspore::schema::SqrtGrad *Primitive::value_as<mindspore::schema::SqrtGrad>() const {
1968   return value_as_SqrtGrad();
1969 }
1970 
1971 template<> inline const mindspore::schema::LayerNormGrad *Primitive::value_as<mindspore::schema::LayerNormGrad>() const {
1972   return value_as_LayerNormGrad();
1973 }
1974 
1975 template<> inline const mindspore::schema::ResizeGrad *Primitive::value_as<mindspore::schema::ResizeGrad>() const {
1976   return value_as_ResizeGrad();
1977 }
1978 
1979 template<> inline const mindspore::schema::Splice *Primitive::value_as<mindspore::schema::Splice>() const {
1980   return value_as_Splice();
1981 }
1982 
1983 template<> inline const mindspore::schema::LogSoftmax *Primitive::value_as<mindspore::schema::LogSoftmax>() const {
1984   return value_as_LogSoftmax();
1985 }
1986 
1987 template<> inline const mindspore::schema::Call *Primitive::value_as<mindspore::schema::Call>() const {
1988   return value_as_Call();
1989 }
1990 
1991 template<> inline const mindspore::schema::Custom *Primitive::value_as<mindspore::schema::Custom>() const {
1992   return value_as_Custom();
1993 }
1994 
1995 template<> inline const mindspore::schema::CumSum *Primitive::value_as<mindspore::schema::CumSum>() const {
1996   return value_as_CumSum();
1997 }
1998 
1999 template<> inline const mindspore::schema::SplitWithOverlap *Primitive::value_as<mindspore::schema::SplitWithOverlap>() const {
2000   return value_as_SplitWithOverlap();
2001 }
2002 
2003 template<> inline const mindspore::schema::GenOP *Primitive::value_as<mindspore::schema::GenOP>() const {
2004   return value_as_GenOP();
2005 }
2006 
2007 template<> inline const mindspore::schema::RaggedRange *Primitive::value_as<mindspore::schema::RaggedRange>() const {
2008   return value_as_RaggedRange();
2009 }
2010 
2011 template<> inline const mindspore::schema::GLU *Primitive::value_as<mindspore::schema::GLU>() const {
2012   return value_as_GLU();
2013 }
2014 
2015 template<> inline const mindspore::schema::TensorArray *Primitive::value_as<mindspore::schema::TensorArray>() const {
2016   return value_as_TensorArray();
2017 }
2018 
2019 template<> inline const mindspore::schema::TensorArrayRead *Primitive::value_as<mindspore::schema::TensorArrayRead>() const {
2020   return value_as_TensorArrayRead();
2021 }
2022 
2023 template<> inline const mindspore::schema::TensorArrayWrite *Primitive::value_as<mindspore::schema::TensorArrayWrite>() const {
2024   return value_as_TensorArrayWrite();
2025 }
2026 
2027 template<> inline const mindspore::schema::Affine *Primitive::value_as<mindspore::schema::Affine>() const {
2028   return value_as_Affine();
2029 }
2030 
2031 struct PrimitiveBuilder {
2032   typedef Primitive Table;
2033   flatbuffers::FlatBufferBuilder &fbb_;
2034   flatbuffers::uoffset_t start_;
add_value_typePrimitiveBuilder2035   void add_value_type(mindspore::schema::PrimitiveType value_type) {
2036     fbb_.AddElement<uint8_t>(Primitive::VT_VALUE_TYPE, static_cast<uint8_t>(value_type), 0);
2037   }
add_valuePrimitiveBuilder2038   void add_value(flatbuffers::Offset<void> value) {
2039     fbb_.AddOffset(Primitive::VT_VALUE, value);
2040   }
PrimitiveBuilderPrimitiveBuilder2041   explicit PrimitiveBuilder(flatbuffers::FlatBufferBuilder &_fbb)
2042         : fbb_(_fbb) {
2043     start_ = fbb_.StartTable();
2044   }
FinishPrimitiveBuilder2045   flatbuffers::Offset<Primitive> Finish() {
2046     const auto end = fbb_.EndTable(start_);
2047     auto o = flatbuffers::Offset<Primitive>(end);
2048     return o;
2049   }
2050 };
2051 
2052 inline flatbuffers::Offset<Primitive> CreatePrimitive(
2053     flatbuffers::FlatBufferBuilder &_fbb,
2054     mindspore::schema::PrimitiveType value_type = mindspore::schema::PrimitiveType_NONE,
2055     flatbuffers::Offset<void> value = 0) {
2056   PrimitiveBuilder builder_(_fbb);
2057   builder_.add_value(value);
2058   builder_.add_value_type(value_type);
2059   return builder_.Finish();
2060 }
2061 
2062 flatbuffers::Offset<Primitive> CreatePrimitive(flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2063 
2064 struct CNodeT : public flatbuffers::NativeTable {
2065   typedef CNode TableType;
2066   std::string name{};
2067   std::unique_ptr<mindspore::schema::PrimitiveT> primitive{};
2068   std::vector<uint32_t> inputIndex{};
2069   std::vector<uint32_t> outputIndex{};
2070   mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE;
2071   int32_t deviceType = -1;
2072 };
2073 
2074 struct CNode FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
2075   typedef CNodeT NativeTableType;
2076   typedef CNodeBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2077   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
2078     return CNodeTypeTable();
2079   }
2080   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2081     VT_NAME = 4,
2082     VT_PRIMITIVE = 8,
2083     VT_INPUTINDEX = 10,
2084     VT_OUTPUTINDEX = 12,
2085     VT_QUANTTYPE = 14,
2086     VT_DEVICETYPE = 16
2087   };
nameFLATBUFFERS_FINAL_CLASS2088   const flatbuffers::String *name() const {
2089     return GetPointer<const flatbuffers::String *>(VT_NAME);
2090   }
mutable_nameFLATBUFFERS_FINAL_CLASS2091   flatbuffers::String *mutable_name() {
2092     return GetPointer<flatbuffers::String *>(VT_NAME);
2093   }
primitiveFLATBUFFERS_FINAL_CLASS2094   const mindspore::schema::Primitive *primitive() const {
2095     return GetPointer<const mindspore::schema::Primitive *>(VT_PRIMITIVE);
2096   }
mutable_primitiveFLATBUFFERS_FINAL_CLASS2097   mindspore::schema::Primitive *mutable_primitive() {
2098     return GetPointer<mindspore::schema::Primitive *>(VT_PRIMITIVE);
2099   }
inputIndexFLATBUFFERS_FINAL_CLASS2100   const flatbuffers::Vector<uint32_t> *inputIndex() const {
2101     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2102   }
mutable_inputIndexFLATBUFFERS_FINAL_CLASS2103   flatbuffers::Vector<uint32_t> *mutable_inputIndex() {
2104     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2105   }
outputIndexFLATBUFFERS_FINAL_CLASS2106   const flatbuffers::Vector<uint32_t> *outputIndex() const {
2107     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2108   }
mutable_outputIndexFLATBUFFERS_FINAL_CLASS2109   flatbuffers::Vector<uint32_t> *mutable_outputIndex() {
2110     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2111   }
quantTypeFLATBUFFERS_FINAL_CLASS2112   mindspore::schema::QuantType quantType() const {
2113     return static_cast<mindspore::schema::QuantType>(GetField<int32_t>(VT_QUANTTYPE, 0));
2114   }
mutate_quantTypeFLATBUFFERS_FINAL_CLASS2115   bool mutate_quantType(mindspore::schema::QuantType _quantType) {
2116     return SetField<int32_t>(VT_QUANTTYPE, static_cast<int32_t>(_quantType), 0);
2117   }
deviceTypeFLATBUFFERS_FINAL_CLASS2118   int32_t deviceType() const {
2119     return GetField<int32_t>(VT_DEVICETYPE, -1);
2120   }
mutate_deviceTypeFLATBUFFERS_FINAL_CLASS2121   bool mutate_deviceType(int32_t _deviceType) {
2122     return SetField<int32_t>(VT_DEVICETYPE, _deviceType, -1);
2123   }
VerifyFLATBUFFERS_FINAL_CLASS2124   bool Verify(flatbuffers::Verifier &verifier) const {
2125     return VerifyTableStart(verifier) &&
2126            VerifyOffset(verifier, VT_NAME) &&
2127            verifier.VerifyString(name()) &&
2128            VerifyOffset(verifier, VT_PRIMITIVE) &&
2129            verifier.VerifyTable(primitive()) &&
2130            VerifyOffset(verifier, VT_INPUTINDEX) &&
2131            verifier.VerifyVector(inputIndex()) &&
2132            VerifyOffset(verifier, VT_OUTPUTINDEX) &&
2133            verifier.VerifyVector(outputIndex()) &&
2134            VerifyField<int32_t>(verifier, VT_QUANTTYPE) &&
2135            VerifyField<int32_t>(verifier, VT_DEVICETYPE) &&
2136            verifier.EndTable();
2137   }
2138   CNodeT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2139   void UnPackTo(CNodeT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2140   static flatbuffers::Offset<CNode> Pack(flatbuffers::FlatBufferBuilder &_fbb, const CNodeT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2141 };
2142 
2143 struct CNodeBuilder {
2144   typedef CNode Table;
2145   flatbuffers::FlatBufferBuilder &fbb_;
2146   flatbuffers::uoffset_t start_;
add_nameCNodeBuilder2147   void add_name(flatbuffers::Offset<flatbuffers::String> name) {
2148     fbb_.AddOffset(CNode::VT_NAME, name);
2149   }
add_primitiveCNodeBuilder2150   void add_primitive(flatbuffers::Offset<mindspore::schema::Primitive> primitive) {
2151     fbb_.AddOffset(CNode::VT_PRIMITIVE, primitive);
2152   }
add_inputIndexCNodeBuilder2153   void add_inputIndex(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndex) {
2154     fbb_.AddOffset(CNode::VT_INPUTINDEX, inputIndex);
2155   }
add_outputIndexCNodeBuilder2156   void add_outputIndex(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndex) {
2157     fbb_.AddOffset(CNode::VT_OUTPUTINDEX, outputIndex);
2158   }
add_quantTypeCNodeBuilder2159   void add_quantType(mindspore::schema::QuantType quantType) {
2160     fbb_.AddElement<int32_t>(CNode::VT_QUANTTYPE, static_cast<int32_t>(quantType), 0);
2161   }
add_deviceTypeCNodeBuilder2162   void add_deviceType(int32_t deviceType) {
2163     fbb_.AddElement<int32_t>(CNode::VT_DEVICETYPE, deviceType, -1);
2164   }
CNodeBuilderCNodeBuilder2165   explicit CNodeBuilder(flatbuffers::FlatBufferBuilder &_fbb)
2166         : fbb_(_fbb) {
2167     start_ = fbb_.StartTable();
2168   }
FinishCNodeBuilder2169   flatbuffers::Offset<CNode> Finish() {
2170     const auto end = fbb_.EndTable(start_);
2171     auto o = flatbuffers::Offset<CNode>(end);
2172     return o;
2173   }
2174 };
2175 
2176 inline flatbuffers::Offset<CNode> CreateCNode(
2177     flatbuffers::FlatBufferBuilder &_fbb,
2178     flatbuffers::Offset<flatbuffers::String> name = 0,
2179     flatbuffers::Offset<mindspore::schema::Primitive> primitive = 0,
2180     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndex = 0,
2181     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndex = 0,
2182     mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE,
2183     int32_t deviceType = -1) {
2184   CNodeBuilder builder_(_fbb);
2185   builder_.add_deviceType(deviceType);
2186   builder_.add_quantType(quantType);
2187   builder_.add_outputIndex(outputIndex);
2188   builder_.add_inputIndex(inputIndex);
2189   builder_.add_primitive(primitive);
2190   builder_.add_name(name);
2191   return builder_.Finish();
2192 }
2193 
2194 inline flatbuffers::Offset<CNode> CreateCNodeDirect(
2195     flatbuffers::FlatBufferBuilder &_fbb,
2196     const char *name = nullptr,
2197     flatbuffers::Offset<mindspore::schema::Primitive> primitive = 0,
2198     const std::vector<uint32_t> *inputIndex = nullptr,
2199     const std::vector<uint32_t> *outputIndex = nullptr,
2200     mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE,
2201     int32_t deviceType = -1) {
2202   auto name__ = name ? _fbb.CreateString(name) : 0;
2203   auto inputIndex__ = inputIndex ? _fbb.CreateVector<uint32_t>(*inputIndex) : 0;
2204   auto outputIndex__ = outputIndex ? _fbb.CreateVector<uint32_t>(*outputIndex) : 0;
2205   return mindspore::schema::CreateCNode(
2206       _fbb,
2207       name__,
2208       primitive,
2209       inputIndex__,
2210       outputIndex__,
2211       quantType,
2212       deviceType);
2213 }
2214 
2215 flatbuffers::Offset<CNode> CreateCNode(flatbuffers::FlatBufferBuilder &_fbb, const CNodeT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2216 
2217 struct SubGraphT : public flatbuffers::NativeTable {
2218   typedef SubGraph TableType;
2219   std::string name{};
2220   std::vector<uint32_t> inputIndices{};
2221   std::vector<uint32_t> outputIndices{};
2222   std::vector<uint32_t> nodeIndices{};
2223   std::vector<uint32_t> tensorIndices{};
2224 };
2225 
2226 struct SubGraph FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
2227   typedef SubGraphT NativeTableType;
2228   typedef SubGraphBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2229   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
2230     return SubGraphTypeTable();
2231   }
2232   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2233     VT_NAME = 4,
2234     VT_INPUTINDICES = 6,
2235     VT_OUTPUTINDICES = 8,
2236     VT_NODEINDICES = 10,
2237     VT_TENSORINDICES = 12
2238   };
nameFLATBUFFERS_FINAL_CLASS2239   const flatbuffers::String *name() const {
2240     return GetPointer<const flatbuffers::String *>(VT_NAME);
2241   }
mutable_nameFLATBUFFERS_FINAL_CLASS2242   flatbuffers::String *mutable_name() {
2243     return GetPointer<flatbuffers::String *>(VT_NAME);
2244   }
inputIndicesFLATBUFFERS_FINAL_CLASS2245   const flatbuffers::Vector<uint32_t> *inputIndices() const {
2246     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_INPUTINDICES);
2247   }
mutable_inputIndicesFLATBUFFERS_FINAL_CLASS2248   flatbuffers::Vector<uint32_t> *mutable_inputIndices() {
2249     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_INPUTINDICES);
2250   }
outputIndicesFLATBUFFERS_FINAL_CLASS2251   const flatbuffers::Vector<uint32_t> *outputIndices() const {
2252     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDICES);
2253   }
mutable_outputIndicesFLATBUFFERS_FINAL_CLASS2254   flatbuffers::Vector<uint32_t> *mutable_outputIndices() {
2255     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDICES);
2256   }
nodeIndicesFLATBUFFERS_FINAL_CLASS2257   const flatbuffers::Vector<uint32_t> *nodeIndices() const {
2258     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_NODEINDICES);
2259   }
mutable_nodeIndicesFLATBUFFERS_FINAL_CLASS2260   flatbuffers::Vector<uint32_t> *mutable_nodeIndices() {
2261     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_NODEINDICES);
2262   }
tensorIndicesFLATBUFFERS_FINAL_CLASS2263   const flatbuffers::Vector<uint32_t> *tensorIndices() const {
2264     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_TENSORINDICES);
2265   }
mutable_tensorIndicesFLATBUFFERS_FINAL_CLASS2266   flatbuffers::Vector<uint32_t> *mutable_tensorIndices() {
2267     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_TENSORINDICES);
2268   }
VerifyFLATBUFFERS_FINAL_CLASS2269   bool Verify(flatbuffers::Verifier &verifier) const {
2270     return VerifyTableStart(verifier) &&
2271            VerifyOffset(verifier, VT_NAME) &&
2272            verifier.VerifyString(name()) &&
2273            VerifyOffset(verifier, VT_INPUTINDICES) &&
2274            verifier.VerifyVector(inputIndices()) &&
2275            VerifyOffset(verifier, VT_OUTPUTINDICES) &&
2276            verifier.VerifyVector(outputIndices()) &&
2277            VerifyOffset(verifier, VT_NODEINDICES) &&
2278            verifier.VerifyVector(nodeIndices()) &&
2279            VerifyOffset(verifier, VT_TENSORINDICES) &&
2280            verifier.VerifyVector(tensorIndices()) &&
2281            verifier.EndTable();
2282   }
2283   SubGraphT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2284   void UnPackTo(SubGraphT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2285   static flatbuffers::Offset<SubGraph> Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2286 };
2287 
2288 struct SubGraphBuilder {
2289   typedef SubGraph Table;
2290   flatbuffers::FlatBufferBuilder &fbb_;
2291   flatbuffers::uoffset_t start_;
add_nameSubGraphBuilder2292   void add_name(flatbuffers::Offset<flatbuffers::String> name) {
2293     fbb_.AddOffset(SubGraph::VT_NAME, name);
2294   }
add_inputIndicesSubGraphBuilder2295   void add_inputIndices(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndices) {
2296     fbb_.AddOffset(SubGraph::VT_INPUTINDICES, inputIndices);
2297   }
add_outputIndicesSubGraphBuilder2298   void add_outputIndices(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndices) {
2299     fbb_.AddOffset(SubGraph::VT_OUTPUTINDICES, outputIndices);
2300   }
add_nodeIndicesSubGraphBuilder2301   void add_nodeIndices(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> nodeIndices) {
2302     fbb_.AddOffset(SubGraph::VT_NODEINDICES, nodeIndices);
2303   }
add_tensorIndicesSubGraphBuilder2304   void add_tensorIndices(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> tensorIndices) {
2305     fbb_.AddOffset(SubGraph::VT_TENSORINDICES, tensorIndices);
2306   }
SubGraphBuilderSubGraphBuilder2307   explicit SubGraphBuilder(flatbuffers::FlatBufferBuilder &_fbb)
2308         : fbb_(_fbb) {
2309     start_ = fbb_.StartTable();
2310   }
FinishSubGraphBuilder2311   flatbuffers::Offset<SubGraph> Finish() {
2312     const auto end = fbb_.EndTable(start_);
2313     auto o = flatbuffers::Offset<SubGraph>(end);
2314     return o;
2315   }
2316 };
2317 
2318 inline flatbuffers::Offset<SubGraph> CreateSubGraph(
2319     flatbuffers::FlatBufferBuilder &_fbb,
2320     flatbuffers::Offset<flatbuffers::String> name = 0,
2321     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndices = 0,
2322     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndices = 0,
2323     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> nodeIndices = 0,
2324     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> tensorIndices = 0) {
2325   SubGraphBuilder builder_(_fbb);
2326   builder_.add_tensorIndices(tensorIndices);
2327   builder_.add_nodeIndices(nodeIndices);
2328   builder_.add_outputIndices(outputIndices);
2329   builder_.add_inputIndices(inputIndices);
2330   builder_.add_name(name);
2331   return builder_.Finish();
2332 }
2333 
2334 inline flatbuffers::Offset<SubGraph> CreateSubGraphDirect(
2335     flatbuffers::FlatBufferBuilder &_fbb,
2336     const char *name = nullptr,
2337     const std::vector<uint32_t> *inputIndices = nullptr,
2338     const std::vector<uint32_t> *outputIndices = nullptr,
2339     const std::vector<uint32_t> *nodeIndices = nullptr,
2340     const std::vector<uint32_t> *tensorIndices = nullptr) {
2341   auto name__ = name ? _fbb.CreateString(name) : 0;
2342   auto inputIndices__ = inputIndices ? _fbb.CreateVector<uint32_t>(*inputIndices) : 0;
2343   auto outputIndices__ = outputIndices ? _fbb.CreateVector<uint32_t>(*outputIndices) : 0;
2344   auto nodeIndices__ = nodeIndices ? _fbb.CreateVector<uint32_t>(*nodeIndices) : 0;
2345   auto tensorIndices__ = tensorIndices ? _fbb.CreateVector<uint32_t>(*tensorIndices) : 0;
2346   return mindspore::schema::CreateSubGraph(
2347       _fbb,
2348       name__,
2349       inputIndices__,
2350       outputIndices__,
2351       nodeIndices__,
2352       tensorIndices__);
2353 }
2354 
2355 flatbuffers::Offset<SubGraph> CreateSubGraph(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2356 
2357 struct MetaGraphT : public flatbuffers::NativeTable {
2358   typedef MetaGraph TableType;
2359   std::string name{};
2360   std::string version{};
2361   int32_t fmkType = 0;
2362   std::vector<uint32_t> inputIndex{};
2363   std::vector<uint32_t> outputIndex{};
2364   uint32_t mempoolSize = 0;
2365   std::vector<std::unique_ptr<mindspore::schema::CNodeT>> nodes{};
2366   std::vector<std::unique_ptr<mindspore::schema::TensorT>> allTensors{};
2367   std::vector<std::unique_ptr<mindspore::schema::SubGraphT>> subGraph{};
2368   bool obfuscate = false;
2369   std::vector<uint8_t> obfMetaData{};
2370 };
2371 
2372 struct MetaGraph FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
2373   typedef MetaGraphT NativeTableType;
2374   typedef MetaGraphBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2375   static const flatbuffers::TypeTable *MiniReflectTypeTable() {
2376     return MetaGraphTypeTable();
2377   }
2378   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2379     VT_NAME = 4,
2380     VT_VERSION = 6,
2381     VT_FMKTYPE = 8,
2382     VT_INPUTINDEX = 10,
2383     VT_OUTPUTINDEX = 12,
2384     VT_MEMPOOLSIZE = 14,
2385     VT_NODES = 16,
2386     VT_ALLTENSORS = 18,
2387     VT_SUBGRAPH = 20,
2388     VT_OBFUSCATE = 22,
2389     VT_OBFMETADATA = 24
2390   };
nameFLATBUFFERS_FINAL_CLASS2391   const flatbuffers::String *name() const {
2392     return GetPointer<const flatbuffers::String *>(VT_NAME);
2393   }
mutable_nameFLATBUFFERS_FINAL_CLASS2394   flatbuffers::String *mutable_name() {
2395     return GetPointer<flatbuffers::String *>(VT_NAME);
2396   }
versionFLATBUFFERS_FINAL_CLASS2397   const flatbuffers::String *version() const {
2398     return GetPointer<const flatbuffers::String *>(VT_VERSION);
2399   }
mutable_versionFLATBUFFERS_FINAL_CLASS2400   flatbuffers::String *mutable_version() {
2401     return GetPointer<flatbuffers::String *>(VT_VERSION);
2402   }
fmkTypeFLATBUFFERS_FINAL_CLASS2403   int32_t fmkType() const {
2404     return GetField<int32_t>(VT_FMKTYPE, 0);
2405   }
mutate_fmkTypeFLATBUFFERS_FINAL_CLASS2406   bool mutate_fmkType(int32_t _fmkType) {
2407     return SetField<int32_t>(VT_FMKTYPE, _fmkType, 0);
2408   }
inputIndexFLATBUFFERS_FINAL_CLASS2409   const flatbuffers::Vector<uint32_t> *inputIndex() const {
2410     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2411   }
mutable_inputIndexFLATBUFFERS_FINAL_CLASS2412   flatbuffers::Vector<uint32_t> *mutable_inputIndex() {
2413     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2414   }
outputIndexFLATBUFFERS_FINAL_CLASS2415   const flatbuffers::Vector<uint32_t> *outputIndex() const {
2416     return GetPointer<const flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2417   }
mutable_outputIndexFLATBUFFERS_FINAL_CLASS2418   flatbuffers::Vector<uint32_t> *mutable_outputIndex() {
2419     return GetPointer<flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2420   }
mempoolSizeFLATBUFFERS_FINAL_CLASS2421   uint32_t mempoolSize() const {
2422     return GetField<uint32_t>(VT_MEMPOOLSIZE, 0);
2423   }
mutate_mempoolSizeFLATBUFFERS_FINAL_CLASS2424   bool mutate_mempoolSize(uint32_t _mempoolSize) {
2425     return SetField<uint32_t>(VT_MEMPOOLSIZE, _mempoolSize, 0);
2426   }
nodesFLATBUFFERS_FINAL_CLASS2427   const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>> *nodes() const {
2428     return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>> *>(VT_NODES);
2429   }
mutable_nodesFLATBUFFERS_FINAL_CLASS2430   flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>> *mutable_nodes() {
2431     return GetPointer<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>> *>(VT_NODES);
2432   }
allTensorsFLATBUFFERS_FINAL_CLASS2433   const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>> *allTensors() const {
2434     return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>> *>(VT_ALLTENSORS);
2435   }
mutable_allTensorsFLATBUFFERS_FINAL_CLASS2436   flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>> *mutable_allTensors() {
2437     return GetPointer<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>> *>(VT_ALLTENSORS);
2438   }
subGraphFLATBUFFERS_FINAL_CLASS2439   const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>> *subGraph() const {
2440     return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>> *>(VT_SUBGRAPH);
2441   }
mutable_subGraphFLATBUFFERS_FINAL_CLASS2442   flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>> *mutable_subGraph() {
2443     return GetPointer<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>> *>(VT_SUBGRAPH);
2444   }
obfuscateFLATBUFFERS_FINAL_CLASS2445   bool obfuscate() const {
2446     return GetField<uint8_t>(VT_OBFUSCATE, 0) != 0;
2447   }
mutate_obfuscateFLATBUFFERS_FINAL_CLASS2448   bool mutate_obfuscate(bool _obfuscate) {
2449     return SetField<uint8_t>(VT_OBFUSCATE, static_cast<uint8_t>(_obfuscate), 0);
2450   }
obfMetaDataFLATBUFFERS_FINAL_CLASS2451   const flatbuffers::Vector<uint8_t> *obfMetaData() const {
2452     return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_OBFMETADATA);
2453   }
mutable_obfMetaDataFLATBUFFERS_FINAL_CLASS2454   flatbuffers::Vector<uint8_t> *mutable_obfMetaData() {
2455     return GetPointer<flatbuffers::Vector<uint8_t> *>(VT_OBFMETADATA);
2456   }
VerifyFLATBUFFERS_FINAL_CLASS2457   bool Verify(flatbuffers::Verifier &verifier) const {
2458     return VerifyTableStart(verifier) &&
2459            VerifyOffset(verifier, VT_NAME) &&
2460            verifier.VerifyString(name()) &&
2461            VerifyOffset(verifier, VT_VERSION) &&
2462            verifier.VerifyString(version()) &&
2463            VerifyField<int32_t>(verifier, VT_FMKTYPE) &&
2464            VerifyOffset(verifier, VT_INPUTINDEX) &&
2465            verifier.VerifyVector(inputIndex()) &&
2466            VerifyOffset(verifier, VT_OUTPUTINDEX) &&
2467            verifier.VerifyVector(outputIndex()) &&
2468            VerifyField<uint32_t>(verifier, VT_MEMPOOLSIZE) &&
2469            VerifyOffset(verifier, VT_NODES) &&
2470            verifier.VerifyVector(nodes()) &&
2471            verifier.VerifyVectorOfTables(nodes()) &&
2472            VerifyOffset(verifier, VT_ALLTENSORS) &&
2473            verifier.VerifyVector(allTensors()) &&
2474            verifier.VerifyVectorOfTables(allTensors()) &&
2475            VerifyOffset(verifier, VT_SUBGRAPH) &&
2476            verifier.VerifyVector(subGraph()) &&
2477            verifier.VerifyVectorOfTables(subGraph()) &&
2478            VerifyField<uint8_t>(verifier, VT_OBFUSCATE) &&
2479            VerifyOffset(verifier, VT_OBFMETADATA) &&
2480            verifier.VerifyVector(obfMetaData()) &&
2481            verifier.EndTable();
2482   }
2483   MetaGraphT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2484   void UnPackTo(MetaGraphT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
2485   static flatbuffers::Offset<MetaGraph> Pack(flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2486 };
2487 
2488 struct MetaGraphBuilder {
2489   typedef MetaGraph Table;
2490   flatbuffers::FlatBufferBuilder &fbb_;
2491   flatbuffers::uoffset_t start_;
add_nameMetaGraphBuilder2492   void add_name(flatbuffers::Offset<flatbuffers::String> name) {
2493     fbb_.AddOffset(MetaGraph::VT_NAME, name);
2494   }
add_versionMetaGraphBuilder2495   void add_version(flatbuffers::Offset<flatbuffers::String> version) {
2496     fbb_.AddOffset(MetaGraph::VT_VERSION, version);
2497   }
add_fmkTypeMetaGraphBuilder2498   void add_fmkType(int32_t fmkType) {
2499     fbb_.AddElement<int32_t>(MetaGraph::VT_FMKTYPE, fmkType, 0);
2500   }
add_inputIndexMetaGraphBuilder2501   void add_inputIndex(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndex) {
2502     fbb_.AddOffset(MetaGraph::VT_INPUTINDEX, inputIndex);
2503   }
add_outputIndexMetaGraphBuilder2504   void add_outputIndex(flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndex) {
2505     fbb_.AddOffset(MetaGraph::VT_OUTPUTINDEX, outputIndex);
2506   }
add_mempoolSizeMetaGraphBuilder2507   void add_mempoolSize(uint32_t mempoolSize) {
2508     fbb_.AddElement<uint32_t>(MetaGraph::VT_MEMPOOLSIZE, mempoolSize, 0);
2509   }
add_nodesMetaGraphBuilder2510   void add_nodes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>>> nodes) {
2511     fbb_.AddOffset(MetaGraph::VT_NODES, nodes);
2512   }
add_allTensorsMetaGraphBuilder2513   void add_allTensors(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>>> allTensors) {
2514     fbb_.AddOffset(MetaGraph::VT_ALLTENSORS, allTensors);
2515   }
add_subGraphMetaGraphBuilder2516   void add_subGraph(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>>> subGraph) {
2517     fbb_.AddOffset(MetaGraph::VT_SUBGRAPH, subGraph);
2518   }
add_obfuscateMetaGraphBuilder2519   void add_obfuscate(bool obfuscate) {
2520     fbb_.AddElement<uint8_t>(MetaGraph::VT_OBFUSCATE, static_cast<uint8_t>(obfuscate), 0);
2521   }
add_obfMetaDataMetaGraphBuilder2522   void add_obfMetaData(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> obfMetaData) {
2523     fbb_.AddOffset(MetaGraph::VT_OBFMETADATA, obfMetaData);
2524   }
MetaGraphBuilderMetaGraphBuilder2525   explicit MetaGraphBuilder(flatbuffers::FlatBufferBuilder &_fbb)
2526         : fbb_(_fbb) {
2527     start_ = fbb_.StartTable();
2528   }
FinishMetaGraphBuilder2529   flatbuffers::Offset<MetaGraph> Finish() {
2530     const auto end = fbb_.EndTable(start_);
2531     auto o = flatbuffers::Offset<MetaGraph>(end);
2532     return o;
2533   }
2534 };
2535 
2536 inline flatbuffers::Offset<MetaGraph> CreateMetaGraph(
2537     flatbuffers::FlatBufferBuilder &_fbb,
2538     flatbuffers::Offset<flatbuffers::String> name = 0,
2539     flatbuffers::Offset<flatbuffers::String> version = 0,
2540     int32_t fmkType = 0,
2541     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> inputIndex = 0,
2542     flatbuffers::Offset<flatbuffers::Vector<uint32_t>> outputIndex = 0,
2543     uint32_t mempoolSize = 0,
2544     flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::CNode>>> nodes = 0,
2545     flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::Tensor>>> allTensors = 0,
2546     flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<mindspore::schema::SubGraph>>> subGraph = 0,
2547     bool obfuscate = false,
2548     flatbuffers::Offset<flatbuffers::Vector<uint8_t>> obfMetaData = 0) {
2549   MetaGraphBuilder builder_(_fbb);
2550   builder_.add_obfMetaData(obfMetaData);
2551   builder_.add_subGraph(subGraph);
2552   builder_.add_allTensors(allTensors);
2553   builder_.add_nodes(nodes);
2554   builder_.add_mempoolSize(mempoolSize);
2555   builder_.add_outputIndex(outputIndex);
2556   builder_.add_inputIndex(inputIndex);
2557   builder_.add_fmkType(fmkType);
2558   builder_.add_version(version);
2559   builder_.add_name(name);
2560   builder_.add_obfuscate(obfuscate);
2561   return builder_.Finish();
2562 }
2563 
2564 inline flatbuffers::Offset<MetaGraph> CreateMetaGraphDirect(
2565     flatbuffers::FlatBufferBuilder &_fbb,
2566     const char *name = nullptr,
2567     const char *version = nullptr,
2568     int32_t fmkType = 0,
2569     const std::vector<uint32_t> *inputIndex = nullptr,
2570     const std::vector<uint32_t> *outputIndex = nullptr,
2571     uint32_t mempoolSize = 0,
2572     const std::vector<flatbuffers::Offset<mindspore::schema::CNode>> *nodes = nullptr,
2573     const std::vector<flatbuffers::Offset<mindspore::schema::Tensor>> *allTensors = nullptr,
2574     const std::vector<flatbuffers::Offset<mindspore::schema::SubGraph>> *subGraph = nullptr,
2575     bool obfuscate = false,
2576     const std::vector<uint8_t> *obfMetaData = nullptr) {
2577   auto name__ = name ? _fbb.CreateString(name) : 0;
2578   auto version__ = version ? _fbb.CreateString(version) : 0;
2579   auto inputIndex__ = inputIndex ? _fbb.CreateVector<uint32_t>(*inputIndex) : 0;
2580   auto outputIndex__ = outputIndex ? _fbb.CreateVector<uint32_t>(*outputIndex) : 0;
2581   auto nodes__ = nodes ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::CNode>>(*nodes) : 0;
2582   auto allTensors__ = allTensors ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::Tensor>>(*allTensors) : 0;
2583   auto subGraph__ = subGraph ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::SubGraph>>(*subGraph) : 0;
2584   auto obfMetaData__ = obfMetaData ? _fbb.CreateVector<uint8_t>(*obfMetaData) : 0;
2585   return mindspore::schema::CreateMetaGraph(
2586       _fbb,
2587       name__,
2588       version__,
2589       fmkType,
2590       inputIndex__,
2591       outputIndex__,
2592       mempoolSize,
2593       nodes__,
2594       allTensors__,
2595       subGraph__,
2596       obfuscate,
2597       obfMetaData__);
2598 }
2599 
2600 flatbuffers::Offset<MetaGraph> CreateMetaGraph(flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2601 
UnPack(const flatbuffers::resolver_function_t * _resolver)2602 inline QuantParamT *QuantParam::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2603   auto _o = std::unique_ptr<QuantParamT>(new QuantParamT());
2604   UnPackTo(_o.get(), _resolver);
2605   return _o.release();
2606 }
2607 
UnPackTo(QuantParamT * _o,const flatbuffers::resolver_function_t * _resolver)2608 inline void QuantParam::UnPackTo(QuantParamT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2609   (void)_o;
2610   (void)_resolver;
2611   { auto _e = scale(); _o->scale = _e; }
2612   { auto _e = zeroPoint(); _o->zeroPoint = _e; }
2613   { auto _e = min(); _o->min = _e; }
2614   { auto _e = max(); _o->max = _e; }
2615   { auto _e = narrowRange(); _o->narrowRange = _e; }
2616   { auto _e = numBits(); _o->numBits = _e; }
2617   { auto _e = inited(); _o->inited = _e; }
2618   { auto _e = varCorr(); _o->varCorr = _e; }
2619   { auto _e = meanCorr(); _o->meanCorr = _e; }
2620   { auto _e = dstDtype(); _o->dstDtype = _e; }
2621   { auto _e = roundType(); _o->roundType = _e; }
2622   { auto _e = multiplier(); _o->multiplier = _e; }
2623 }
2624 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const QuantParamT * _o,const flatbuffers::rehasher_function_t * _rehasher)2625 inline flatbuffers::Offset<QuantParam> QuantParam::Pack(flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2626   return CreateQuantParam(_fbb, _o, _rehasher);
2627 }
2628 
CreateQuantParam(flatbuffers::FlatBufferBuilder & _fbb,const QuantParamT * _o,const flatbuffers::rehasher_function_t * _rehasher)2629 inline flatbuffers::Offset<QuantParam> CreateQuantParam(flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2630   (void)_rehasher;
2631   (void)_o;
2632   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const QuantParamT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2633   auto _scale = _o->scale;
2634   auto _zeroPoint = _o->zeroPoint;
2635   auto _min = _o->min;
2636   auto _max = _o->max;
2637   auto _narrowRange = _o->narrowRange;
2638   auto _numBits = _o->numBits;
2639   auto _inited = _o->inited;
2640   auto _varCorr = _o->varCorr;
2641   auto _meanCorr = _o->meanCorr;
2642   auto _dstDtype = _o->dstDtype;
2643   auto _roundType = _o->roundType;
2644   auto _multiplier = _o->multiplier;
2645   return mindspore::schema::CreateQuantParam(
2646       _fbb,
2647       _scale,
2648       _zeroPoint,
2649       _min,
2650       _max,
2651       _narrowRange,
2652       _numBits,
2653       _inited,
2654       _varCorr,
2655       _meanCorr,
2656       _dstDtype,
2657       _roundType,
2658       _multiplier);
2659 }
2660 
UnPack(const flatbuffers::resolver_function_t * _resolver)2661 inline TensorT *Tensor::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2662   auto _o = std::unique_ptr<TensorT>(new TensorT());
2663   UnPackTo(_o.get(), _resolver);
2664   return _o.release();
2665 }
2666 
UnPackTo(TensorT * _o,const flatbuffers::resolver_function_t * _resolver)2667 inline void Tensor::UnPackTo(TensorT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2668   (void)_o;
2669   (void)_resolver;
2670   { auto _e = nodeType(); _o->nodeType = _e; }
2671   { auto _e = dataType(); _o->dataType = _e; }
2672   { auto _e = dims(); if (_e) { _o->dims.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->dims[_i] = _e->Get(_i); } } }
2673   { auto _e = format(); _o->format = _e; }
2674   { auto _e = refCount(); _o->refCount = _e; }
2675   { auto _e = offset(); _o->offset = _e; }
2676   { auto _e = data(); if (_e) { _o->data.resize(_e->size()); std::copy(_e->begin(), _e->end(), _o->data.begin()); } }
2677   { auto _e = quantParams(); if (_e) { _o->quantParams.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->quantParams[_i] = std::unique_ptr<mindspore::schema::QuantParamT>(_e->Get(_i)->UnPack(_resolver)); } } }
2678   { auto _e = quantClusters(); if (_e) { _o->quantClusters.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->quantClusters[_i] = _e->Get(_i); } } }
2679   { auto _e = name(); if (_e) _o->name = _e->str(); }
2680   { auto _e = enableHuffmanCode(); _o->enableHuffmanCode = _e; }
2681   { auto _e = weightQunatCompressType(); _o->weightQunatCompressType = _e; }
2682 }
2683 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const TensorT * _o,const flatbuffers::rehasher_function_t * _rehasher)2684 inline flatbuffers::Offset<Tensor> Tensor::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TensorT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2685   return CreateTensor(_fbb, _o, _rehasher);
2686 }
2687 
CreateTensor(flatbuffers::FlatBufferBuilder & _fbb,const TensorT * _o,const flatbuffers::rehasher_function_t * _rehasher)2688 inline flatbuffers::Offset<Tensor> CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2689   (void)_rehasher;
2690   (void)_o;
2691   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const TensorT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2692   auto _nodeType = _o->nodeType;
2693   auto _dataType = _o->dataType;
2694   auto _dims = _o->dims.size() ? _fbb.CreateVector(_o->dims) : 0;
2695   auto _format = _o->format;
2696   auto _refCount = _o->refCount;
2697   auto _offset = _o->offset;
2698   auto _data = _o->data.size() ? _fbb.CreateVector(_o->data) : 0;
2699   auto _quantParams = _o->quantParams.size() ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::QuantParam>> (_o->quantParams.size(), [](size_t i, _VectorArgs *__va) { return CreateQuantParam(*__va->__fbb, __va->__o->quantParams[i].get(), __va->__rehasher); }, &_va ) : 0;
2700   auto _quantClusters = _o->quantClusters.size() ? _fbb.CreateVector(_o->quantClusters) : 0;
2701   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
2702   auto _enableHuffmanCode = _o->enableHuffmanCode;
2703   auto _weightQunatCompressType = _o->weightQunatCompressType;
2704   return mindspore::schema::CreateTensor(
2705       _fbb,
2706       _nodeType,
2707       _dataType,
2708       _dims,
2709       _format,
2710       _refCount,
2711       _offset,
2712       _data,
2713       _quantParams,
2714       _quantClusters,
2715       _name,
2716       _enableHuffmanCode,
2717       _weightQunatCompressType);
2718 }
2719 
UnPack(const flatbuffers::resolver_function_t * _resolver)2720 inline PrimitiveT *Primitive::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2721   auto _o = std::unique_ptr<PrimitiveT>(new PrimitiveT());
2722   UnPackTo(_o.get(), _resolver);
2723   return _o.release();
2724 }
2725 
UnPackTo(PrimitiveT * _o,const flatbuffers::resolver_function_t * _resolver)2726 inline void Primitive::UnPackTo(PrimitiveT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2727   (void)_o;
2728   (void)_resolver;
2729   { auto _e = value_type(); _o->value.type = _e; }
2730   { auto _e = value(); if (_e) _o->value.value = mindspore::schema::PrimitiveTypeUnion::UnPack(_e, value_type(), _resolver); }
2731 }
2732 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const PrimitiveT * _o,const flatbuffers::rehasher_function_t * _rehasher)2733 inline flatbuffers::Offset<Primitive> Primitive::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2734   return CreatePrimitive(_fbb, _o, _rehasher);
2735 }
2736 
CreatePrimitive(flatbuffers::FlatBufferBuilder & _fbb,const PrimitiveT * _o,const flatbuffers::rehasher_function_t * _rehasher)2737 inline flatbuffers::Offset<Primitive> CreatePrimitive(flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2738   (void)_rehasher;
2739   (void)_o;
2740   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const PrimitiveT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2741   auto _value_type = _o->value.type;
2742   auto _value = _o->value.Pack(_fbb);
2743   return mindspore::schema::CreatePrimitive(
2744       _fbb,
2745       _value_type,
2746       _value);
2747 }
2748 
UnPack(const flatbuffers::resolver_function_t * _resolver)2749 inline CNodeT *CNode::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2750   auto _o = std::unique_ptr<CNodeT>(new CNodeT());
2751   UnPackTo(_o.get(), _resolver);
2752   return _o.release();
2753 }
2754 
UnPackTo(CNodeT * _o,const flatbuffers::resolver_function_t * _resolver)2755 inline void CNode::UnPackTo(CNodeT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2756   (void)_o;
2757   (void)_resolver;
2758   { auto _e = name(); if (_e) _o->name = _e->str(); }
2759   { auto _e = primitive(); if (_e) _o->primitive = std::unique_ptr<mindspore::schema::PrimitiveT>(_e->UnPack(_resolver)); }
2760   { auto _e = inputIndex(); if (_e) { _o->inputIndex.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->inputIndex[_i] = _e->Get(_i); } } }
2761   { auto _e = outputIndex(); if (_e) { _o->outputIndex.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->outputIndex[_i] = _e->Get(_i); } } }
2762   { auto _e = quantType(); _o->quantType = _e; }
2763   { auto _e = deviceType(); _o->deviceType = _e; }
2764 }
2765 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const CNodeT * _o,const flatbuffers::rehasher_function_t * _rehasher)2766 inline flatbuffers::Offset<CNode> CNode::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CNodeT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2767   return CreateCNode(_fbb, _o, _rehasher);
2768 }
2769 
CreateCNode(flatbuffers::FlatBufferBuilder & _fbb,const CNodeT * _o,const flatbuffers::rehasher_function_t * _rehasher)2770 inline flatbuffers::Offset<CNode> CreateCNode(flatbuffers::FlatBufferBuilder &_fbb, const CNodeT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2771   (void)_rehasher;
2772   (void)_o;
2773   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const CNodeT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2774   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
2775   auto _primitive = _o->primitive ? CreatePrimitive(_fbb, _o->primitive.get(), _rehasher) : 0;
2776   auto _inputIndex = _o->inputIndex.size() ? _fbb.CreateVector(_o->inputIndex) : 0;
2777   auto _outputIndex = _o->outputIndex.size() ? _fbb.CreateVector(_o->outputIndex) : 0;
2778   auto _quantType = _o->quantType;
2779   auto _deviceType = _o->deviceType;
2780   return mindspore::schema::CreateCNode(
2781       _fbb,
2782       _name,
2783       _primitive,
2784       _inputIndex,
2785       _outputIndex,
2786       _quantType,
2787       _deviceType);
2788 }
2789 
UnPack(const flatbuffers::resolver_function_t * _resolver)2790 inline SubGraphT *SubGraph::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2791   auto _o = std::unique_ptr<SubGraphT>(new SubGraphT());
2792   UnPackTo(_o.get(), _resolver);
2793   return _o.release();
2794 }
2795 
UnPackTo(SubGraphT * _o,const flatbuffers::resolver_function_t * _resolver)2796 inline void SubGraph::UnPackTo(SubGraphT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2797   (void)_o;
2798   (void)_resolver;
2799   { auto _e = name(); if (_e) _o->name = _e->str(); }
2800   { auto _e = inputIndices(); if (_e) { _o->inputIndices.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->inputIndices[_i] = _e->Get(_i); } } }
2801   { auto _e = outputIndices(); if (_e) { _o->outputIndices.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->outputIndices[_i] = _e->Get(_i); } } }
2802   { auto _e = nodeIndices(); if (_e) { _o->nodeIndices.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->nodeIndices[_i] = _e->Get(_i); } } }
2803   { auto _e = tensorIndices(); if (_e) { _o->tensorIndices.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->tensorIndices[_i] = _e->Get(_i); } } }
2804 }
2805 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const SubGraphT * _o,const flatbuffers::rehasher_function_t * _rehasher)2806 inline flatbuffers::Offset<SubGraph> SubGraph::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2807   return CreateSubGraph(_fbb, _o, _rehasher);
2808 }
2809 
CreateSubGraph(flatbuffers::FlatBufferBuilder & _fbb,const SubGraphT * _o,const flatbuffers::rehasher_function_t * _rehasher)2810 inline flatbuffers::Offset<SubGraph> CreateSubGraph(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2811   (void)_rehasher;
2812   (void)_o;
2813   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const SubGraphT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2814   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
2815   auto _inputIndices = _o->inputIndices.size() ? _fbb.CreateVector(_o->inputIndices) : 0;
2816   auto _outputIndices = _o->outputIndices.size() ? _fbb.CreateVector(_o->outputIndices) : 0;
2817   auto _nodeIndices = _o->nodeIndices.size() ? _fbb.CreateVector(_o->nodeIndices) : 0;
2818   auto _tensorIndices = _o->tensorIndices.size() ? _fbb.CreateVector(_o->tensorIndices) : 0;
2819   return mindspore::schema::CreateSubGraph(
2820       _fbb,
2821       _name,
2822       _inputIndices,
2823       _outputIndices,
2824       _nodeIndices,
2825       _tensorIndices);
2826 }
2827 
UnPack(const flatbuffers::resolver_function_t * _resolver)2828 inline MetaGraphT *MetaGraph::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
2829   auto _o = std::unique_ptr<MetaGraphT>(new MetaGraphT());
2830   UnPackTo(_o.get(), _resolver);
2831   return _o.release();
2832 }
2833 
UnPackTo(MetaGraphT * _o,const flatbuffers::resolver_function_t * _resolver)2834 inline void MetaGraph::UnPackTo(MetaGraphT *_o, const flatbuffers::resolver_function_t *_resolver) const {
2835   (void)_o;
2836   (void)_resolver;
2837   { auto _e = name(); if (_e) _o->name = _e->str(); }
2838   { auto _e = version(); if (_e) _o->version = _e->str(); }
2839   { auto _e = fmkType(); _o->fmkType = _e; }
2840   { auto _e = inputIndex(); if (_e) { _o->inputIndex.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->inputIndex[_i] = _e->Get(_i); } } }
2841   { auto _e = outputIndex(); if (_e) { _o->outputIndex.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->outputIndex[_i] = _e->Get(_i); } } }
2842   { auto _e = mempoolSize(); _o->mempoolSize = _e; }
2843   { auto _e = nodes(); if (_e) { _o->nodes.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->nodes[_i] = std::unique_ptr<mindspore::schema::CNodeT>(_e->Get(_i)->UnPack(_resolver)); } } }
2844   { auto _e = allTensors(); if (_e) { _o->allTensors.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->allTensors[_i] = std::unique_ptr<mindspore::schema::TensorT>(_e->Get(_i)->UnPack(_resolver)); } } }
2845   { auto _e = subGraph(); if (_e) { _o->subGraph.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->subGraph[_i] = std::unique_ptr<mindspore::schema::SubGraphT>(_e->Get(_i)->UnPack(_resolver)); } } }
2846   { auto _e = obfuscate(); _o->obfuscate = _e; }
2847   { auto _e = obfMetaData(); if (_e) { _o->obfMetaData.resize(_e->size()); std::copy(_e->begin(), _e->end(), _o->obfMetaData.begin()); } }
2848 }
2849 
Pack(flatbuffers::FlatBufferBuilder & _fbb,const MetaGraphT * _o,const flatbuffers::rehasher_function_t * _rehasher)2850 inline flatbuffers::Offset<MetaGraph> MetaGraph::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
2851   return CreateMetaGraph(_fbb, _o, _rehasher);
2852 }
2853 
CreateMetaGraph(flatbuffers::FlatBufferBuilder & _fbb,const MetaGraphT * _o,const flatbuffers::rehasher_function_t * _rehasher)2854 inline flatbuffers::Offset<MetaGraph> CreateMetaGraph(flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
2855   (void)_rehasher;
2856   (void)_o;
2857   struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const MetaGraphT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2858   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
2859   auto _version = _o->version.empty() ? 0 : _fbb.CreateString(_o->version);
2860   auto _fmkType = _o->fmkType;
2861   auto _inputIndex = _o->inputIndex.size() ? _fbb.CreateVector(_o->inputIndex) : 0;
2862   auto _outputIndex = _o->outputIndex.size() ? _fbb.CreateVector(_o->outputIndex) : 0;
2863   auto _mempoolSize = _o->mempoolSize;
2864   auto _nodes = _o->nodes.size() ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::CNode>> (_o->nodes.size(), [](size_t i, _VectorArgs *__va) { return CreateCNode(*__va->__fbb, __va->__o->nodes[i].get(), __va->__rehasher); }, &_va ) : 0;
2865   auto _allTensors = _o->allTensors.size() ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::Tensor>> (_o->allTensors.size(), [](size_t i, _VectorArgs *__va) { return CreateTensor(*__va->__fbb, __va->__o->allTensors[i].get(), __va->__rehasher); }, &_va ) : 0;
2866   auto _subGraph = _o->subGraph.size() ? _fbb.CreateVector<flatbuffers::Offset<mindspore::schema::SubGraph>> (_o->subGraph.size(), [](size_t i, _VectorArgs *__va) { return CreateSubGraph(*__va->__fbb, __va->__o->subGraph[i].get(), __va->__rehasher); }, &_va ) : 0;
2867   auto _obfuscate = _o->obfuscate;
2868   auto _obfMetaData = _o->obfMetaData.size() ? _fbb.CreateVector(_o->obfMetaData) : 0;
2869   return mindspore::schema::CreateMetaGraph(
2870       _fbb,
2871       _name,
2872       _version,
2873       _fmkType,
2874       _inputIndex,
2875       _outputIndex,
2876       _mempoolSize,
2877       _nodes,
2878       _allTensors,
2879       _subGraph,
2880       _obfuscate,
2881       _obfMetaData);
2882 }
2883 
WeightQunatCompressTypeTypeTable()2884 inline const flatbuffers::TypeTable *WeightQunatCompressTypeTypeTable() {
2885   static const flatbuffers::TypeCode type_codes[] = {
2886     { flatbuffers::ET_INT, 0, 0 },
2887     { flatbuffers::ET_INT, 0, 0 },
2888     { flatbuffers::ET_INT, 0, 0 },
2889     { flatbuffers::ET_INT, 0, 0 }
2890   };
2891   static const flatbuffers::TypeFunction type_refs[] = {
2892     mindspore::schema::WeightQunatCompressTypeTypeTable
2893   };
2894   static const flatbuffers::TypeTable tt = {
2895     flatbuffers::ST_ENUM, 4, type_codes, type_refs, nullptr, nullptr, nullptr
2896   };
2897   return &tt;
2898 }
2899 
QuantTypeTypeTable()2900 inline const flatbuffers::TypeTable *QuantTypeTypeTable() {
2901   static const flatbuffers::TypeCode type_codes[] = {
2902     { flatbuffers::ET_INT, 0, 0 },
2903     { flatbuffers::ET_INT, 0, 0 },
2904     { flatbuffers::ET_INT, 0, 0 },
2905     { flatbuffers::ET_INT, 0, 0 },
2906     { flatbuffers::ET_INT, 0, 0 },
2907     { flatbuffers::ET_INT, 0, 0 }
2908   };
2909   static const flatbuffers::TypeFunction type_refs[] = {
2910     mindspore::schema::QuantTypeTypeTable
2911   };
2912   static const flatbuffers::TypeTable tt = {
2913     flatbuffers::ST_ENUM, 6, type_codes, type_refs, nullptr, nullptr, nullptr
2914   };
2915   return &tt;
2916 }
2917 
QuantParamTypeTable()2918 inline const flatbuffers::TypeTable *QuantParamTypeTable() {
2919   static const flatbuffers::TypeCode type_codes[] = {
2920     { flatbuffers::ET_DOUBLE, 0, -1 },
2921     { flatbuffers::ET_INT, 0, -1 },
2922     { flatbuffers::ET_DOUBLE, 0, -1 },
2923     { flatbuffers::ET_DOUBLE, 0, -1 },
2924     { flatbuffers::ET_BOOL, 0, -1 },
2925     { flatbuffers::ET_INT, 0, -1 },
2926     { flatbuffers::ET_BOOL, 0, -1 },
2927     { flatbuffers::ET_FLOAT, 0, -1 },
2928     { flatbuffers::ET_FLOAT, 0, -1 },
2929     { flatbuffers::ET_INT, 0, -1 },
2930     { flatbuffers::ET_INT, 0, -1 },
2931     { flatbuffers::ET_INT, 0, -1 }
2932   };
2933   static const flatbuffers::TypeTable tt = {
2934     flatbuffers::ST_TABLE, 12, type_codes, nullptr, nullptr, nullptr, nullptr
2935   };
2936   return &tt;
2937 }
2938 
TensorTypeTable()2939 inline const flatbuffers::TypeTable *TensorTypeTable() {
2940   static const flatbuffers::TypeCode type_codes[] = {
2941     { flatbuffers::ET_INT, 0, -1 },
2942     { flatbuffers::ET_INT, 0, -1 },
2943     { flatbuffers::ET_INT, 1, -1 },
2944     { flatbuffers::ET_INT, 0, 0 },
2945     { flatbuffers::ET_INT, 0, -1 },
2946     { flatbuffers::ET_INT, 0, -1 },
2947     { flatbuffers::ET_UCHAR, 1, -1 },
2948     { flatbuffers::ET_SEQUENCE, 1, 1 },
2949     { flatbuffers::ET_FLOAT, 1, -1 },
2950     { flatbuffers::ET_STRING, 0, -1 },
2951     { flatbuffers::ET_BOOL, 0, -1 },
2952     { flatbuffers::ET_INT, 0, 2 }
2953   };
2954   static const flatbuffers::TypeFunction type_refs[] = {
2955     mindspore::schema::FormatTypeTable,
2956     mindspore::schema::QuantParamTypeTable,
2957     mindspore::schema::WeightQunatCompressTypeTypeTable
2958   };
2959   static const flatbuffers::TypeTable tt = {
2960     flatbuffers::ST_TABLE, 12, type_codes, type_refs, nullptr, nullptr, nullptr
2961   };
2962   return &tt;
2963 }
2964 
PrimitiveTypeTable()2965 inline const flatbuffers::TypeTable *PrimitiveTypeTable() {
2966   static const flatbuffers::TypeCode type_codes[] = {
2967     { flatbuffers::ET_UTYPE, 0, 0 },
2968     { flatbuffers::ET_SEQUENCE, 0, 0 }
2969   };
2970   static const flatbuffers::TypeFunction type_refs[] = {
2971     mindspore::schema::PrimitiveTypeTypeTable
2972   };
2973   static const flatbuffers::TypeTable tt = {
2974     flatbuffers::ST_TABLE, 2, type_codes, type_refs, nullptr, nullptr, nullptr
2975   };
2976   return &tt;
2977 }
2978 
CNodeTypeTable()2979 inline const flatbuffers::TypeTable *CNodeTypeTable() {
2980   static const flatbuffers::TypeCode type_codes[] = {
2981     { flatbuffers::ET_STRING, 0, -1 },
2982     { flatbuffers::ET_INT, 0, -1 },
2983     { flatbuffers::ET_SEQUENCE, 0, 0 },
2984     { flatbuffers::ET_UINT, 1, -1 },
2985     { flatbuffers::ET_UINT, 1, -1 },
2986     { flatbuffers::ET_INT, 0, 1 },
2987     { flatbuffers::ET_INT, 0, -1 }
2988   };
2989   static const flatbuffers::TypeFunction type_refs[] = {
2990     mindspore::schema::PrimitiveTypeTable,
2991     mindspore::schema::QuantTypeTypeTable
2992   };
2993   static const flatbuffers::TypeTable tt = {
2994     flatbuffers::ST_TABLE, 7, type_codes, type_refs, nullptr, nullptr, nullptr
2995   };
2996   return &tt;
2997 }
2998 
SubGraphTypeTable()2999 inline const flatbuffers::TypeTable *SubGraphTypeTable() {
3000   static const flatbuffers::TypeCode type_codes[] = {
3001     { flatbuffers::ET_STRING, 0, -1 },
3002     { flatbuffers::ET_UINT, 1, -1 },
3003     { flatbuffers::ET_UINT, 1, -1 },
3004     { flatbuffers::ET_UINT, 1, -1 },
3005     { flatbuffers::ET_UINT, 1, -1 }
3006   };
3007   static const flatbuffers::TypeTable tt = {
3008     flatbuffers::ST_TABLE, 5, type_codes, nullptr, nullptr, nullptr, nullptr
3009   };
3010   return &tt;
3011 }
3012 
MetaGraphTypeTable()3013 inline const flatbuffers::TypeTable *MetaGraphTypeTable() {
3014   static const flatbuffers::TypeCode type_codes[] = {
3015     { flatbuffers::ET_STRING, 0, -1 },
3016     { flatbuffers::ET_STRING, 0, -1 },
3017     { flatbuffers::ET_INT, 0, -1 },
3018     { flatbuffers::ET_UINT, 1, -1 },
3019     { flatbuffers::ET_UINT, 1, -1 },
3020     { flatbuffers::ET_UINT, 0, -1 },
3021     { flatbuffers::ET_SEQUENCE, 1, 0 },
3022     { flatbuffers::ET_SEQUENCE, 1, 1 },
3023     { flatbuffers::ET_SEQUENCE, 1, 2 },
3024     { flatbuffers::ET_BOOL, 0, -1 },
3025     { flatbuffers::ET_UCHAR, 1, -1 }
3026   };
3027   static const flatbuffers::TypeFunction type_refs[] = {
3028     mindspore::schema::CNodeTypeTable,
3029     mindspore::schema::TensorTypeTable,
3030     mindspore::schema::SubGraphTypeTable
3031   };
3032   static const flatbuffers::TypeTable tt = {
3033     flatbuffers::ST_TABLE, 11, type_codes, type_refs, nullptr, nullptr, nullptr
3034   };
3035   return &tt;
3036 }
3037 
GetMetaGraph(const void * buf)3038 inline const mindspore::schema::MetaGraph *GetMetaGraph(const void *buf) {
3039   return flatbuffers::GetRoot<mindspore::schema::MetaGraph>(buf);
3040 }
3041 
GetSizePrefixedMetaGraph(const void * buf)3042 inline const mindspore::schema::MetaGraph *GetSizePrefixedMetaGraph(const void *buf) {
3043   return flatbuffers::GetSizePrefixedRoot<mindspore::schema::MetaGraph>(buf);
3044 }
3045 
GetMutableMetaGraph(void * buf)3046 inline MetaGraph *GetMutableMetaGraph(void *buf) {
3047   return flatbuffers::GetMutableRoot<MetaGraph>(buf);
3048 }
3049 
MetaGraphIdentifier()3050 inline const char *MetaGraphIdentifier() {
3051   return "MSL2";
3052 }
3053 
MetaGraphBufferHasIdentifier(const void * buf)3054 inline bool MetaGraphBufferHasIdentifier(const void *buf) {
3055   return flatbuffers::BufferHasIdentifier(
3056       buf, MetaGraphIdentifier());
3057 }
3058 
VerifyMetaGraphBuffer(flatbuffers::Verifier & verifier)3059 inline bool VerifyMetaGraphBuffer(
3060     flatbuffers::Verifier &verifier) {
3061   return verifier.VerifyBuffer<mindspore::schema::MetaGraph>(MetaGraphIdentifier());
3062 }
3063 
VerifySizePrefixedMetaGraphBuffer(flatbuffers::Verifier & verifier)3064 inline bool VerifySizePrefixedMetaGraphBuffer(
3065     flatbuffers::Verifier &verifier) {
3066   return verifier.VerifySizePrefixedBuffer<mindspore::schema::MetaGraph>(MetaGraphIdentifier());
3067 }
3068 
MetaGraphExtension()3069 inline const char *MetaGraphExtension() {
3070   return "ms";
3071 }
3072 
FinishMetaGraphBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<mindspore::schema::MetaGraph> root)3073 inline void FinishMetaGraphBuffer(
3074     flatbuffers::FlatBufferBuilder &fbb,
3075     flatbuffers::Offset<mindspore::schema::MetaGraph> root) {
3076   fbb.Finish(root, MetaGraphIdentifier());
3077 }
3078 
FinishSizePrefixedMetaGraphBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<mindspore::schema::MetaGraph> root)3079 inline void FinishSizePrefixedMetaGraphBuffer(
3080     flatbuffers::FlatBufferBuilder &fbb,
3081     flatbuffers::Offset<mindspore::schema::MetaGraph> root) {
3082   fbb.FinishSizePrefixed(root, MetaGraphIdentifier());
3083 }
3084 
3085 inline std::unique_ptr<mindspore::schema::MetaGraphT> UnPackMetaGraph(
3086     const void *buf,
3087     const flatbuffers::resolver_function_t *res = nullptr) {
3088   return std::unique_ptr<mindspore::schema::MetaGraphT>(GetMetaGraph(buf)->UnPack(res));
3089 }
3090 
3091 inline std::unique_ptr<mindspore::schema::MetaGraphT> UnPackSizePrefixedMetaGraph(
3092     const void *buf,
3093     const flatbuffers::resolver_function_t *res = nullptr) {
3094   return std::unique_ptr<mindspore::schema::MetaGraphT>(GetSizePrefixedMetaGraph(buf)->UnPack(res));
3095 }
3096 
3097 }  // namespace schema
3098 }  // namespace mindspore
3099 
3100 #endif  // FLATBUFFERS_GENERATED_MODEL_MINDSPORE_SCHEMA_H_
3101