• 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 // Ensure the included flatbuffers.h is the same version as when this file was
10 // generated, otherwise it may not be compatible.
11 static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
12               FLATBUFFERS_VERSION_MINOR == 3 &&
13               FLATBUFFERS_VERSION_REVISION == 25,
14              "Non-compatible flatbuffers version included");
15 
16 #include "ops_generated.h"
17 
18 namespace mindspore {
19 namespace schema {
20 
21 struct QuantParam;
22 struct QuantParamBuilder;
23 struct QuantParamT;
24 
25 struct ExternalData;
26 struct ExternalDataBuilder;
27 struct ExternalDataT;
28 
29 struct Tensor;
30 struct TensorBuilder;
31 struct TensorT;
32 
33 struct Primitive;
34 struct PrimitiveBuilder;
35 struct PrimitiveT;
36 
37 struct CNode;
38 struct CNodeBuilder;
39 struct CNodeT;
40 
41 struct SubGraph;
42 struct SubGraphBuilder;
43 struct SubGraphT;
44 
45 struct MetaGraph;
46 struct MetaGraphBuilder;
47 struct MetaGraphT;
48 
49 inline const ::flatbuffers::TypeTable *QuantParamTypeTable();
50 
51 inline const ::flatbuffers::TypeTable *ExternalDataTypeTable();
52 
53 inline const ::flatbuffers::TypeTable *TensorTypeTable();
54 
55 inline const ::flatbuffers::TypeTable *PrimitiveTypeTable();
56 
57 inline const ::flatbuffers::TypeTable *CNodeTypeTable();
58 
59 inline const ::flatbuffers::TypeTable *SubGraphTypeTable();
60 
61 inline const ::flatbuffers::TypeTable *MetaGraphTypeTable();
62 
63 enum WeightQuantCompressType : int32_t {
64   WeightQuantCompressType_NONE = 0,
65   WeightQuantCompressType_INDEXING = 1,
66   WeightQuantCompressType_SPARSE = 2,
67   WeightQuantCompressType_FSE = 3,
68   WeightQuantCompressType_BITPACKING = 4,
69   WeightQuantCompressType_FSE_INT = 5,
70   WeightQuantCompressType_FSE_INFER = 6,
71   WeightQuantCompressType_MIN = WeightQuantCompressType_NONE,
72   WeightQuantCompressType_MAX = WeightQuantCompressType_FSE_INFER
73 };
74 
EnumValuesWeightQuantCompressType()75 inline const WeightQuantCompressType (&EnumValuesWeightQuantCompressType())[7] {
76   static const WeightQuantCompressType values[] = {
77     WeightQuantCompressType_NONE,
78     WeightQuantCompressType_INDEXING,
79     WeightQuantCompressType_SPARSE,
80     WeightQuantCompressType_FSE,
81     WeightQuantCompressType_BITPACKING,
82     WeightQuantCompressType_FSE_INT,
83     WeightQuantCompressType_FSE_INFER
84   };
85   return values;
86 }
87 
EnumNamesWeightQuantCompressType()88 inline const char * const *EnumNamesWeightQuantCompressType() {
89   static const char * const names[8] = {
90     "NONE",
91     "INDEXING",
92     "SPARSE",
93     "FSE",
94     "BITPACKING",
95     "FSE_INT",
96     "FSE_INFER",
97     nullptr
98   };
99   return names;
100 }
101 
EnumNameWeightQuantCompressType(WeightQuantCompressType e)102 inline const char *EnumNameWeightQuantCompressType(WeightQuantCompressType e) {
103   if (::flatbuffers::IsOutRange(e, WeightQuantCompressType_NONE, WeightQuantCompressType_FSE_INFER)) return "";
104   const size_t index = static_cast<size_t>(e);
105   return EnumNamesWeightQuantCompressType()[index];
106 }
107 
108 enum QuantType : int32_t {
109   QuantType_QUANT_NONE = 0,
110   QuantType_AwareTraining = 1,
111   QuantType_WeightQuant = 2,
112   QuantType_PostTraining = 3,
113   QuantType_QUANT_WEIGHT = 4,
114   QuantType_QUANT_ALL = 5,
115   QuantType_QUANT_DYNAMIC = 6,
116   QuantType_MIN = QuantType_QUANT_NONE,
117   QuantType_MAX = QuantType_QUANT_DYNAMIC
118 };
119 
EnumValuesQuantType()120 inline const QuantType (&EnumValuesQuantType())[7] {
121   static const QuantType values[] = {
122     QuantType_QUANT_NONE,
123     QuantType_AwareTraining,
124     QuantType_WeightQuant,
125     QuantType_PostTraining,
126     QuantType_QUANT_WEIGHT,
127     QuantType_QUANT_ALL,
128     QuantType_QUANT_DYNAMIC
129   };
130   return values;
131 }
132 
EnumNamesQuantType()133 inline const char * const *EnumNamesQuantType() {
134   static const char * const names[8] = {
135     "QUANT_NONE",
136     "AwareTraining",
137     "WeightQuant",
138     "PostTraining",
139     "QUANT_WEIGHT",
140     "QUANT_ALL",
141     "QUANT_DYNAMIC",
142     nullptr
143   };
144   return names;
145 }
146 
EnumNameQuantType(QuantType e)147 inline const char *EnumNameQuantType(QuantType e) {
148   if (::flatbuffers::IsOutRange(e, QuantType_QUANT_NONE, QuantType_QUANT_DYNAMIC)) return "";
149   const size_t index = static_cast<size_t>(e);
150   return EnumNamesQuantType()[index];
151 }
152 
153 struct QuantParamT : public ::flatbuffers::NativeTable {
154   typedef QuantParam TableType;
155   double scale = 1.0;
156   int32_t zeroPoint = 0;
157   double min = 0.0;
158   double max = 0.0;
159   bool narrowRange = true;
160   int32_t numBits = 8;
161   bool inited = false;
162   float varCorr = 1.0f;
163   float meanCorr = 0.0f;
164   int32_t dstDtype = 32;
165   int32_t roundType = 1;
166   int32_t multiplier = 1;
167 };
168 
169 struct QuantParam FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
170   typedef QuantParamT NativeTableType;
171   typedef QuantParamBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS172   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
173     return QuantParamTypeTable();
174   }
175   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
176     VT_SCALE = 4,
177     VT_ZEROPOINT = 6,
178     VT_MIN = 8,
179     VT_MAX = 10,
180     VT_NARROWRANGE = 12,
181     VT_NUMBITS = 14,
182     VT_INITED = 16,
183     VT_VARCORR = 18,
184     VT_MEANCORR = 20,
185     VT_DSTDTYPE = 22,
186     VT_ROUNDTYPE = 24,
187     VT_MULTIPLIER = 26
188   };
scaleFLATBUFFERS_FINAL_CLASS189   double scale() const {
190     return GetField<double>(VT_SCALE, 1.0);
191   }
192   bool mutate_scale(double _scale = 1.0) {
193     return SetField<double>(VT_SCALE, _scale, 1.0);
194   }
zeroPointFLATBUFFERS_FINAL_CLASS195   int32_t zeroPoint() const {
196     return GetField<int32_t>(VT_ZEROPOINT, 0);
197   }
198   bool mutate_zeroPoint(int32_t _zeroPoint = 0) {
199     return SetField<int32_t>(VT_ZEROPOINT, _zeroPoint, 0);
200   }
minFLATBUFFERS_FINAL_CLASS201   double min() const {
202     return GetField<double>(VT_MIN, 0.0);
203   }
204   bool mutate_min(double _min = 0.0) {
205     return SetField<double>(VT_MIN, _min, 0.0);
206   }
maxFLATBUFFERS_FINAL_CLASS207   double max() const {
208     return GetField<double>(VT_MAX, 0.0);
209   }
210   bool mutate_max(double _max = 0.0) {
211     return SetField<double>(VT_MAX, _max, 0.0);
212   }
narrowRangeFLATBUFFERS_FINAL_CLASS213   bool narrowRange() const {
214     return GetField<uint8_t>(VT_NARROWRANGE, 1) != 0;
215   }
216   bool mutate_narrowRange(bool _narrowRange = 1) {
217     return SetField<uint8_t>(VT_NARROWRANGE, static_cast<uint8_t>(_narrowRange), 1);
218   }
numBitsFLATBUFFERS_FINAL_CLASS219   int32_t numBits() const {
220     return GetField<int32_t>(VT_NUMBITS, 8);
221   }
222   bool mutate_numBits(int32_t _numBits = 8) {
223     return SetField<int32_t>(VT_NUMBITS, _numBits, 8);
224   }
initedFLATBUFFERS_FINAL_CLASS225   bool inited() const {
226     return GetField<uint8_t>(VT_INITED, 0) != 0;
227   }
228   bool mutate_inited(bool _inited = 0) {
229     return SetField<uint8_t>(VT_INITED, static_cast<uint8_t>(_inited), 0);
230   }
varCorrFLATBUFFERS_FINAL_CLASS231   float varCorr() const {
232     return GetField<float>(VT_VARCORR, 1.0f);
233   }
234   bool mutate_varCorr(float _varCorr = 1.0f) {
235     return SetField<float>(VT_VARCORR, _varCorr, 1.0f);
236   }
meanCorrFLATBUFFERS_FINAL_CLASS237   float meanCorr() const {
238     return GetField<float>(VT_MEANCORR, 0.0f);
239   }
240   bool mutate_meanCorr(float _meanCorr = 0.0f) {
241     return SetField<float>(VT_MEANCORR, _meanCorr, 0.0f);
242   }
dstDtypeFLATBUFFERS_FINAL_CLASS243   int32_t dstDtype() const {
244     return GetField<int32_t>(VT_DSTDTYPE, 32);
245   }
246   bool mutate_dstDtype(int32_t _dstDtype = 32) {
247     return SetField<int32_t>(VT_DSTDTYPE, _dstDtype, 32);
248   }
roundTypeFLATBUFFERS_FINAL_CLASS249   int32_t roundType() const {
250     return GetField<int32_t>(VT_ROUNDTYPE, 1);
251   }
252   bool mutate_roundType(int32_t _roundType = 1) {
253     return SetField<int32_t>(VT_ROUNDTYPE, _roundType, 1);
254   }
multiplierFLATBUFFERS_FINAL_CLASS255   int32_t multiplier() const {
256     return GetField<int32_t>(VT_MULTIPLIER, 1);
257   }
258   bool mutate_multiplier(int32_t _multiplier = 1) {
259     return SetField<int32_t>(VT_MULTIPLIER, _multiplier, 1);
260   }
VerifyFLATBUFFERS_FINAL_CLASS261   bool Verify(::flatbuffers::Verifier &verifier) const {
262     return VerifyTableStart(verifier) &&
263            VerifyField<double>(verifier, VT_SCALE, 8) &&
264            VerifyField<int32_t>(verifier, VT_ZEROPOINT, 4) &&
265            VerifyField<double>(verifier, VT_MIN, 8) &&
266            VerifyField<double>(verifier, VT_MAX, 8) &&
267            VerifyField<uint8_t>(verifier, VT_NARROWRANGE, 1) &&
268            VerifyField<int32_t>(verifier, VT_NUMBITS, 4) &&
269            VerifyField<uint8_t>(verifier, VT_INITED, 1) &&
270            VerifyField<float>(verifier, VT_VARCORR, 4) &&
271            VerifyField<float>(verifier, VT_MEANCORR, 4) &&
272            VerifyField<int32_t>(verifier, VT_DSTDTYPE, 4) &&
273            VerifyField<int32_t>(verifier, VT_ROUNDTYPE, 4) &&
274            VerifyField<int32_t>(verifier, VT_MULTIPLIER, 4) &&
275            verifier.EndTable();
276   }
277   QuantParamT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
278   void UnPackTo(QuantParamT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
279   static ::flatbuffers::Offset<QuantParam> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
280 };
281 
282 struct QuantParamBuilder {
283   typedef QuantParam Table;
284   ::flatbuffers::FlatBufferBuilder &fbb_;
285   ::flatbuffers::uoffset_t start_;
add_scaleQuantParamBuilder286   void add_scale(double scale) {
287     fbb_.AddElement<double>(QuantParam::VT_SCALE, scale, 1.0);
288   }
add_zeroPointQuantParamBuilder289   void add_zeroPoint(int32_t zeroPoint) {
290     fbb_.AddElement<int32_t>(QuantParam::VT_ZEROPOINT, zeroPoint, 0);
291   }
add_minQuantParamBuilder292   void add_min(double min) {
293     fbb_.AddElement<double>(QuantParam::VT_MIN, min, 0.0);
294   }
add_maxQuantParamBuilder295   void add_max(double max) {
296     fbb_.AddElement<double>(QuantParam::VT_MAX, max, 0.0);
297   }
add_narrowRangeQuantParamBuilder298   void add_narrowRange(bool narrowRange) {
299     fbb_.AddElement<uint8_t>(QuantParam::VT_NARROWRANGE, static_cast<uint8_t>(narrowRange), 1);
300   }
add_numBitsQuantParamBuilder301   void add_numBits(int32_t numBits) {
302     fbb_.AddElement<int32_t>(QuantParam::VT_NUMBITS, numBits, 8);
303   }
add_initedQuantParamBuilder304   void add_inited(bool inited) {
305     fbb_.AddElement<uint8_t>(QuantParam::VT_INITED, static_cast<uint8_t>(inited), 0);
306   }
add_varCorrQuantParamBuilder307   void add_varCorr(float varCorr) {
308     fbb_.AddElement<float>(QuantParam::VT_VARCORR, varCorr, 1.0f);
309   }
add_meanCorrQuantParamBuilder310   void add_meanCorr(float meanCorr) {
311     fbb_.AddElement<float>(QuantParam::VT_MEANCORR, meanCorr, 0.0f);
312   }
add_dstDtypeQuantParamBuilder313   void add_dstDtype(int32_t dstDtype) {
314     fbb_.AddElement<int32_t>(QuantParam::VT_DSTDTYPE, dstDtype, 32);
315   }
add_roundTypeQuantParamBuilder316   void add_roundType(int32_t roundType) {
317     fbb_.AddElement<int32_t>(QuantParam::VT_ROUNDTYPE, roundType, 1);
318   }
add_multiplierQuantParamBuilder319   void add_multiplier(int32_t multiplier) {
320     fbb_.AddElement<int32_t>(QuantParam::VT_MULTIPLIER, multiplier, 1);
321   }
QuantParamBuilderQuantParamBuilder322   explicit QuantParamBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
323         : fbb_(_fbb) {
324     start_ = fbb_.StartTable();
325   }
FinishQuantParamBuilder326   ::flatbuffers::Offset<QuantParam> Finish() {
327     const auto end = fbb_.EndTable(start_);
328     auto o = ::flatbuffers::Offset<QuantParam>(end);
329     return o;
330   }
331 };
332 
333 inline ::flatbuffers::Offset<QuantParam> CreateQuantParam(
334     ::flatbuffers::FlatBufferBuilder &_fbb,
335     double scale = 1.0,
336     int32_t zeroPoint = 0,
337     double min = 0.0,
338     double max = 0.0,
339     bool narrowRange = true,
340     int32_t numBits = 8,
341     bool inited = false,
342     float varCorr = 1.0f,
343     float meanCorr = 0.0f,
344     int32_t dstDtype = 32,
345     int32_t roundType = 1,
346     int32_t multiplier = 1) {
347   QuantParamBuilder builder_(_fbb);
348   builder_.add_max(max);
349   builder_.add_min(min);
350   builder_.add_scale(scale);
351   builder_.add_multiplier(multiplier);
352   builder_.add_roundType(roundType);
353   builder_.add_dstDtype(dstDtype);
354   builder_.add_meanCorr(meanCorr);
355   builder_.add_varCorr(varCorr);
356   builder_.add_numBits(numBits);
357   builder_.add_zeroPoint(zeroPoint);
358   builder_.add_inited(inited);
359   builder_.add_narrowRange(narrowRange);
360   return builder_.Finish();
361 }
362 
363 ::flatbuffers::Offset<QuantParam> CreateQuantParam(::flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
364 
365 struct ExternalDataT : public ::flatbuffers::NativeTable {
366   typedef ExternalData TableType;
367   std::string checkSum{};
368   std::string location{};
369   int64_t offset = 0;
370   int64_t length = -1LL;
371 };
372 
373 struct ExternalData FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
374   typedef ExternalDataT NativeTableType;
375   typedef ExternalDataBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS376   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
377     return ExternalDataTypeTable();
378   }
379   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
380     VT_CHECKSUM = 4,
381     VT_LOCATION = 6,
382     VT_OFFSET = 8,
383     VT_LENGTH = 10
384   };
checkSumFLATBUFFERS_FINAL_CLASS385   const ::flatbuffers::String *checkSum() const {
386     return GetPointer<const ::flatbuffers::String *>(VT_CHECKSUM);
387   }
mutable_checkSumFLATBUFFERS_FINAL_CLASS388   ::flatbuffers::String *mutable_checkSum() {
389     return GetPointer<::flatbuffers::String *>(VT_CHECKSUM);
390   }
locationFLATBUFFERS_FINAL_CLASS391   const ::flatbuffers::String *location() const {
392     return GetPointer<const ::flatbuffers::String *>(VT_LOCATION);
393   }
mutable_locationFLATBUFFERS_FINAL_CLASS394   ::flatbuffers::String *mutable_location() {
395     return GetPointer<::flatbuffers::String *>(VT_LOCATION);
396   }
offsetFLATBUFFERS_FINAL_CLASS397   int64_t offset() const {
398     return GetField<int64_t>(VT_OFFSET, 0);
399   }
400   bool mutate_offset(int64_t _offset = 0) {
401     return SetField<int64_t>(VT_OFFSET, _offset, 0);
402   }
lengthFLATBUFFERS_FINAL_CLASS403   int64_t length() const {
404     return GetField<int64_t>(VT_LENGTH, -1LL);
405   }
406   bool mutate_length(int64_t _length = -1LL) {
407     return SetField<int64_t>(VT_LENGTH, _length, -1LL);
408   }
VerifyFLATBUFFERS_FINAL_CLASS409   bool Verify(::flatbuffers::Verifier &verifier) const {
410     return VerifyTableStart(verifier) &&
411            VerifyOffset(verifier, VT_CHECKSUM) &&
412            verifier.VerifyString(checkSum()) &&
413            VerifyOffset(verifier, VT_LOCATION) &&
414            verifier.VerifyString(location()) &&
415            VerifyField<int64_t>(verifier, VT_OFFSET, 8) &&
416            VerifyField<int64_t>(verifier, VT_LENGTH, 8) &&
417            verifier.EndTable();
418   }
419   ExternalDataT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
420   void UnPackTo(ExternalDataT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
421   static ::flatbuffers::Offset<ExternalData> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const ExternalDataT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
422 };
423 
424 struct ExternalDataBuilder {
425   typedef ExternalData Table;
426   ::flatbuffers::FlatBufferBuilder &fbb_;
427   ::flatbuffers::uoffset_t start_;
add_checkSumExternalDataBuilder428   void add_checkSum(::flatbuffers::Offset<::flatbuffers::String> checkSum) {
429     fbb_.AddOffset(ExternalData::VT_CHECKSUM, checkSum);
430   }
add_locationExternalDataBuilder431   void add_location(::flatbuffers::Offset<::flatbuffers::String> location) {
432     fbb_.AddOffset(ExternalData::VT_LOCATION, location);
433   }
add_offsetExternalDataBuilder434   void add_offset(int64_t offset) {
435     fbb_.AddElement<int64_t>(ExternalData::VT_OFFSET, offset, 0);
436   }
add_lengthExternalDataBuilder437   void add_length(int64_t length) {
438     fbb_.AddElement<int64_t>(ExternalData::VT_LENGTH, length, -1LL);
439   }
ExternalDataBuilderExternalDataBuilder440   explicit ExternalDataBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
441         : fbb_(_fbb) {
442     start_ = fbb_.StartTable();
443   }
FinishExternalDataBuilder444   ::flatbuffers::Offset<ExternalData> Finish() {
445     const auto end = fbb_.EndTable(start_);
446     auto o = ::flatbuffers::Offset<ExternalData>(end);
447     return o;
448   }
449 };
450 
451 inline ::flatbuffers::Offset<ExternalData> CreateExternalData(
452     ::flatbuffers::FlatBufferBuilder &_fbb,
453     ::flatbuffers::Offset<::flatbuffers::String> checkSum = 0,
454     ::flatbuffers::Offset<::flatbuffers::String> location = 0,
455     int64_t offset = 0,
456     int64_t length = -1LL) {
457   ExternalDataBuilder builder_(_fbb);
458   builder_.add_length(length);
459   builder_.add_offset(offset);
460   builder_.add_location(location);
461   builder_.add_checkSum(checkSum);
462   return builder_.Finish();
463 }
464 
465 inline ::flatbuffers::Offset<ExternalData> CreateExternalDataDirect(
466     ::flatbuffers::FlatBufferBuilder &_fbb,
467     const char *checkSum = nullptr,
468     const char *location = nullptr,
469     int64_t offset = 0,
470     int64_t length = -1LL) {
471   auto checkSum__ = checkSum ? _fbb.CreateString(checkSum) : 0;
472   auto location__ = location ? _fbb.CreateString(location) : 0;
473   return mindspore::schema::CreateExternalData(
474       _fbb,
475       checkSum__,
476       location__,
477       offset,
478       length);
479 }
480 
481 ::flatbuffers::Offset<ExternalData> CreateExternalData(::flatbuffers::FlatBufferBuilder &_fbb, const ExternalDataT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
482 
483 struct TensorT : public ::flatbuffers::NativeTable {
484   typedef Tensor TableType;
485   int32_t nodeType = 0;
486   int32_t dataType = 0;
487   std::vector<int32_t> dims{};
488   mindspore::schema::Format format = mindspore::schema::Format_NCHW;
489   int32_t refCount = 0;
490   int32_t offset = 0;
491   std::vector<uint8_t> data{};
492   std::vector<std::unique_ptr<mindspore::schema::QuantParamT>> quantParams{};
493   std::vector<float> quantClusters{};
494   std::string name{};
495   bool enableHuffmanCode = false;
496   mindspore::schema::WeightQuantCompressType weightQuantCompressType = mindspore::schema::WeightQuantCompressType_NONE;
497   std::vector<std::unique_ptr<mindspore::schema::ExternalDataT>> externalData{};
498   TensorT() = default;
499   TensorT(const TensorT &o);
500   TensorT(TensorT&&) FLATBUFFERS_NOEXCEPT = default;
501   TensorT &operator=(TensorT o) FLATBUFFERS_NOEXCEPT;
502 };
503 
504 struct Tensor FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
505   typedef TensorT NativeTableType;
506   typedef TensorBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS507   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
508     return TensorTypeTable();
509   }
510   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
511     VT_NODETYPE = 4,
512     VT_DATATYPE = 6,
513     VT_DIMS = 8,
514     VT_FORMAT = 10,
515     VT_REFCOUNT = 12,
516     VT_OFFSET = 14,
517     VT_DATA = 16,
518     VT_QUANTPARAMS = 18,
519     VT_QUANTCLUSTERS = 20,
520     VT_NAME = 22,
521     VT_ENABLEHUFFMANCODE = 24,
522     VT_WEIGHTQUANTCOMPRESSTYPE = 26,
523     VT_EXTERNALDATA = 28
524   };
nodeTypeFLATBUFFERS_FINAL_CLASS525   int32_t nodeType() const {
526     return GetField<int32_t>(VT_NODETYPE, 0);
527   }
528   bool mutate_nodeType(int32_t _nodeType = 0) {
529     return SetField<int32_t>(VT_NODETYPE, _nodeType, 0);
530   }
dataTypeFLATBUFFERS_FINAL_CLASS531   int32_t dataType() const {
532     return GetField<int32_t>(VT_DATATYPE, 0);
533   }
534   bool mutate_dataType(int32_t _dataType = 0) {
535     return SetField<int32_t>(VT_DATATYPE, _dataType, 0);
536   }
dimsFLATBUFFERS_FINAL_CLASS537   const ::flatbuffers::Vector<int32_t> *dims() const {
538     return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_DIMS);
539   }
mutable_dimsFLATBUFFERS_FINAL_CLASS540   ::flatbuffers::Vector<int32_t> *mutable_dims() {
541     return GetPointer<::flatbuffers::Vector<int32_t> *>(VT_DIMS);
542   }
formatFLATBUFFERS_FINAL_CLASS543   mindspore::schema::Format format() const {
544     return static_cast<mindspore::schema::Format>(GetField<int32_t>(VT_FORMAT, 0));
545   }
546   bool mutate_format(mindspore::schema::Format _format = static_cast<mindspore::schema::Format>(0)) {
547     return SetField<int32_t>(VT_FORMAT, static_cast<int32_t>(_format), 0);
548   }
refCountFLATBUFFERS_FINAL_CLASS549   int32_t refCount() const {
550     return GetField<int32_t>(VT_REFCOUNT, 0);
551   }
552   bool mutate_refCount(int32_t _refCount = 0) {
553     return SetField<int32_t>(VT_REFCOUNT, _refCount, 0);
554   }
offsetFLATBUFFERS_FINAL_CLASS555   int32_t offset() const {
556     return GetField<int32_t>(VT_OFFSET, 0);
557   }
558   bool mutate_offset(int32_t _offset = 0) {
559     return SetField<int32_t>(VT_OFFSET, _offset, 0);
560   }
dataFLATBUFFERS_FINAL_CLASS561   const ::flatbuffers::Vector<uint8_t> *data() const {
562     return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(VT_DATA);
563   }
mutable_dataFLATBUFFERS_FINAL_CLASS564   ::flatbuffers::Vector<uint8_t> *mutable_data() {
565     return GetPointer<::flatbuffers::Vector<uint8_t> *>(VT_DATA);
566   }
quantParamsFLATBUFFERS_FINAL_CLASS567   const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>> *quantParams() const {
568     return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>> *>(VT_QUANTPARAMS);
569   }
mutable_quantParamsFLATBUFFERS_FINAL_CLASS570   ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>> *mutable_quantParams() {
571     return GetPointer<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>> *>(VT_QUANTPARAMS);
572   }
quantClustersFLATBUFFERS_FINAL_CLASS573   const ::flatbuffers::Vector<float> *quantClusters() const {
574     return GetPointer<const ::flatbuffers::Vector<float> *>(VT_QUANTCLUSTERS);
575   }
mutable_quantClustersFLATBUFFERS_FINAL_CLASS576   ::flatbuffers::Vector<float> *mutable_quantClusters() {
577     return GetPointer<::flatbuffers::Vector<float> *>(VT_QUANTCLUSTERS);
578   }
nameFLATBUFFERS_FINAL_CLASS579   const ::flatbuffers::String *name() const {
580     return GetPointer<const ::flatbuffers::String *>(VT_NAME);
581   }
mutable_nameFLATBUFFERS_FINAL_CLASS582   ::flatbuffers::String *mutable_name() {
583     return GetPointer<::flatbuffers::String *>(VT_NAME);
584   }
enableHuffmanCodeFLATBUFFERS_FINAL_CLASS585   bool enableHuffmanCode() const {
586     return GetField<uint8_t>(VT_ENABLEHUFFMANCODE, 0) != 0;
587   }
588   bool mutate_enableHuffmanCode(bool _enableHuffmanCode = 0) {
589     return SetField<uint8_t>(VT_ENABLEHUFFMANCODE, static_cast<uint8_t>(_enableHuffmanCode), 0);
590   }
weightQuantCompressTypeFLATBUFFERS_FINAL_CLASS591   mindspore::schema::WeightQuantCompressType weightQuantCompressType() const {
592     return static_cast<mindspore::schema::WeightQuantCompressType>(GetField<int32_t>(VT_WEIGHTQUANTCOMPRESSTYPE, 0));
593   }
594   bool mutate_weightQuantCompressType(mindspore::schema::WeightQuantCompressType _weightQuantCompressType = static_cast<mindspore::schema::WeightQuantCompressType>(0)) {
595     return SetField<int32_t>(VT_WEIGHTQUANTCOMPRESSTYPE, static_cast<int32_t>(_weightQuantCompressType), 0);
596   }
externalDataFLATBUFFERS_FINAL_CLASS597   const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>> *externalData() const {
598     return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>> *>(VT_EXTERNALDATA);
599   }
mutable_externalDataFLATBUFFERS_FINAL_CLASS600   ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>> *mutable_externalData() {
601     return GetPointer<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>> *>(VT_EXTERNALDATA);
602   }
VerifyFLATBUFFERS_FINAL_CLASS603   bool Verify(::flatbuffers::Verifier &verifier) const {
604     return VerifyTableStart(verifier) &&
605            VerifyField<int32_t>(verifier, VT_NODETYPE, 4) &&
606            VerifyField<int32_t>(verifier, VT_DATATYPE, 4) &&
607            VerifyOffset(verifier, VT_DIMS) &&
608            verifier.VerifyVector(dims()) &&
609            VerifyField<int32_t>(verifier, VT_FORMAT, 4) &&
610            VerifyField<int32_t>(verifier, VT_REFCOUNT, 4) &&
611            VerifyField<int32_t>(verifier, VT_OFFSET, 4) &&
612            VerifyOffset(verifier, VT_DATA) &&
613            verifier.VerifyVector(data()) &&
614            VerifyOffset(verifier, VT_QUANTPARAMS) &&
615            verifier.VerifyVector(quantParams()) &&
616            verifier.VerifyVectorOfTables(quantParams()) &&
617            VerifyOffset(verifier, VT_QUANTCLUSTERS) &&
618            verifier.VerifyVector(quantClusters()) &&
619            VerifyOffset(verifier, VT_NAME) &&
620            verifier.VerifyString(name()) &&
621            VerifyField<uint8_t>(verifier, VT_ENABLEHUFFMANCODE, 1) &&
622            VerifyField<int32_t>(verifier, VT_WEIGHTQUANTCOMPRESSTYPE, 4) &&
623            VerifyOffset(verifier, VT_EXTERNALDATA) &&
624            verifier.VerifyVector(externalData()) &&
625            verifier.VerifyVectorOfTables(externalData()) &&
626            verifier.EndTable();
627   }
628   TensorT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
629   void UnPackTo(TensorT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
630   static ::flatbuffers::Offset<Tensor> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const TensorT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
631 };
632 
633 struct TensorBuilder {
634   typedef Tensor Table;
635   ::flatbuffers::FlatBufferBuilder &fbb_;
636   ::flatbuffers::uoffset_t start_;
add_nodeTypeTensorBuilder637   void add_nodeType(int32_t nodeType) {
638     fbb_.AddElement<int32_t>(Tensor::VT_NODETYPE, nodeType, 0);
639   }
add_dataTypeTensorBuilder640   void add_dataType(int32_t dataType) {
641     fbb_.AddElement<int32_t>(Tensor::VT_DATATYPE, dataType, 0);
642   }
add_dimsTensorBuilder643   void add_dims(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dims) {
644     fbb_.AddOffset(Tensor::VT_DIMS, dims);
645   }
add_formatTensorBuilder646   void add_format(mindspore::schema::Format format) {
647     fbb_.AddElement<int32_t>(Tensor::VT_FORMAT, static_cast<int32_t>(format), 0);
648   }
add_refCountTensorBuilder649   void add_refCount(int32_t refCount) {
650     fbb_.AddElement<int32_t>(Tensor::VT_REFCOUNT, refCount, 0);
651   }
add_offsetTensorBuilder652   void add_offset(int32_t offset) {
653     fbb_.AddElement<int32_t>(Tensor::VT_OFFSET, offset, 0);
654   }
add_dataTensorBuilder655   void add_data(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data) {
656     fbb_.AddOffset(Tensor::VT_DATA, data);
657   }
add_quantParamsTensorBuilder658   void add_quantParams(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>>> quantParams) {
659     fbb_.AddOffset(Tensor::VT_QUANTPARAMS, quantParams);
660   }
add_quantClustersTensorBuilder661   void add_quantClusters(::flatbuffers::Offset<::flatbuffers::Vector<float>> quantClusters) {
662     fbb_.AddOffset(Tensor::VT_QUANTCLUSTERS, quantClusters);
663   }
add_nameTensorBuilder664   void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
665     fbb_.AddOffset(Tensor::VT_NAME, name);
666   }
add_enableHuffmanCodeTensorBuilder667   void add_enableHuffmanCode(bool enableHuffmanCode) {
668     fbb_.AddElement<uint8_t>(Tensor::VT_ENABLEHUFFMANCODE, static_cast<uint8_t>(enableHuffmanCode), 0);
669   }
add_weightQuantCompressTypeTensorBuilder670   void add_weightQuantCompressType(mindspore::schema::WeightQuantCompressType weightQuantCompressType) {
671     fbb_.AddElement<int32_t>(Tensor::VT_WEIGHTQUANTCOMPRESSTYPE, static_cast<int32_t>(weightQuantCompressType), 0);
672   }
add_externalDataTensorBuilder673   void add_externalData(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>>> externalData) {
674     fbb_.AddOffset(Tensor::VT_EXTERNALDATA, externalData);
675   }
TensorBuilderTensorBuilder676   explicit TensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
677         : fbb_(_fbb) {
678     start_ = fbb_.StartTable();
679   }
FinishTensorBuilder680   ::flatbuffers::Offset<Tensor> Finish() {
681     const auto end = fbb_.EndTable(start_);
682     auto o = ::flatbuffers::Offset<Tensor>(end);
683     return o;
684   }
685 };
686 
687 inline ::flatbuffers::Offset<Tensor> CreateTensor(
688     ::flatbuffers::FlatBufferBuilder &_fbb,
689     int32_t nodeType = 0,
690     int32_t dataType = 0,
691     ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dims = 0,
692     mindspore::schema::Format format = mindspore::schema::Format_NCHW,
693     int32_t refCount = 0,
694     int32_t offset = 0,
695     ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data = 0,
696     ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::QuantParam>>> quantParams = 0,
697     ::flatbuffers::Offset<::flatbuffers::Vector<float>> quantClusters = 0,
698     ::flatbuffers::Offset<::flatbuffers::String> name = 0,
699     bool enableHuffmanCode = false,
700     mindspore::schema::WeightQuantCompressType weightQuantCompressType = mindspore::schema::WeightQuantCompressType_NONE,
701     ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::ExternalData>>> externalData = 0) {
702   TensorBuilder builder_(_fbb);
703   builder_.add_externalData(externalData);
704   builder_.add_weightQuantCompressType(weightQuantCompressType);
705   builder_.add_name(name);
706   builder_.add_quantClusters(quantClusters);
707   builder_.add_quantParams(quantParams);
708   builder_.add_data(data);
709   builder_.add_offset(offset);
710   builder_.add_refCount(refCount);
711   builder_.add_format(format);
712   builder_.add_dims(dims);
713   builder_.add_dataType(dataType);
714   builder_.add_nodeType(nodeType);
715   builder_.add_enableHuffmanCode(enableHuffmanCode);
716   return builder_.Finish();
717 }
718 
719 inline ::flatbuffers::Offset<Tensor> CreateTensorDirect(
720     ::flatbuffers::FlatBufferBuilder &_fbb,
721     int32_t nodeType = 0,
722     int32_t dataType = 0,
723     const std::vector<int32_t> *dims = nullptr,
724     mindspore::schema::Format format = mindspore::schema::Format_NCHW,
725     int32_t refCount = 0,
726     int32_t offset = 0,
727     const std::vector<uint8_t> *data = nullptr,
728     const std::vector<::flatbuffers::Offset<mindspore::schema::QuantParam>> *quantParams = nullptr,
729     const std::vector<float> *quantClusters = nullptr,
730     const char *name = nullptr,
731     bool enableHuffmanCode = false,
732     mindspore::schema::WeightQuantCompressType weightQuantCompressType = mindspore::schema::WeightQuantCompressType_NONE,
733     const std::vector<::flatbuffers::Offset<mindspore::schema::ExternalData>> *externalData = nullptr) {
734   auto dims__ = dims ? _fbb.CreateVector<int32_t>(*dims) : 0;
735   auto data__ = data ? _fbb.CreateVector<uint8_t>(*data) : 0;
736   auto quantParams__ = quantParams ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::QuantParam>>(*quantParams) : 0;
737   auto quantClusters__ = quantClusters ? _fbb.CreateVector<float>(*quantClusters) : 0;
738   auto name__ = name ? _fbb.CreateString(name) : 0;
739   auto externalData__ = externalData ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::ExternalData>>(*externalData) : 0;
740   return mindspore::schema::CreateTensor(
741       _fbb,
742       nodeType,
743       dataType,
744       dims__,
745       format,
746       refCount,
747       offset,
748       data__,
749       quantParams__,
750       quantClusters__,
751       name__,
752       enableHuffmanCode,
753       weightQuantCompressType,
754       externalData__);
755 }
756 
757 ::flatbuffers::Offset<Tensor> CreateTensor(::flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
758 
759 struct PrimitiveT : public ::flatbuffers::NativeTable {
760   typedef Primitive TableType;
761   mindspore::schema::PrimitiveTypeUnion value{};
762 };
763 
764 struct Primitive FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
765   typedef PrimitiveT NativeTableType;
766   typedef PrimitiveBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS767   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
768     return PrimitiveTypeTable();
769   }
770   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
771     VT_VALUE_TYPE = 4,
772     VT_VALUE = 6
773   };
value_typeFLATBUFFERS_FINAL_CLASS774   mindspore::schema::PrimitiveType value_type() const {
775     return static_cast<mindspore::schema::PrimitiveType>(GetField<uint8_t>(VT_VALUE_TYPE, 0));
776   }
valueFLATBUFFERS_FINAL_CLASS777   const void *value() const {
778     return GetPointer<const void *>(VT_VALUE);
779   }
780   template<typename T> const T *value_as() const;
value_as_AbsFLATBUFFERS_FINAL_CLASS781   const mindspore::schema::Abs *value_as_Abs() const {
782     return value_type() == mindspore::schema::PrimitiveType_Abs ? static_cast<const mindspore::schema::Abs *>(value()) : nullptr;
783   }
value_as_ActivationFLATBUFFERS_FINAL_CLASS784   const mindspore::schema::Activation *value_as_Activation() const {
785     return value_type() == mindspore::schema::PrimitiveType_Activation ? static_cast<const mindspore::schema::Activation *>(value()) : nullptr;
786   }
value_as_ActivationGradFLATBUFFERS_FINAL_CLASS787   const mindspore::schema::ActivationGrad *value_as_ActivationGrad() const {
788     return value_type() == mindspore::schema::PrimitiveType_ActivationGrad ? static_cast<const mindspore::schema::ActivationGrad *>(value()) : nullptr;
789   }
value_as_AdamFLATBUFFERS_FINAL_CLASS790   const mindspore::schema::Adam *value_as_Adam() const {
791     return value_type() == mindspore::schema::PrimitiveType_Adam ? static_cast<const mindspore::schema::Adam *>(value()) : nullptr;
792   }
value_as_AddFusionFLATBUFFERS_FINAL_CLASS793   const mindspore::schema::AddFusion *value_as_AddFusion() const {
794     return value_type() == mindspore::schema::PrimitiveType_AddFusion ? static_cast<const mindspore::schema::AddFusion *>(value()) : nullptr;
795   }
value_as_AdderFusionFLATBUFFERS_FINAL_CLASS796   const mindspore::schema::AdderFusion *value_as_AdderFusion() const {
797     return value_type() == mindspore::schema::PrimitiveType_AdderFusion ? static_cast<const mindspore::schema::AdderFusion *>(value()) : nullptr;
798   }
value_as_AddGradFLATBUFFERS_FINAL_CLASS799   const mindspore::schema::AddGrad *value_as_AddGrad() const {
800     return value_type() == mindspore::schema::PrimitiveType_AddGrad ? static_cast<const mindspore::schema::AddGrad *>(value()) : nullptr;
801   }
value_as_AddNFLATBUFFERS_FINAL_CLASS802   const mindspore::schema::AddN *value_as_AddN() const {
803     return value_type() == mindspore::schema::PrimitiveType_AddN ? static_cast<const mindspore::schema::AddN *>(value()) : nullptr;
804   }
value_as_AllFLATBUFFERS_FINAL_CLASS805   const mindspore::schema::All *value_as_All() const {
806     return value_type() == mindspore::schema::PrimitiveType_All ? static_cast<const mindspore::schema::All *>(value()) : nullptr;
807   }
value_as_ApplyMomentumFLATBUFFERS_FINAL_CLASS808   const mindspore::schema::ApplyMomentum *value_as_ApplyMomentum() const {
809     return value_type() == mindspore::schema::PrimitiveType_ApplyMomentum ? static_cast<const mindspore::schema::ApplyMomentum *>(value()) : nullptr;
810   }
value_as_ArgMaxFusionFLATBUFFERS_FINAL_CLASS811   const mindspore::schema::ArgMaxFusion *value_as_ArgMaxFusion() const {
812     return value_type() == mindspore::schema::PrimitiveType_ArgMaxFusion ? static_cast<const mindspore::schema::ArgMaxFusion *>(value()) : nullptr;
813   }
value_as_ArgMinFusionFLATBUFFERS_FINAL_CLASS814   const mindspore::schema::ArgMinFusion *value_as_ArgMinFusion() const {
815     return value_type() == mindspore::schema::PrimitiveType_ArgMinFusion ? static_cast<const mindspore::schema::ArgMinFusion *>(value()) : nullptr;
816   }
value_as_AssertFLATBUFFERS_FINAL_CLASS817   const mindspore::schema::Assert *value_as_Assert() const {
818     return value_type() == mindspore::schema::PrimitiveType_Assert ? static_cast<const mindspore::schema::Assert *>(value()) : nullptr;
819   }
value_as_AssignFLATBUFFERS_FINAL_CLASS820   const mindspore::schema::Assign *value_as_Assign() const {
821     return value_type() == mindspore::schema::PrimitiveType_Assign ? static_cast<const mindspore::schema::Assign *>(value()) : nullptr;
822   }
value_as_AssignAddFLATBUFFERS_FINAL_CLASS823   const mindspore::schema::AssignAdd *value_as_AssignAdd() const {
824     return value_type() == mindspore::schema::PrimitiveType_AssignAdd ? static_cast<const mindspore::schema::AssignAdd *>(value()) : nullptr;
825   }
value_as_AudioSpectrogramFLATBUFFERS_FINAL_CLASS826   const mindspore::schema::AudioSpectrogram *value_as_AudioSpectrogram() const {
827     return value_type() == mindspore::schema::PrimitiveType_AudioSpectrogram ? static_cast<const mindspore::schema::AudioSpectrogram *>(value()) : nullptr;
828   }
value_as_AvgPoolFusionFLATBUFFERS_FINAL_CLASS829   const mindspore::schema::AvgPoolFusion *value_as_AvgPoolFusion() const {
830     return value_type() == mindspore::schema::PrimitiveType_AvgPoolFusion ? static_cast<const mindspore::schema::AvgPoolFusion *>(value()) : nullptr;
831   }
value_as_AvgPoolGradFLATBUFFERS_FINAL_CLASS832   const mindspore::schema::AvgPoolGrad *value_as_AvgPoolGrad() const {
833     return value_type() == mindspore::schema::PrimitiveType_AvgPoolGrad ? static_cast<const mindspore::schema::AvgPoolGrad *>(value()) : nullptr;
834   }
value_as_BatchNormFLATBUFFERS_FINAL_CLASS835   const mindspore::schema::BatchNorm *value_as_BatchNorm() const {
836     return value_type() == mindspore::schema::PrimitiveType_BatchNorm ? static_cast<const mindspore::schema::BatchNorm *>(value()) : nullptr;
837   }
value_as_BatchNormGradFLATBUFFERS_FINAL_CLASS838   const mindspore::schema::BatchNormGrad *value_as_BatchNormGrad() const {
839     return value_type() == mindspore::schema::PrimitiveType_BatchNormGrad ? static_cast<const mindspore::schema::BatchNormGrad *>(value()) : nullptr;
840   }
value_as_BatchToSpaceFLATBUFFERS_FINAL_CLASS841   const mindspore::schema::BatchToSpace *value_as_BatchToSpace() const {
842     return value_type() == mindspore::schema::PrimitiveType_BatchToSpace ? static_cast<const mindspore::schema::BatchToSpace *>(value()) : nullptr;
843   }
value_as_BatchToSpaceNDFLATBUFFERS_FINAL_CLASS844   const mindspore::schema::BatchToSpaceND *value_as_BatchToSpaceND() const {
845     return value_type() == mindspore::schema::PrimitiveType_BatchToSpaceND ? static_cast<const mindspore::schema::BatchToSpaceND *>(value()) : nullptr;
846   }
value_as_BiasAddFLATBUFFERS_FINAL_CLASS847   const mindspore::schema::BiasAdd *value_as_BiasAdd() const {
848     return value_type() == mindspore::schema::PrimitiveType_BiasAdd ? static_cast<const mindspore::schema::BiasAdd *>(value()) : nullptr;
849   }
value_as_BinaryCrossEntropyFLATBUFFERS_FINAL_CLASS850   const mindspore::schema::BinaryCrossEntropy *value_as_BinaryCrossEntropy() const {
851     return value_type() == mindspore::schema::PrimitiveType_BinaryCrossEntropy ? static_cast<const mindspore::schema::BinaryCrossEntropy *>(value()) : nullptr;
852   }
value_as_BinaryCrossEntropyGradFLATBUFFERS_FINAL_CLASS853   const mindspore::schema::BinaryCrossEntropyGrad *value_as_BinaryCrossEntropyGrad() const {
854     return value_type() == mindspore::schema::PrimitiveType_BinaryCrossEntropyGrad ? static_cast<const mindspore::schema::BinaryCrossEntropyGrad *>(value()) : nullptr;
855   }
value_as_BiasAddGradFLATBUFFERS_FINAL_CLASS856   const mindspore::schema::BiasAddGrad *value_as_BiasAddGrad() const {
857     return value_type() == mindspore::schema::PrimitiveType_BiasAddGrad ? static_cast<const mindspore::schema::BiasAddGrad *>(value()) : nullptr;
858   }
value_as_BroadcastToFLATBUFFERS_FINAL_CLASS859   const mindspore::schema::BroadcastTo *value_as_BroadcastTo() const {
860     return value_type() == mindspore::schema::PrimitiveType_BroadcastTo ? static_cast<const mindspore::schema::BroadcastTo *>(value()) : nullptr;
861   }
value_as_CastFLATBUFFERS_FINAL_CLASS862   const mindspore::schema::Cast *value_as_Cast() const {
863     return value_type() == mindspore::schema::PrimitiveType_Cast ? static_cast<const mindspore::schema::Cast *>(value()) : nullptr;
864   }
value_as_CeilFLATBUFFERS_FINAL_CLASS865   const mindspore::schema::Ceil *value_as_Ceil() const {
866     return value_type() == mindspore::schema::PrimitiveType_Ceil ? static_cast<const mindspore::schema::Ceil *>(value()) : nullptr;
867   }
value_as_ClipFLATBUFFERS_FINAL_CLASS868   const mindspore::schema::Clip *value_as_Clip() const {
869     return value_type() == mindspore::schema::PrimitiveType_Clip ? static_cast<const mindspore::schema::Clip *>(value()) : nullptr;
870   }
value_as_ConcatFLATBUFFERS_FINAL_CLASS871   const mindspore::schema::Concat *value_as_Concat() const {
872     return value_type() == mindspore::schema::PrimitiveType_Concat ? static_cast<const mindspore::schema::Concat *>(value()) : nullptr;
873   }
value_as_AttentionFLATBUFFERS_FINAL_CLASS874   const mindspore::schema::Attention *value_as_Attention() const {
875     return value_type() == mindspore::schema::PrimitiveType_Attention ? static_cast<const mindspore::schema::Attention *>(value()) : nullptr;
876   }
value_as_Conv2DBackpropFilterFusionFLATBUFFERS_FINAL_CLASS877   const mindspore::schema::Conv2DBackpropFilterFusion *value_as_Conv2DBackpropFilterFusion() const {
878     return value_type() == mindspore::schema::PrimitiveType_Conv2DBackpropFilterFusion ? static_cast<const mindspore::schema::Conv2DBackpropFilterFusion *>(value()) : nullptr;
879   }
value_as_Conv2DBackpropInputFusionFLATBUFFERS_FINAL_CLASS880   const mindspore::schema::Conv2DBackpropInputFusion *value_as_Conv2DBackpropInputFusion() const {
881     return value_type() == mindspore::schema::PrimitiveType_Conv2DBackpropInputFusion ? static_cast<const mindspore::schema::Conv2DBackpropInputFusion *>(value()) : nullptr;
882   }
value_as_Conv2DFusionFLATBUFFERS_FINAL_CLASS883   const mindspore::schema::Conv2DFusion *value_as_Conv2DFusion() const {
884     return value_type() == mindspore::schema::PrimitiveType_Conv2DFusion ? static_cast<const mindspore::schema::Conv2DFusion *>(value()) : nullptr;
885   }
value_as_Conv2dTransposeFusionFLATBUFFERS_FINAL_CLASS886   const mindspore::schema::Conv2dTransposeFusion *value_as_Conv2dTransposeFusion() const {
887     return value_type() == mindspore::schema::PrimitiveType_Conv2dTransposeFusion ? static_cast<const mindspore::schema::Conv2dTransposeFusion *>(value()) : nullptr;
888   }
value_as_CosFLATBUFFERS_FINAL_CLASS889   const mindspore::schema::Cos *value_as_Cos() const {
890     return value_type() == mindspore::schema::PrimitiveType_Cos ? static_cast<const mindspore::schema::Cos *>(value()) : nullptr;
891   }
value_as_ConstantOfShapeFLATBUFFERS_FINAL_CLASS892   const mindspore::schema::ConstantOfShape *value_as_ConstantOfShape() const {
893     return value_type() == mindspore::schema::PrimitiveType_ConstantOfShape ? static_cast<const mindspore::schema::ConstantOfShape *>(value()) : nullptr;
894   }
value_as_CropFLATBUFFERS_FINAL_CLASS895   const mindspore::schema::Crop *value_as_Crop() const {
896     return value_type() == mindspore::schema::PrimitiveType_Crop ? static_cast<const mindspore::schema::Crop *>(value()) : nullptr;
897   }
value_as_CustomExtractFeaturesFLATBUFFERS_FINAL_CLASS898   const mindspore::schema::CustomExtractFeatures *value_as_CustomExtractFeatures() const {
899     return value_type() == mindspore::schema::PrimitiveType_CustomExtractFeatures ? static_cast<const mindspore::schema::CustomExtractFeatures *>(value()) : nullptr;
900   }
value_as_CustomNormalizeFLATBUFFERS_FINAL_CLASS901   const mindspore::schema::CustomNormalize *value_as_CustomNormalize() const {
902     return value_type() == mindspore::schema::PrimitiveType_CustomNormalize ? static_cast<const mindspore::schema::CustomNormalize *>(value()) : nullptr;
903   }
value_as_CustomPredictFLATBUFFERS_FINAL_CLASS904   const mindspore::schema::CustomPredict *value_as_CustomPredict() const {
905     return value_type() == mindspore::schema::PrimitiveType_CustomPredict ? static_cast<const mindspore::schema::CustomPredict *>(value()) : nullptr;
906   }
value_as_DeConv2DGradFilterFLATBUFFERS_FINAL_CLASS907   const mindspore::schema::DeConv2DGradFilter *value_as_DeConv2DGradFilter() const {
908     return value_type() == mindspore::schema::PrimitiveType_DeConv2DGradFilter ? static_cast<const mindspore::schema::DeConv2DGradFilter *>(value()) : nullptr;
909   }
value_as_DependFLATBUFFERS_FINAL_CLASS910   const mindspore::schema::Depend *value_as_Depend() const {
911     return value_type() == mindspore::schema::PrimitiveType_Depend ? static_cast<const mindspore::schema::Depend *>(value()) : nullptr;
912   }
value_as_DepthToSpaceFLATBUFFERS_FINAL_CLASS913   const mindspore::schema::DepthToSpace *value_as_DepthToSpace() const {
914     return value_type() == mindspore::schema::PrimitiveType_DepthToSpace ? static_cast<const mindspore::schema::DepthToSpace *>(value()) : nullptr;
915   }
value_as_DetectionPostProcessFLATBUFFERS_FINAL_CLASS916   const mindspore::schema::DetectionPostProcess *value_as_DetectionPostProcess() const {
917     return value_type() == mindspore::schema::PrimitiveType_DetectionPostProcess ? static_cast<const mindspore::schema::DetectionPostProcess *>(value()) : nullptr;
918   }
value_as_DivFusionFLATBUFFERS_FINAL_CLASS919   const mindspore::schema::DivFusion *value_as_DivFusion() const {
920     return value_type() == mindspore::schema::PrimitiveType_DivFusion ? static_cast<const mindspore::schema::DivFusion *>(value()) : nullptr;
921   }
value_as_DivGradFLATBUFFERS_FINAL_CLASS922   const mindspore::schema::DivGrad *value_as_DivGrad() const {
923     return value_type() == mindspore::schema::PrimitiveType_DivGrad ? static_cast<const mindspore::schema::DivGrad *>(value()) : nullptr;
924   }
value_as_DropoutFLATBUFFERS_FINAL_CLASS925   const mindspore::schema::Dropout *value_as_Dropout() const {
926     return value_type() == mindspore::schema::PrimitiveType_Dropout ? static_cast<const mindspore::schema::Dropout *>(value()) : nullptr;
927   }
value_as_DropoutGradFLATBUFFERS_FINAL_CLASS928   const mindspore::schema::DropoutGrad *value_as_DropoutGrad() const {
929     return value_type() == mindspore::schema::PrimitiveType_DropoutGrad ? static_cast<const mindspore::schema::DropoutGrad *>(value()) : nullptr;
930   }
value_as_EluFLATBUFFERS_FINAL_CLASS931   const mindspore::schema::Elu *value_as_Elu() const {
932     return value_type() == mindspore::schema::PrimitiveType_Elu ? static_cast<const mindspore::schema::Elu *>(value()) : nullptr;
933   }
value_as_EltwiseFLATBUFFERS_FINAL_CLASS934   const mindspore::schema::Eltwise *value_as_Eltwise() const {
935     return value_type() == mindspore::schema::PrimitiveType_Eltwise ? static_cast<const mindspore::schema::Eltwise *>(value()) : nullptr;
936   }
value_as_EqualFLATBUFFERS_FINAL_CLASS937   const mindspore::schema::Equal *value_as_Equal() const {
938     return value_type() == mindspore::schema::PrimitiveType_Equal ? static_cast<const mindspore::schema::Equal *>(value()) : nullptr;
939   }
value_as_EmbeddingLookupFusionFLATBUFFERS_FINAL_CLASS940   const mindspore::schema::EmbeddingLookupFusion *value_as_EmbeddingLookupFusion() const {
941     return value_type() == mindspore::schema::PrimitiveType_EmbeddingLookupFusion ? static_cast<const mindspore::schema::EmbeddingLookupFusion *>(value()) : nullptr;
942   }
value_as_ExpFusionFLATBUFFERS_FINAL_CLASS943   const mindspore::schema::ExpFusion *value_as_ExpFusion() const {
944     return value_type() == mindspore::schema::PrimitiveType_ExpFusion ? static_cast<const mindspore::schema::ExpFusion *>(value()) : nullptr;
945   }
value_as_ExpandDimsFLATBUFFERS_FINAL_CLASS946   const mindspore::schema::ExpandDims *value_as_ExpandDims() const {
947     return value_type() == mindspore::schema::PrimitiveType_ExpandDims ? static_cast<const mindspore::schema::ExpandDims *>(value()) : nullptr;
948   }
value_as_FakeQuantWithMinMaxVarsFLATBUFFERS_FINAL_CLASS949   const mindspore::schema::FakeQuantWithMinMaxVars *value_as_FakeQuantWithMinMaxVars() const {
950     return value_type() == mindspore::schema::PrimitiveType_FakeQuantWithMinMaxVars ? static_cast<const mindspore::schema::FakeQuantWithMinMaxVars *>(value()) : nullptr;
951   }
value_as_FakeQuantWithMinMaxVarsPerChannelFLATBUFFERS_FINAL_CLASS952   const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *value_as_FakeQuantWithMinMaxVarsPerChannel() const {
953     return value_type() == mindspore::schema::PrimitiveType_FakeQuantWithMinMaxVarsPerChannel ? static_cast<const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *>(value()) : nullptr;
954   }
value_as_FftRealFLATBUFFERS_FINAL_CLASS955   const mindspore::schema::FftReal *value_as_FftReal() const {
956     return value_type() == mindspore::schema::PrimitiveType_FftReal ? static_cast<const mindspore::schema::FftReal *>(value()) : nullptr;
957   }
value_as_FftImagFLATBUFFERS_FINAL_CLASS958   const mindspore::schema::FftImag *value_as_FftImag() const {
959     return value_type() == mindspore::schema::PrimitiveType_FftImag ? static_cast<const mindspore::schema::FftImag *>(value()) : nullptr;
960   }
value_as_FlattenFLATBUFFERS_FINAL_CLASS961   const mindspore::schema::Flatten *value_as_Flatten() const {
962     return value_type() == mindspore::schema::PrimitiveType_Flatten ? static_cast<const mindspore::schema::Flatten *>(value()) : nullptr;
963   }
value_as_FlattenGradFLATBUFFERS_FINAL_CLASS964   const mindspore::schema::FlattenGrad *value_as_FlattenGrad() const {
965     return value_type() == mindspore::schema::PrimitiveType_FlattenGrad ? static_cast<const mindspore::schema::FlattenGrad *>(value()) : nullptr;
966   }
value_as_FloorFLATBUFFERS_FINAL_CLASS967   const mindspore::schema::Floor *value_as_Floor() const {
968     return value_type() == mindspore::schema::PrimitiveType_Floor ? static_cast<const mindspore::schema::Floor *>(value()) : nullptr;
969   }
value_as_FloorDivFLATBUFFERS_FINAL_CLASS970   const mindspore::schema::FloorDiv *value_as_FloorDiv() const {
971     return value_type() == mindspore::schema::PrimitiveType_FloorDiv ? static_cast<const mindspore::schema::FloorDiv *>(value()) : nullptr;
972   }
value_as_FloorModFLATBUFFERS_FINAL_CLASS973   const mindspore::schema::FloorMod *value_as_FloorMod() const {
974     return value_type() == mindspore::schema::PrimitiveType_FloorMod ? static_cast<const mindspore::schema::FloorMod *>(value()) : nullptr;
975   }
value_as_FillFLATBUFFERS_FINAL_CLASS976   const mindspore::schema::Fill *value_as_Fill() const {
977     return value_type() == mindspore::schema::PrimitiveType_Fill ? static_cast<const mindspore::schema::Fill *>(value()) : nullptr;
978   }
value_as_FullConnectionFLATBUFFERS_FINAL_CLASS979   const mindspore::schema::FullConnection *value_as_FullConnection() const {
980     return value_type() == mindspore::schema::PrimitiveType_FullConnection ? static_cast<const mindspore::schema::FullConnection *>(value()) : nullptr;
981   }
value_as_FusedBatchNormFLATBUFFERS_FINAL_CLASS982   const mindspore::schema::FusedBatchNorm *value_as_FusedBatchNorm() const {
983     return value_type() == mindspore::schema::PrimitiveType_FusedBatchNorm ? static_cast<const mindspore::schema::FusedBatchNorm *>(value()) : nullptr;
984   }
value_as_GatherFLATBUFFERS_FINAL_CLASS985   const mindspore::schema::Gather *value_as_Gather() const {
986     return value_type() == mindspore::schema::PrimitiveType_Gather ? static_cast<const mindspore::schema::Gather *>(value()) : nullptr;
987   }
value_as_GatherNdFLATBUFFERS_FINAL_CLASS988   const mindspore::schema::GatherNd *value_as_GatherNd() const {
989     return value_type() == mindspore::schema::PrimitiveType_GatherNd ? static_cast<const mindspore::schema::GatherNd *>(value()) : nullptr;
990   }
value_as_GreaterFLATBUFFERS_FINAL_CLASS991   const mindspore::schema::Greater *value_as_Greater() const {
992     return value_type() == mindspore::schema::PrimitiveType_Greater ? static_cast<const mindspore::schema::Greater *>(value()) : nullptr;
993   }
value_as_GreaterEqualFLATBUFFERS_FINAL_CLASS994   const mindspore::schema::GreaterEqual *value_as_GreaterEqual() const {
995     return value_type() == mindspore::schema::PrimitiveType_GreaterEqual ? static_cast<const mindspore::schema::GreaterEqual *>(value()) : nullptr;
996   }
value_as_HashtableLookupFLATBUFFERS_FINAL_CLASS997   const mindspore::schema::HashtableLookup *value_as_HashtableLookup() const {
998     return value_type() == mindspore::schema::PrimitiveType_HashtableLookup ? static_cast<const mindspore::schema::HashtableLookup *>(value()) : nullptr;
999   }
value_as_InstanceNormFLATBUFFERS_FINAL_CLASS1000   const mindspore::schema::InstanceNorm *value_as_InstanceNorm() const {
1001     return value_type() == mindspore::schema::PrimitiveType_InstanceNorm ? static_cast<const mindspore::schema::InstanceNorm *>(value()) : nullptr;
1002   }
value_as_LayerNormFusionFLATBUFFERS_FINAL_CLASS1003   const mindspore::schema::LayerNormFusion *value_as_LayerNormFusion() const {
1004     return value_type() == mindspore::schema::PrimitiveType_LayerNormFusion ? static_cast<const mindspore::schema::LayerNormFusion *>(value()) : nullptr;
1005   }
value_as_LeakyReluFLATBUFFERS_FINAL_CLASS1006   const mindspore::schema::LeakyRelu *value_as_LeakyRelu() const {
1007     return value_type() == mindspore::schema::PrimitiveType_LeakyRelu ? static_cast<const mindspore::schema::LeakyRelu *>(value()) : nullptr;
1008   }
value_as_LessFLATBUFFERS_FINAL_CLASS1009   const mindspore::schema::Less *value_as_Less() const {
1010     return value_type() == mindspore::schema::PrimitiveType_Less ? static_cast<const mindspore::schema::Less *>(value()) : nullptr;
1011   }
value_as_LessEqualFLATBUFFERS_FINAL_CLASS1012   const mindspore::schema::LessEqual *value_as_LessEqual() const {
1013     return value_type() == mindspore::schema::PrimitiveType_LessEqual ? static_cast<const mindspore::schema::LessEqual *>(value()) : nullptr;
1014   }
value_as_LogFLATBUFFERS_FINAL_CLASS1015   const mindspore::schema::Log *value_as_Log() const {
1016     return value_type() == mindspore::schema::PrimitiveType_Log ? static_cast<const mindspore::schema::Log *>(value()) : nullptr;
1017   }
value_as_LogGradFLATBUFFERS_FINAL_CLASS1018   const mindspore::schema::LogGrad *value_as_LogGrad() const {
1019     return value_type() == mindspore::schema::PrimitiveType_LogGrad ? static_cast<const mindspore::schema::LogGrad *>(value()) : nullptr;
1020   }
value_as_LogicalAndFLATBUFFERS_FINAL_CLASS1021   const mindspore::schema::LogicalAnd *value_as_LogicalAnd() const {
1022     return value_type() == mindspore::schema::PrimitiveType_LogicalAnd ? static_cast<const mindspore::schema::LogicalAnd *>(value()) : nullptr;
1023   }
value_as_LogicalNotFLATBUFFERS_FINAL_CLASS1024   const mindspore::schema::LogicalNot *value_as_LogicalNot() const {
1025     return value_type() == mindspore::schema::PrimitiveType_LogicalNot ? static_cast<const mindspore::schema::LogicalNot *>(value()) : nullptr;
1026   }
value_as_LogicalOrFLATBUFFERS_FINAL_CLASS1027   const mindspore::schema::LogicalOr *value_as_LogicalOr() const {
1028     return value_type() == mindspore::schema::PrimitiveType_LogicalOr ? static_cast<const mindspore::schema::LogicalOr *>(value()) : nullptr;
1029   }
value_as_LpNormalizationFLATBUFFERS_FINAL_CLASS1030   const mindspore::schema::LpNormalization *value_as_LpNormalization() const {
1031     return value_type() == mindspore::schema::PrimitiveType_LpNormalization ? static_cast<const mindspore::schema::LpNormalization *>(value()) : nullptr;
1032   }
value_as_LRNFLATBUFFERS_FINAL_CLASS1033   const mindspore::schema::LRN *value_as_LRN() const {
1034     return value_type() == mindspore::schema::PrimitiveType_LRN ? static_cast<const mindspore::schema::LRN *>(value()) : nullptr;
1035   }
value_as_LshProjectionFLATBUFFERS_FINAL_CLASS1036   const mindspore::schema::LshProjection *value_as_LshProjection() const {
1037     return value_type() == mindspore::schema::PrimitiveType_LshProjection ? static_cast<const mindspore::schema::LshProjection *>(value()) : nullptr;
1038   }
value_as_LSTMFLATBUFFERS_FINAL_CLASS1039   const mindspore::schema::LSTM *value_as_LSTM() const {
1040     return value_type() == mindspore::schema::PrimitiveType_LSTM ? static_cast<const mindspore::schema::LSTM *>(value()) : nullptr;
1041   }
value_as_L2NormalizeFusionFLATBUFFERS_FINAL_CLASS1042   const mindspore::schema::L2NormalizeFusion *value_as_L2NormalizeFusion() const {
1043     return value_type() == mindspore::schema::PrimitiveType_L2NormalizeFusion ? static_cast<const mindspore::schema::L2NormalizeFusion *>(value()) : nullptr;
1044   }
value_as_MatMulFusionFLATBUFFERS_FINAL_CLASS1045   const mindspore::schema::MatMulFusion *value_as_MatMulFusion() const {
1046     return value_type() == mindspore::schema::PrimitiveType_MatMulFusion ? static_cast<const mindspore::schema::MatMulFusion *>(value()) : nullptr;
1047   }
value_as_MaximumFLATBUFFERS_FINAL_CLASS1048   const mindspore::schema::Maximum *value_as_Maximum() const {
1049     return value_type() == mindspore::schema::PrimitiveType_Maximum ? static_cast<const mindspore::schema::Maximum *>(value()) : nullptr;
1050   }
value_as_MaximumGradFLATBUFFERS_FINAL_CLASS1051   const mindspore::schema::MaximumGrad *value_as_MaximumGrad() const {
1052     return value_type() == mindspore::schema::PrimitiveType_MaximumGrad ? static_cast<const mindspore::schema::MaximumGrad *>(value()) : nullptr;
1053   }
value_as_MaxPoolFusionFLATBUFFERS_FINAL_CLASS1054   const mindspore::schema::MaxPoolFusion *value_as_MaxPoolFusion() const {
1055     return value_type() == mindspore::schema::PrimitiveType_MaxPoolFusion ? static_cast<const mindspore::schema::MaxPoolFusion *>(value()) : nullptr;
1056   }
value_as_MaxPoolGradFLATBUFFERS_FINAL_CLASS1057   const mindspore::schema::MaxPoolGrad *value_as_MaxPoolGrad() const {
1058     return value_type() == mindspore::schema::PrimitiveType_MaxPoolGrad ? static_cast<const mindspore::schema::MaxPoolGrad *>(value()) : nullptr;
1059   }
value_as_SwitchLayerFLATBUFFERS_FINAL_CLASS1060   const mindspore::schema::SwitchLayer *value_as_SwitchLayer() const {
1061     return value_type() == mindspore::schema::PrimitiveType_SwitchLayer ? static_cast<const mindspore::schema::SwitchLayer *>(value()) : nullptr;
1062   }
value_as_MfccFLATBUFFERS_FINAL_CLASS1063   const mindspore::schema::Mfcc *value_as_Mfcc() const {
1064     return value_type() == mindspore::schema::PrimitiveType_Mfcc ? static_cast<const mindspore::schema::Mfcc *>(value()) : nullptr;
1065   }
value_as_MinimumFLATBUFFERS_FINAL_CLASS1066   const mindspore::schema::Minimum *value_as_Minimum() const {
1067     return value_type() == mindspore::schema::PrimitiveType_Minimum ? static_cast<const mindspore::schema::Minimum *>(value()) : nullptr;
1068   }
value_as_MinimumGradFLATBUFFERS_FINAL_CLASS1069   const mindspore::schema::MinimumGrad *value_as_MinimumGrad() const {
1070     return value_type() == mindspore::schema::PrimitiveType_MinimumGrad ? static_cast<const mindspore::schema::MinimumGrad *>(value()) : nullptr;
1071   }
value_as_ModFLATBUFFERS_FINAL_CLASS1072   const mindspore::schema::Mod *value_as_Mod() const {
1073     return value_type() == mindspore::schema::PrimitiveType_Mod ? static_cast<const mindspore::schema::Mod *>(value()) : nullptr;
1074   }
value_as_MulFusionFLATBUFFERS_FINAL_CLASS1075   const mindspore::schema::MulFusion *value_as_MulFusion() const {
1076     return value_type() == mindspore::schema::PrimitiveType_MulFusion ? static_cast<const mindspore::schema::MulFusion *>(value()) : nullptr;
1077   }
value_as_MulGradFLATBUFFERS_FINAL_CLASS1078   const mindspore::schema::MulGrad *value_as_MulGrad() const {
1079     return value_type() == mindspore::schema::PrimitiveType_MulGrad ? static_cast<const mindspore::schema::MulGrad *>(value()) : nullptr;
1080   }
value_as_NegFLATBUFFERS_FINAL_CLASS1081   const mindspore::schema::Neg *value_as_Neg() const {
1082     return value_type() == mindspore::schema::PrimitiveType_Neg ? static_cast<const mindspore::schema::Neg *>(value()) : nullptr;
1083   }
value_as_NegGradFLATBUFFERS_FINAL_CLASS1084   const mindspore::schema::NegGrad *value_as_NegGrad() const {
1085     return value_type() == mindspore::schema::PrimitiveType_NegGrad ? static_cast<const mindspore::schema::NegGrad *>(value()) : nullptr;
1086   }
value_as_NotEqualFLATBUFFERS_FINAL_CLASS1087   const mindspore::schema::NotEqual *value_as_NotEqual() const {
1088     return value_type() == mindspore::schema::PrimitiveType_NotEqual ? static_cast<const mindspore::schema::NotEqual *>(value()) : nullptr;
1089   }
value_as_NonMaxSuppressionFLATBUFFERS_FINAL_CLASS1090   const mindspore::schema::NonMaxSuppression *value_as_NonMaxSuppression() const {
1091     return value_type() == mindspore::schema::PrimitiveType_NonMaxSuppression ? static_cast<const mindspore::schema::NonMaxSuppression *>(value()) : nullptr;
1092   }
value_as_OneHotFLATBUFFERS_FINAL_CLASS1093   const mindspore::schema::OneHot *value_as_OneHot() const {
1094     return value_type() == mindspore::schema::PrimitiveType_OneHot ? static_cast<const mindspore::schema::OneHot *>(value()) : nullptr;
1095   }
value_as_OnesLikeFLATBUFFERS_FINAL_CLASS1096   const mindspore::schema::OnesLike *value_as_OnesLike() const {
1097     return value_type() == mindspore::schema::PrimitiveType_OnesLike ? static_cast<const mindspore::schema::OnesLike *>(value()) : nullptr;
1098   }
value_as_PadFusionFLATBUFFERS_FINAL_CLASS1099   const mindspore::schema::PadFusion *value_as_PadFusion() const {
1100     return value_type() == mindspore::schema::PrimitiveType_PadFusion ? static_cast<const mindspore::schema::PadFusion *>(value()) : nullptr;
1101   }
value_as_PartialFusionFLATBUFFERS_FINAL_CLASS1102   const mindspore::schema::PartialFusion *value_as_PartialFusion() const {
1103     return value_type() == mindspore::schema::PrimitiveType_PartialFusion ? static_cast<const mindspore::schema::PartialFusion *>(value()) : nullptr;
1104   }
value_as_PowerGradFLATBUFFERS_FINAL_CLASS1105   const mindspore::schema::PowerGrad *value_as_PowerGrad() const {
1106     return value_type() == mindspore::schema::PrimitiveType_PowerGrad ? static_cast<const mindspore::schema::PowerGrad *>(value()) : nullptr;
1107   }
value_as_PowFusionFLATBUFFERS_FINAL_CLASS1108   const mindspore::schema::PowFusion *value_as_PowFusion() const {
1109     return value_type() == mindspore::schema::PrimitiveType_PowFusion ? static_cast<const mindspore::schema::PowFusion *>(value()) : nullptr;
1110   }
value_as_PriorBoxFLATBUFFERS_FINAL_CLASS1111   const mindspore::schema::PriorBox *value_as_PriorBox() const {
1112     return value_type() == mindspore::schema::PrimitiveType_PriorBox ? static_cast<const mindspore::schema::PriorBox *>(value()) : nullptr;
1113   }
value_as_PReLUFusionFLATBUFFERS_FINAL_CLASS1114   const mindspore::schema::PReLUFusion *value_as_PReLUFusion() const {
1115     return value_type() == mindspore::schema::PrimitiveType_PReLUFusion ? static_cast<const mindspore::schema::PReLUFusion *>(value()) : nullptr;
1116   }
value_as_QuantDTypeCastFLATBUFFERS_FINAL_CLASS1117   const mindspore::schema::QuantDTypeCast *value_as_QuantDTypeCast() const {
1118     return value_type() == mindspore::schema::PrimitiveType_QuantDTypeCast ? static_cast<const mindspore::schema::QuantDTypeCast *>(value()) : nullptr;
1119   }
value_as_RankFLATBUFFERS_FINAL_CLASS1120   const mindspore::schema::Rank *value_as_Rank() const {
1121     return value_type() == mindspore::schema::PrimitiveType_Rank ? static_cast<const mindspore::schema::Rank *>(value()) : nullptr;
1122   }
value_as_RangeFLATBUFFERS_FINAL_CLASS1123   const mindspore::schema::Range *value_as_Range() const {
1124     return value_type() == mindspore::schema::PrimitiveType_Range ? static_cast<const mindspore::schema::Range *>(value()) : nullptr;
1125   }
value_as_ReciprocalFLATBUFFERS_FINAL_CLASS1126   const mindspore::schema::Reciprocal *value_as_Reciprocal() const {
1127     return value_type() == mindspore::schema::PrimitiveType_Reciprocal ? static_cast<const mindspore::schema::Reciprocal *>(value()) : nullptr;
1128   }
value_as_RealDivFLATBUFFERS_FINAL_CLASS1129   const mindspore::schema::RealDiv *value_as_RealDiv() const {
1130     return value_type() == mindspore::schema::PrimitiveType_RealDiv ? static_cast<const mindspore::schema::RealDiv *>(value()) : nullptr;
1131   }
value_as_ReduceFusionFLATBUFFERS_FINAL_CLASS1132   const mindspore::schema::ReduceFusion *value_as_ReduceFusion() const {
1133     return value_type() == mindspore::schema::PrimitiveType_ReduceFusion ? static_cast<const mindspore::schema::ReduceFusion *>(value()) : nullptr;
1134   }
value_as_ReshapeFLATBUFFERS_FINAL_CLASS1135   const mindspore::schema::Reshape *value_as_Reshape() const {
1136     return value_type() == mindspore::schema::PrimitiveType_Reshape ? static_cast<const mindspore::schema::Reshape *>(value()) : nullptr;
1137   }
value_as_ResizeFLATBUFFERS_FINAL_CLASS1138   const mindspore::schema::Resize *value_as_Resize() const {
1139     return value_type() == mindspore::schema::PrimitiveType_Resize ? static_cast<const mindspore::schema::Resize *>(value()) : nullptr;
1140   }
value_as_ReverseSequenceFLATBUFFERS_FINAL_CLASS1141   const mindspore::schema::ReverseSequence *value_as_ReverseSequence() const {
1142     return value_type() == mindspore::schema::PrimitiveType_ReverseSequence ? static_cast<const mindspore::schema::ReverseSequence *>(value()) : nullptr;
1143   }
value_as_ReverseV2FLATBUFFERS_FINAL_CLASS1144   const mindspore::schema::ReverseV2 *value_as_ReverseV2() const {
1145     return value_type() == mindspore::schema::PrimitiveType_ReverseV2 ? static_cast<const mindspore::schema::ReverseV2 *>(value()) : nullptr;
1146   }
value_as_RfftFLATBUFFERS_FINAL_CLASS1147   const mindspore::schema::Rfft *value_as_Rfft() const {
1148     return value_type() == mindspore::schema::PrimitiveType_Rfft ? static_cast<const mindspore::schema::Rfft *>(value()) : nullptr;
1149   }
value_as_ROIPoolingFLATBUFFERS_FINAL_CLASS1150   const mindspore::schema::ROIPooling *value_as_ROIPooling() const {
1151     return value_type() == mindspore::schema::PrimitiveType_ROIPooling ? static_cast<const mindspore::schema::ROIPooling *>(value()) : nullptr;
1152   }
value_as_RoundFLATBUFFERS_FINAL_CLASS1153   const mindspore::schema::Round *value_as_Round() const {
1154     return value_type() == mindspore::schema::PrimitiveType_Round ? static_cast<const mindspore::schema::Round *>(value()) : nullptr;
1155   }
value_as_RsqrtFLATBUFFERS_FINAL_CLASS1156   const mindspore::schema::Rsqrt *value_as_Rsqrt() const {
1157     return value_type() == mindspore::schema::PrimitiveType_Rsqrt ? static_cast<const mindspore::schema::Rsqrt *>(value()) : nullptr;
1158   }
value_as_ScaleFusionFLATBUFFERS_FINAL_CLASS1159   const mindspore::schema::ScaleFusion *value_as_ScaleFusion() const {
1160     return value_type() == mindspore::schema::PrimitiveType_ScaleFusion ? static_cast<const mindspore::schema::ScaleFusion *>(value()) : nullptr;
1161   }
value_as_ScatterNdFLATBUFFERS_FINAL_CLASS1162   const mindspore::schema::ScatterNd *value_as_ScatterNd() const {
1163     return value_type() == mindspore::schema::PrimitiveType_ScatterNd ? static_cast<const mindspore::schema::ScatterNd *>(value()) : nullptr;
1164   }
value_as_SGDFLATBUFFERS_FINAL_CLASS1165   const mindspore::schema::SGD *value_as_SGD() const {
1166     return value_type() == mindspore::schema::PrimitiveType_SGD ? static_cast<const mindspore::schema::SGD *>(value()) : nullptr;
1167   }
value_as_ShapeFLATBUFFERS_FINAL_CLASS1168   const mindspore::schema::Shape *value_as_Shape() const {
1169     return value_type() == mindspore::schema::PrimitiveType_Shape ? static_cast<const mindspore::schema::Shape *>(value()) : nullptr;
1170   }
value_as_SigmoidCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1171   const mindspore::schema::SigmoidCrossEntropyWithLogits *value_as_SigmoidCrossEntropyWithLogits() const {
1172     return value_type() == mindspore::schema::PrimitiveType_SigmoidCrossEntropyWithLogits ? static_cast<const mindspore::schema::SigmoidCrossEntropyWithLogits *>(value()) : nullptr;
1173   }
value_as_SigmoidCrossEntropyWithLogitsGradFLATBUFFERS_FINAL_CLASS1174   const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *value_as_SigmoidCrossEntropyWithLogitsGrad() const {
1175     return value_type() == mindspore::schema::PrimitiveType_SigmoidCrossEntropyWithLogitsGrad ? static_cast<const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *>(value()) : nullptr;
1176   }
value_as_SinFLATBUFFERS_FINAL_CLASS1177   const mindspore::schema::Sin *value_as_Sin() const {
1178     return value_type() == mindspore::schema::PrimitiveType_Sin ? static_cast<const mindspore::schema::Sin *>(value()) : nullptr;
1179   }
value_as_SkipGramFLATBUFFERS_FINAL_CLASS1180   const mindspore::schema::SkipGram *value_as_SkipGram() const {
1181     return value_type() == mindspore::schema::PrimitiveType_SkipGram ? static_cast<const mindspore::schema::SkipGram *>(value()) : nullptr;
1182   }
value_as_SliceFusionFLATBUFFERS_FINAL_CLASS1183   const mindspore::schema::SliceFusion *value_as_SliceFusion() const {
1184     return value_type() == mindspore::schema::PrimitiveType_SliceFusion ? static_cast<const mindspore::schema::SliceFusion *>(value()) : nullptr;
1185   }
value_as_SmoothL1LossFLATBUFFERS_FINAL_CLASS1186   const mindspore::schema::SmoothL1Loss *value_as_SmoothL1Loss() const {
1187     return value_type() == mindspore::schema::PrimitiveType_SmoothL1Loss ? static_cast<const mindspore::schema::SmoothL1Loss *>(value()) : nullptr;
1188   }
value_as_SmoothL1LossGradFLATBUFFERS_FINAL_CLASS1189   const mindspore::schema::SmoothL1LossGrad *value_as_SmoothL1LossGrad() const {
1190     return value_type() == mindspore::schema::PrimitiveType_SmoothL1LossGrad ? static_cast<const mindspore::schema::SmoothL1LossGrad *>(value()) : nullptr;
1191   }
value_as_SoftmaxFLATBUFFERS_FINAL_CLASS1192   const mindspore::schema::Softmax *value_as_Softmax() const {
1193     return value_type() == mindspore::schema::PrimitiveType_Softmax ? static_cast<const mindspore::schema::Softmax *>(value()) : nullptr;
1194   }
value_as_SoftmaxCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1195   const mindspore::schema::SoftmaxCrossEntropyWithLogits *value_as_SoftmaxCrossEntropyWithLogits() const {
1196     return value_type() == mindspore::schema::PrimitiveType_SoftmaxCrossEntropyWithLogits ? static_cast<const mindspore::schema::SoftmaxCrossEntropyWithLogits *>(value()) : nullptr;
1197   }
value_as_SpaceToBatchFLATBUFFERS_FINAL_CLASS1198   const mindspore::schema::SpaceToBatch *value_as_SpaceToBatch() const {
1199     return value_type() == mindspore::schema::PrimitiveType_SpaceToBatch ? static_cast<const mindspore::schema::SpaceToBatch *>(value()) : nullptr;
1200   }
value_as_SpaceToBatchNDFLATBUFFERS_FINAL_CLASS1201   const mindspore::schema::SpaceToBatchND *value_as_SpaceToBatchND() const {
1202     return value_type() == mindspore::schema::PrimitiveType_SpaceToBatchND ? static_cast<const mindspore::schema::SpaceToBatchND *>(value()) : nullptr;
1203   }
value_as_SpaceToDepthFLATBUFFERS_FINAL_CLASS1204   const mindspore::schema::SpaceToDepth *value_as_SpaceToDepth() const {
1205     return value_type() == mindspore::schema::PrimitiveType_SpaceToDepth ? static_cast<const mindspore::schema::SpaceToDepth *>(value()) : nullptr;
1206   }
value_as_SparseSoftmaxCrossEntropyWithLogitsFLATBUFFERS_FINAL_CLASS1207   const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *value_as_SparseSoftmaxCrossEntropyWithLogits() const {
1208     return value_type() == mindspore::schema::PrimitiveType_SparseSoftmaxCrossEntropyWithLogits ? static_cast<const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *>(value()) : nullptr;
1209   }
value_as_SparseToDenseFLATBUFFERS_FINAL_CLASS1210   const mindspore::schema::SparseToDense *value_as_SparseToDense() const {
1211     return value_type() == mindspore::schema::PrimitiveType_SparseToDense ? static_cast<const mindspore::schema::SparseToDense *>(value()) : nullptr;
1212   }
value_as_SplitFLATBUFFERS_FINAL_CLASS1213   const mindspore::schema::Split *value_as_Split() const {
1214     return value_type() == mindspore::schema::PrimitiveType_Split ? static_cast<const mindspore::schema::Split *>(value()) : nullptr;
1215   }
value_as_SqrtFLATBUFFERS_FINAL_CLASS1216   const mindspore::schema::Sqrt *value_as_Sqrt() const {
1217     return value_type() == mindspore::schema::PrimitiveType_Sqrt ? static_cast<const mindspore::schema::Sqrt *>(value()) : nullptr;
1218   }
value_as_SqueezeFLATBUFFERS_FINAL_CLASS1219   const mindspore::schema::Squeeze *value_as_Squeeze() const {
1220     return value_type() == mindspore::schema::PrimitiveType_Squeeze ? static_cast<const mindspore::schema::Squeeze *>(value()) : nullptr;
1221   }
value_as_SquareFLATBUFFERS_FINAL_CLASS1222   const mindspore::schema::Square *value_as_Square() const {
1223     return value_type() == mindspore::schema::PrimitiveType_Square ? static_cast<const mindspore::schema::Square *>(value()) : nullptr;
1224   }
value_as_SquaredDifferenceFLATBUFFERS_FINAL_CLASS1225   const mindspore::schema::SquaredDifference *value_as_SquaredDifference() const {
1226     return value_type() == mindspore::schema::PrimitiveType_SquaredDifference ? static_cast<const mindspore::schema::SquaredDifference *>(value()) : nullptr;
1227   }
value_as_StackFLATBUFFERS_FINAL_CLASS1228   const mindspore::schema::Stack *value_as_Stack() const {
1229     return value_type() == mindspore::schema::PrimitiveType_Stack ? static_cast<const mindspore::schema::Stack *>(value()) : nullptr;
1230   }
value_as_StridedSliceFLATBUFFERS_FINAL_CLASS1231   const mindspore::schema::StridedSlice *value_as_StridedSlice() const {
1232     return value_type() == mindspore::schema::PrimitiveType_StridedSlice ? static_cast<const mindspore::schema::StridedSlice *>(value()) : nullptr;
1233   }
value_as_SubFusionFLATBUFFERS_FINAL_CLASS1234   const mindspore::schema::SubFusion *value_as_SubFusion() const {
1235     return value_type() == mindspore::schema::PrimitiveType_SubFusion ? static_cast<const mindspore::schema::SubFusion *>(value()) : nullptr;
1236   }
value_as_SubGradFLATBUFFERS_FINAL_CLASS1237   const mindspore::schema::SubGrad *value_as_SubGrad() const {
1238     return value_type() == mindspore::schema::PrimitiveType_SubGrad ? static_cast<const mindspore::schema::SubGrad *>(value()) : nullptr;
1239   }
value_as_SwitchFLATBUFFERS_FINAL_CLASS1240   const mindspore::schema::Switch *value_as_Switch() const {
1241     return value_type() == mindspore::schema::PrimitiveType_Switch ? static_cast<const mindspore::schema::Switch *>(value()) : nullptr;
1242   }
value_as_TensorListFromTensorFLATBUFFERS_FINAL_CLASS1243   const mindspore::schema::TensorListFromTensor *value_as_TensorListFromTensor() const {
1244     return value_type() == mindspore::schema::PrimitiveType_TensorListFromTensor ? static_cast<const mindspore::schema::TensorListFromTensor *>(value()) : nullptr;
1245   }
value_as_TensorListGetItemFLATBUFFERS_FINAL_CLASS1246   const mindspore::schema::TensorListGetItem *value_as_TensorListGetItem() const {
1247     return value_type() == mindspore::schema::PrimitiveType_TensorListGetItem ? static_cast<const mindspore::schema::TensorListGetItem *>(value()) : nullptr;
1248   }
value_as_TensorListReserveFLATBUFFERS_FINAL_CLASS1249   const mindspore::schema::TensorListReserve *value_as_TensorListReserve() const {
1250     return value_type() == mindspore::schema::PrimitiveType_TensorListReserve ? static_cast<const mindspore::schema::TensorListReserve *>(value()) : nullptr;
1251   }
value_as_TensorListSetItemFLATBUFFERS_FINAL_CLASS1252   const mindspore::schema::TensorListSetItem *value_as_TensorListSetItem() const {
1253     return value_type() == mindspore::schema::PrimitiveType_TensorListSetItem ? static_cast<const mindspore::schema::TensorListSetItem *>(value()) : nullptr;
1254   }
value_as_TensorListStackFLATBUFFERS_FINAL_CLASS1255   const mindspore::schema::TensorListStack *value_as_TensorListStack() const {
1256     return value_type() == mindspore::schema::PrimitiveType_TensorListStack ? static_cast<const mindspore::schema::TensorListStack *>(value()) : nullptr;
1257   }
value_as_TileFusionFLATBUFFERS_FINAL_CLASS1258   const mindspore::schema::TileFusion *value_as_TileFusion() const {
1259     return value_type() == mindspore::schema::PrimitiveType_TileFusion ? static_cast<const mindspore::schema::TileFusion *>(value()) : nullptr;
1260   }
value_as_TopKFusionFLATBUFFERS_FINAL_CLASS1261   const mindspore::schema::TopKFusion *value_as_TopKFusion() const {
1262     return value_type() == mindspore::schema::PrimitiveType_TopKFusion ? static_cast<const mindspore::schema::TopKFusion *>(value()) : nullptr;
1263   }
value_as_TransposeFLATBUFFERS_FINAL_CLASS1264   const mindspore::schema::Transpose *value_as_Transpose() const {
1265     return value_type() == mindspore::schema::PrimitiveType_Transpose ? static_cast<const mindspore::schema::Transpose *>(value()) : nullptr;
1266   }
value_as_UniqueFLATBUFFERS_FINAL_CLASS1267   const mindspore::schema::Unique *value_as_Unique() const {
1268     return value_type() == mindspore::schema::PrimitiveType_Unique ? static_cast<const mindspore::schema::Unique *>(value()) : nullptr;
1269   }
value_as_UnsortedSegmentSumFLATBUFFERS_FINAL_CLASS1270   const mindspore::schema::UnsortedSegmentSum *value_as_UnsortedSegmentSum() const {
1271     return value_type() == mindspore::schema::PrimitiveType_UnsortedSegmentSum ? static_cast<const mindspore::schema::UnsortedSegmentSum *>(value()) : nullptr;
1272   }
value_as_UnsqueezeFLATBUFFERS_FINAL_CLASS1273   const mindspore::schema::Unsqueeze *value_as_Unsqueeze() const {
1274     return value_type() == mindspore::schema::PrimitiveType_Unsqueeze ? static_cast<const mindspore::schema::Unsqueeze *>(value()) : nullptr;
1275   }
value_as_UnstackFLATBUFFERS_FINAL_CLASS1276   const mindspore::schema::Unstack *value_as_Unstack() const {
1277     return value_type() == mindspore::schema::PrimitiveType_Unstack ? static_cast<const mindspore::schema::Unstack *>(value()) : nullptr;
1278   }
value_as_LSTMGradFLATBUFFERS_FINAL_CLASS1279   const mindspore::schema::LSTMGrad *value_as_LSTMGrad() const {
1280     return value_type() == mindspore::schema::PrimitiveType_LSTMGrad ? static_cast<const mindspore::schema::LSTMGrad *>(value()) : nullptr;
1281   }
value_as_WhereFLATBUFFERS_FINAL_CLASS1282   const mindspore::schema::Where *value_as_Where() const {
1283     return value_type() == mindspore::schema::PrimitiveType_Where ? static_cast<const mindspore::schema::Where *>(value()) : nullptr;
1284   }
value_as_ZerosLikeFLATBUFFERS_FINAL_CLASS1285   const mindspore::schema::ZerosLike *value_as_ZerosLike() const {
1286     return value_type() == mindspore::schema::PrimitiveType_ZerosLike ? static_cast<const mindspore::schema::ZerosLike *>(value()) : nullptr;
1287   }
value_as_SelectFLATBUFFERS_FINAL_CLASS1288   const mindspore::schema::Select *value_as_Select() const {
1289     return value_type() == mindspore::schema::PrimitiveType_Select ? static_cast<const mindspore::schema::Select *>(value()) : nullptr;
1290   }
value_as_ScatterNdUpdateFLATBUFFERS_FINAL_CLASS1291   const mindspore::schema::ScatterNdUpdate *value_as_ScatterNdUpdate() const {
1292     return value_type() == mindspore::schema::PrimitiveType_ScatterNdUpdate ? static_cast<const mindspore::schema::ScatterNdUpdate *>(value()) : nullptr;
1293   }
value_as_GRUFLATBUFFERS_FINAL_CLASS1294   const mindspore::schema::GRU *value_as_GRU() const {
1295     return value_type() == mindspore::schema::PrimitiveType_GRU ? static_cast<const mindspore::schema::GRU *>(value()) : nullptr;
1296   }
value_as_NonZeroFLATBUFFERS_FINAL_CLASS1297   const mindspore::schema::NonZero *value_as_NonZero() const {
1298     return value_type() == mindspore::schema::PrimitiveType_NonZero ? static_cast<const mindspore::schema::NonZero *>(value()) : nullptr;
1299   }
value_as_InvertPermutationFLATBUFFERS_FINAL_CLASS1300   const mindspore::schema::InvertPermutation *value_as_InvertPermutation() const {
1301     return value_type() == mindspore::schema::PrimitiveType_InvertPermutation ? static_cast<const mindspore::schema::InvertPermutation *>(value()) : nullptr;
1302   }
value_as_SizeFLATBUFFERS_FINAL_CLASS1303   const mindspore::schema::Size *value_as_Size() const {
1304     return value_type() == mindspore::schema::PrimitiveType_Size ? static_cast<const mindspore::schema::Size *>(value()) : nullptr;
1305   }
value_as_RandomStandardNormalFLATBUFFERS_FINAL_CLASS1306   const mindspore::schema::RandomStandardNormal *value_as_RandomStandardNormal() const {
1307     return value_type() == mindspore::schema::PrimitiveType_RandomStandardNormal ? static_cast<const mindspore::schema::RandomStandardNormal *>(value()) : nullptr;
1308   }
value_as_CropAndResizeFLATBUFFERS_FINAL_CLASS1309   const mindspore::schema::CropAndResize *value_as_CropAndResize() const {
1310     return value_type() == mindspore::schema::PrimitiveType_CropAndResize ? static_cast<const mindspore::schema::CropAndResize *>(value()) : nullptr;
1311   }
value_as_ErfFLATBUFFERS_FINAL_CLASS1312   const mindspore::schema::Erf *value_as_Erf() const {
1313     return value_type() == mindspore::schema::PrimitiveType_Erf ? static_cast<const mindspore::schema::Erf *>(value()) : nullptr;
1314   }
value_as_StridedSliceGradFLATBUFFERS_FINAL_CLASS1315   const mindspore::schema::StridedSliceGrad *value_as_StridedSliceGrad() const {
1316     return value_type() == mindspore::schema::PrimitiveType_StridedSliceGrad ? static_cast<const mindspore::schema::StridedSliceGrad *>(value()) : nullptr;
1317   }
value_as_IsFiniteFLATBUFFERS_FINAL_CLASS1318   const mindspore::schema::IsFinite *value_as_IsFinite() const {
1319     return value_type() == mindspore::schema::PrimitiveType_IsFinite ? static_cast<const mindspore::schema::IsFinite *>(value()) : nullptr;
1320   }
value_as_LinSpaceFLATBUFFERS_FINAL_CLASS1321   const mindspore::schema::LinSpace *value_as_LinSpace() const {
1322     return value_type() == mindspore::schema::PrimitiveType_LinSpace ? static_cast<const mindspore::schema::LinSpace *>(value()) : nullptr;
1323   }
value_as_UniformRealFLATBUFFERS_FINAL_CLASS1324   const mindspore::schema::UniformReal *value_as_UniformReal() const {
1325     return value_type() == mindspore::schema::PrimitiveType_UniformReal ? static_cast<const mindspore::schema::UniformReal *>(value()) : nullptr;
1326   }
value_as_AbsGradFLATBUFFERS_FINAL_CLASS1327   const mindspore::schema::AbsGrad *value_as_AbsGrad() const {
1328     return value_type() == mindspore::schema::PrimitiveType_AbsGrad ? static_cast<const mindspore::schema::AbsGrad *>(value()) : nullptr;
1329   }
value_as_RsqrtGradFLATBUFFERS_FINAL_CLASS1330   const mindspore::schema::RsqrtGrad *value_as_RsqrtGrad() const {
1331     return value_type() == mindspore::schema::PrimitiveType_RsqrtGrad ? static_cast<const mindspore::schema::RsqrtGrad *>(value()) : nullptr;
1332   }
value_as_SqrtGradFLATBUFFERS_FINAL_CLASS1333   const mindspore::schema::SqrtGrad *value_as_SqrtGrad() const {
1334     return value_type() == mindspore::schema::PrimitiveType_SqrtGrad ? static_cast<const mindspore::schema::SqrtGrad *>(value()) : nullptr;
1335   }
value_as_LayerNormGradFLATBUFFERS_FINAL_CLASS1336   const mindspore::schema::LayerNormGrad *value_as_LayerNormGrad() const {
1337     return value_type() == mindspore::schema::PrimitiveType_LayerNormGrad ? static_cast<const mindspore::schema::LayerNormGrad *>(value()) : nullptr;
1338   }
value_as_ResizeGradFLATBUFFERS_FINAL_CLASS1339   const mindspore::schema::ResizeGrad *value_as_ResizeGrad() const {
1340     return value_type() == mindspore::schema::PrimitiveType_ResizeGrad ? static_cast<const mindspore::schema::ResizeGrad *>(value()) : nullptr;
1341   }
value_as_SpliceFLATBUFFERS_FINAL_CLASS1342   const mindspore::schema::Splice *value_as_Splice() const {
1343     return value_type() == mindspore::schema::PrimitiveType_Splice ? static_cast<const mindspore::schema::Splice *>(value()) : nullptr;
1344   }
value_as_LogSoftmaxFLATBUFFERS_FINAL_CLASS1345   const mindspore::schema::LogSoftmax *value_as_LogSoftmax() const {
1346     return value_type() == mindspore::schema::PrimitiveType_LogSoftmax ? static_cast<const mindspore::schema::LogSoftmax *>(value()) : nullptr;
1347   }
value_as_CallFLATBUFFERS_FINAL_CLASS1348   const mindspore::schema::Call *value_as_Call() const {
1349     return value_type() == mindspore::schema::PrimitiveType_Call ? static_cast<const mindspore::schema::Call *>(value()) : nullptr;
1350   }
value_as_CustomFLATBUFFERS_FINAL_CLASS1351   const mindspore::schema::Custom *value_as_Custom() const {
1352     return value_type() == mindspore::schema::PrimitiveType_Custom ? static_cast<const mindspore::schema::Custom *>(value()) : nullptr;
1353   }
value_as_CumSumFLATBUFFERS_FINAL_CLASS1354   const mindspore::schema::CumSum *value_as_CumSum() const {
1355     return value_type() == mindspore::schema::PrimitiveType_CumSum ? static_cast<const mindspore::schema::CumSum *>(value()) : nullptr;
1356   }
value_as_SplitWithOverlapFLATBUFFERS_FINAL_CLASS1357   const mindspore::schema::SplitWithOverlap *value_as_SplitWithOverlap() const {
1358     return value_type() == mindspore::schema::PrimitiveType_SplitWithOverlap ? static_cast<const mindspore::schema::SplitWithOverlap *>(value()) : nullptr;
1359   }
value_as_GenOPFLATBUFFERS_FINAL_CLASS1360   const mindspore::schema::GenOP *value_as_GenOP() const {
1361     return value_type() == mindspore::schema::PrimitiveType_GenOP ? static_cast<const mindspore::schema::GenOP *>(value()) : nullptr;
1362   }
value_as_RaggedRangeFLATBUFFERS_FINAL_CLASS1363   const mindspore::schema::RaggedRange *value_as_RaggedRange() const {
1364     return value_type() == mindspore::schema::PrimitiveType_RaggedRange ? static_cast<const mindspore::schema::RaggedRange *>(value()) : nullptr;
1365   }
value_as_GLUFLATBUFFERS_FINAL_CLASS1366   const mindspore::schema::GLU *value_as_GLU() const {
1367     return value_type() == mindspore::schema::PrimitiveType_GLU ? static_cast<const mindspore::schema::GLU *>(value()) : nullptr;
1368   }
value_as_TensorArrayFLATBUFFERS_FINAL_CLASS1369   const mindspore::schema::TensorArray *value_as_TensorArray() const {
1370     return value_type() == mindspore::schema::PrimitiveType_TensorArray ? static_cast<const mindspore::schema::TensorArray *>(value()) : nullptr;
1371   }
value_as_TensorArrayReadFLATBUFFERS_FINAL_CLASS1372   const mindspore::schema::TensorArrayRead *value_as_TensorArrayRead() const {
1373     return value_type() == mindspore::schema::PrimitiveType_TensorArrayRead ? static_cast<const mindspore::schema::TensorArrayRead *>(value()) : nullptr;
1374   }
value_as_TensorArrayWriteFLATBUFFERS_FINAL_CLASS1375   const mindspore::schema::TensorArrayWrite *value_as_TensorArrayWrite() const {
1376     return value_type() == mindspore::schema::PrimitiveType_TensorArrayWrite ? static_cast<const mindspore::schema::TensorArrayWrite *>(value()) : nullptr;
1377   }
value_as_AffineFLATBUFFERS_FINAL_CLASS1378   const mindspore::schema::Affine *value_as_Affine() const {
1379     return value_type() == mindspore::schema::PrimitiveType_Affine ? static_cast<const mindspore::schema::Affine *>(value()) : nullptr;
1380   }
value_as_AllGatherFLATBUFFERS_FINAL_CLASS1381   const mindspore::schema::AllGather *value_as_AllGather() const {
1382     return value_type() == mindspore::schema::PrimitiveType_AllGather ? static_cast<const mindspore::schema::AllGather *>(value()) : nullptr;
1383   }
value_as_ReduceScatterFLATBUFFERS_FINAL_CLASS1384   const mindspore::schema::ReduceScatter *value_as_ReduceScatter() const {
1385     return value_type() == mindspore::schema::PrimitiveType_ReduceScatter ? static_cast<const mindspore::schema::ReduceScatter *>(value()) : nullptr;
1386   }
value_as_DynamicQuantFLATBUFFERS_FINAL_CLASS1387   const mindspore::schema::DynamicQuant *value_as_DynamicQuant() const {
1388     return value_type() == mindspore::schema::PrimitiveType_DynamicQuant ? static_cast<const mindspore::schema::DynamicQuant *>(value()) : nullptr;
1389   }
value_as_LSTMGradDataFLATBUFFERS_FINAL_CLASS1390   const mindspore::schema::LSTMGradData *value_as_LSTMGradData() const {
1391     return value_type() == mindspore::schema::PrimitiveType_LSTMGradData ? static_cast<const mindspore::schema::LSTMGradData *>(value()) : nullptr;
1392   }
value_as_LSTMGradWeightFLATBUFFERS_FINAL_CLASS1393   const mindspore::schema::LSTMGradWeight *value_as_LSTMGradWeight() const {
1394     return value_type() == mindspore::schema::PrimitiveType_LSTMGradWeight ? static_cast<const mindspore::schema::LSTMGradWeight *>(value()) : nullptr;
1395   }
value_as_RandomNormalFLATBUFFERS_FINAL_CLASS1396   const mindspore::schema::RandomNormal *value_as_RandomNormal() const {
1397     return value_type() == mindspore::schema::PrimitiveType_RandomNormal ? static_cast<const mindspore::schema::RandomNormal *>(value()) : nullptr;
1398   }
value_as_NLLLossFLATBUFFERS_FINAL_CLASS1399   const mindspore::schema::NLLLoss *value_as_NLLLoss() const {
1400     return value_type() == mindspore::schema::PrimitiveType_NLLLoss ? static_cast<const mindspore::schema::NLLLoss *>(value()) : nullptr;
1401   }
value_as_NLLLossGradFLATBUFFERS_FINAL_CLASS1402   const mindspore::schema::NLLLossGrad *value_as_NLLLossGrad() const {
1403     return value_type() == mindspore::schema::PrimitiveType_NLLLossGrad ? static_cast<const mindspore::schema::NLLLossGrad *>(value()) : nullptr;
1404   }
value_as_FormatTransposeFLATBUFFERS_FINAL_CLASS1405   const mindspore::schema::FormatTranspose *value_as_FormatTranspose() const {
1406     return value_type() == mindspore::schema::PrimitiveType_FormatTranspose ? static_cast<const mindspore::schema::FormatTranspose *>(value()) : nullptr;
1407   }
value_as_GatherDFLATBUFFERS_FINAL_CLASS1408   const mindspore::schema::GatherD *value_as_GatherD() const {
1409     return value_type() == mindspore::schema::PrimitiveType_GatherD ? static_cast<const mindspore::schema::GatherD *>(value()) : nullptr;
1410   }
value_as_GroupNormFusionFLATBUFFERS_FINAL_CLASS1411   const mindspore::schema::GroupNormFusion *value_as_GroupNormFusion() const {
1412     return value_type() == mindspore::schema::PrimitiveType_GroupNormFusion ? static_cast<const mindspore::schema::GroupNormFusion *>(value()) : nullptr;
1413   }
value_as_Log1pFLATBUFFERS_FINAL_CLASS1414   const mindspore::schema::Log1p *value_as_Log1p() const {
1415     return value_type() == mindspore::schema::PrimitiveType_Log1p ? static_cast<const mindspore::schema::Log1p *>(value()) : nullptr;
1416   }
value_as_TensorScatterAddFLATBUFFERS_FINAL_CLASS1417   const mindspore::schema::TensorScatterAdd *value_as_TensorScatterAdd() const {
1418     return value_type() == mindspore::schema::PrimitiveType_TensorScatterAdd ? static_cast<const mindspore::schema::TensorScatterAdd *>(value()) : nullptr;
1419   }
value_as_SparseFillEmptyRowsFLATBUFFERS_FINAL_CLASS1420   const mindspore::schema::SparseFillEmptyRows *value_as_SparseFillEmptyRows() const {
1421     return value_type() == mindspore::schema::PrimitiveType_SparseFillEmptyRows ? static_cast<const mindspore::schema::SparseFillEmptyRows *>(value()) : nullptr;
1422   }
value_as_SparseReshapeFLATBUFFERS_FINAL_CLASS1423   const mindspore::schema::SparseReshape *value_as_SparseReshape() const {
1424     return value_type() == mindspore::schema::PrimitiveType_SparseReshape ? static_cast<const mindspore::schema::SparseReshape *>(value()) : nullptr;
1425   }
value_as_SparseSegmentSumFLATBUFFERS_FINAL_CLASS1426   const mindspore::schema::SparseSegmentSum *value_as_SparseSegmentSum() const {
1427     return value_type() == mindspore::schema::PrimitiveType_SparseSegmentSum ? static_cast<const mindspore::schema::SparseSegmentSum *>(value()) : nullptr;
1428   }
value_as_ScatterElementsFLATBUFFERS_FINAL_CLASS1429   const mindspore::schema::ScatterElements *value_as_ScatterElements() const {
1430     return value_type() == mindspore::schema::PrimitiveType_ScatterElements ? static_cast<const mindspore::schema::ScatterElements *>(value()) : nullptr;
1431   }
value_as_TriuFLATBUFFERS_FINAL_CLASS1432   const mindspore::schema::Triu *value_as_Triu() const {
1433     return value_type() == mindspore::schema::PrimitiveType_Triu ? static_cast<const mindspore::schema::Triu *>(value()) : nullptr;
1434   }
value_as_TrilFLATBUFFERS_FINAL_CLASS1435   const mindspore::schema::Tril *value_as_Tril() const {
1436     return value_type() == mindspore::schema::PrimitiveType_Tril ? static_cast<const mindspore::schema::Tril *>(value()) : nullptr;
1437   }
value_as_AdamWeightDecayFLATBUFFERS_FINAL_CLASS1438   const mindspore::schema::AdamWeightDecay *value_as_AdamWeightDecay() const {
1439     return value_type() == mindspore::schema::PrimitiveType_AdamWeightDecay ? static_cast<const mindspore::schema::AdamWeightDecay *>(value()) : nullptr;
1440   }
value_as_FillV2FLATBUFFERS_FINAL_CLASS1441   const mindspore::schema::FillV2 *value_as_FillV2() const {
1442     return value_type() == mindspore::schema::PrimitiveType_FillV2 ? static_cast<const mindspore::schema::FillV2 *>(value()) : nullptr;
1443   }
mutable_valueFLATBUFFERS_FINAL_CLASS1444   void *mutable_value() {
1445     return GetPointer<void *>(VT_VALUE);
1446   }
VerifyFLATBUFFERS_FINAL_CLASS1447   bool Verify(::flatbuffers::Verifier &verifier) const {
1448     return VerifyTableStart(verifier) &&
1449            VerifyField<uint8_t>(verifier, VT_VALUE_TYPE, 1) &&
1450            VerifyOffset(verifier, VT_VALUE) &&
1451            VerifyPrimitiveType(verifier, value(), value_type()) &&
1452            verifier.EndTable();
1453   }
1454   PrimitiveT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
1455   void UnPackTo(PrimitiveT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
1456   static ::flatbuffers::Offset<Primitive> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
1457 };
1458 
1459 template<> inline const mindspore::schema::Abs *Primitive::value_as<mindspore::schema::Abs>() const {
1460   return value_as_Abs();
1461 }
1462 
1463 template<> inline const mindspore::schema::Activation *Primitive::value_as<mindspore::schema::Activation>() const {
1464   return value_as_Activation();
1465 }
1466 
1467 template<> inline const mindspore::schema::ActivationGrad *Primitive::value_as<mindspore::schema::ActivationGrad>() const {
1468   return value_as_ActivationGrad();
1469 }
1470 
1471 template<> inline const mindspore::schema::Adam *Primitive::value_as<mindspore::schema::Adam>() const {
1472   return value_as_Adam();
1473 }
1474 
1475 template<> inline const mindspore::schema::AddFusion *Primitive::value_as<mindspore::schema::AddFusion>() const {
1476   return value_as_AddFusion();
1477 }
1478 
1479 template<> inline const mindspore::schema::AdderFusion *Primitive::value_as<mindspore::schema::AdderFusion>() const {
1480   return value_as_AdderFusion();
1481 }
1482 
1483 template<> inline const mindspore::schema::AddGrad *Primitive::value_as<mindspore::schema::AddGrad>() const {
1484   return value_as_AddGrad();
1485 }
1486 
1487 template<> inline const mindspore::schema::AddN *Primitive::value_as<mindspore::schema::AddN>() const {
1488   return value_as_AddN();
1489 }
1490 
1491 template<> inline const mindspore::schema::All *Primitive::value_as<mindspore::schema::All>() const {
1492   return value_as_All();
1493 }
1494 
1495 template<> inline const mindspore::schema::ApplyMomentum *Primitive::value_as<mindspore::schema::ApplyMomentum>() const {
1496   return value_as_ApplyMomentum();
1497 }
1498 
1499 template<> inline const mindspore::schema::ArgMaxFusion *Primitive::value_as<mindspore::schema::ArgMaxFusion>() const {
1500   return value_as_ArgMaxFusion();
1501 }
1502 
1503 template<> inline const mindspore::schema::ArgMinFusion *Primitive::value_as<mindspore::schema::ArgMinFusion>() const {
1504   return value_as_ArgMinFusion();
1505 }
1506 
1507 template<> inline const mindspore::schema::Assert *Primitive::value_as<mindspore::schema::Assert>() const {
1508   return value_as_Assert();
1509 }
1510 
1511 template<> inline const mindspore::schema::Assign *Primitive::value_as<mindspore::schema::Assign>() const {
1512   return value_as_Assign();
1513 }
1514 
1515 template<> inline const mindspore::schema::AssignAdd *Primitive::value_as<mindspore::schema::AssignAdd>() const {
1516   return value_as_AssignAdd();
1517 }
1518 
1519 template<> inline const mindspore::schema::AudioSpectrogram *Primitive::value_as<mindspore::schema::AudioSpectrogram>() const {
1520   return value_as_AudioSpectrogram();
1521 }
1522 
1523 template<> inline const mindspore::schema::AvgPoolFusion *Primitive::value_as<mindspore::schema::AvgPoolFusion>() const {
1524   return value_as_AvgPoolFusion();
1525 }
1526 
1527 template<> inline const mindspore::schema::AvgPoolGrad *Primitive::value_as<mindspore::schema::AvgPoolGrad>() const {
1528   return value_as_AvgPoolGrad();
1529 }
1530 
1531 template<> inline const mindspore::schema::BatchNorm *Primitive::value_as<mindspore::schema::BatchNorm>() const {
1532   return value_as_BatchNorm();
1533 }
1534 
1535 template<> inline const mindspore::schema::BatchNormGrad *Primitive::value_as<mindspore::schema::BatchNormGrad>() const {
1536   return value_as_BatchNormGrad();
1537 }
1538 
1539 template<> inline const mindspore::schema::BatchToSpace *Primitive::value_as<mindspore::schema::BatchToSpace>() const {
1540   return value_as_BatchToSpace();
1541 }
1542 
1543 template<> inline const mindspore::schema::BatchToSpaceND *Primitive::value_as<mindspore::schema::BatchToSpaceND>() const {
1544   return value_as_BatchToSpaceND();
1545 }
1546 
1547 template<> inline const mindspore::schema::BiasAdd *Primitive::value_as<mindspore::schema::BiasAdd>() const {
1548   return value_as_BiasAdd();
1549 }
1550 
1551 template<> inline const mindspore::schema::BinaryCrossEntropy *Primitive::value_as<mindspore::schema::BinaryCrossEntropy>() const {
1552   return value_as_BinaryCrossEntropy();
1553 }
1554 
1555 template<> inline const mindspore::schema::BinaryCrossEntropyGrad *Primitive::value_as<mindspore::schema::BinaryCrossEntropyGrad>() const {
1556   return value_as_BinaryCrossEntropyGrad();
1557 }
1558 
1559 template<> inline const mindspore::schema::BiasAddGrad *Primitive::value_as<mindspore::schema::BiasAddGrad>() const {
1560   return value_as_BiasAddGrad();
1561 }
1562 
1563 template<> inline const mindspore::schema::BroadcastTo *Primitive::value_as<mindspore::schema::BroadcastTo>() const {
1564   return value_as_BroadcastTo();
1565 }
1566 
1567 template<> inline const mindspore::schema::Cast *Primitive::value_as<mindspore::schema::Cast>() const {
1568   return value_as_Cast();
1569 }
1570 
1571 template<> inline const mindspore::schema::Ceil *Primitive::value_as<mindspore::schema::Ceil>() const {
1572   return value_as_Ceil();
1573 }
1574 
1575 template<> inline const mindspore::schema::Clip *Primitive::value_as<mindspore::schema::Clip>() const {
1576   return value_as_Clip();
1577 }
1578 
1579 template<> inline const mindspore::schema::Concat *Primitive::value_as<mindspore::schema::Concat>() const {
1580   return value_as_Concat();
1581 }
1582 
1583 template<> inline const mindspore::schema::Attention *Primitive::value_as<mindspore::schema::Attention>() const {
1584   return value_as_Attention();
1585 }
1586 
1587 template<> inline const mindspore::schema::Conv2DBackpropFilterFusion *Primitive::value_as<mindspore::schema::Conv2DBackpropFilterFusion>() const {
1588   return value_as_Conv2DBackpropFilterFusion();
1589 }
1590 
1591 template<> inline const mindspore::schema::Conv2DBackpropInputFusion *Primitive::value_as<mindspore::schema::Conv2DBackpropInputFusion>() const {
1592   return value_as_Conv2DBackpropInputFusion();
1593 }
1594 
1595 template<> inline const mindspore::schema::Conv2DFusion *Primitive::value_as<mindspore::schema::Conv2DFusion>() const {
1596   return value_as_Conv2DFusion();
1597 }
1598 
1599 template<> inline const mindspore::schema::Conv2dTransposeFusion *Primitive::value_as<mindspore::schema::Conv2dTransposeFusion>() const {
1600   return value_as_Conv2dTransposeFusion();
1601 }
1602 
1603 template<> inline const mindspore::schema::Cos *Primitive::value_as<mindspore::schema::Cos>() const {
1604   return value_as_Cos();
1605 }
1606 
1607 template<> inline const mindspore::schema::ConstantOfShape *Primitive::value_as<mindspore::schema::ConstantOfShape>() const {
1608   return value_as_ConstantOfShape();
1609 }
1610 
1611 template<> inline const mindspore::schema::Crop *Primitive::value_as<mindspore::schema::Crop>() const {
1612   return value_as_Crop();
1613 }
1614 
1615 template<> inline const mindspore::schema::CustomExtractFeatures *Primitive::value_as<mindspore::schema::CustomExtractFeatures>() const {
1616   return value_as_CustomExtractFeatures();
1617 }
1618 
1619 template<> inline const mindspore::schema::CustomNormalize *Primitive::value_as<mindspore::schema::CustomNormalize>() const {
1620   return value_as_CustomNormalize();
1621 }
1622 
1623 template<> inline const mindspore::schema::CustomPredict *Primitive::value_as<mindspore::schema::CustomPredict>() const {
1624   return value_as_CustomPredict();
1625 }
1626 
1627 template<> inline const mindspore::schema::DeConv2DGradFilter *Primitive::value_as<mindspore::schema::DeConv2DGradFilter>() const {
1628   return value_as_DeConv2DGradFilter();
1629 }
1630 
1631 template<> inline const mindspore::schema::Depend *Primitive::value_as<mindspore::schema::Depend>() const {
1632   return value_as_Depend();
1633 }
1634 
1635 template<> inline const mindspore::schema::DepthToSpace *Primitive::value_as<mindspore::schema::DepthToSpace>() const {
1636   return value_as_DepthToSpace();
1637 }
1638 
1639 template<> inline const mindspore::schema::DetectionPostProcess *Primitive::value_as<mindspore::schema::DetectionPostProcess>() const {
1640   return value_as_DetectionPostProcess();
1641 }
1642 
1643 template<> inline const mindspore::schema::DivFusion *Primitive::value_as<mindspore::schema::DivFusion>() const {
1644   return value_as_DivFusion();
1645 }
1646 
1647 template<> inline const mindspore::schema::DivGrad *Primitive::value_as<mindspore::schema::DivGrad>() const {
1648   return value_as_DivGrad();
1649 }
1650 
1651 template<> inline const mindspore::schema::Dropout *Primitive::value_as<mindspore::schema::Dropout>() const {
1652   return value_as_Dropout();
1653 }
1654 
1655 template<> inline const mindspore::schema::DropoutGrad *Primitive::value_as<mindspore::schema::DropoutGrad>() const {
1656   return value_as_DropoutGrad();
1657 }
1658 
1659 template<> inline const mindspore::schema::Elu *Primitive::value_as<mindspore::schema::Elu>() const {
1660   return value_as_Elu();
1661 }
1662 
1663 template<> inline const mindspore::schema::Eltwise *Primitive::value_as<mindspore::schema::Eltwise>() const {
1664   return value_as_Eltwise();
1665 }
1666 
1667 template<> inline const mindspore::schema::Equal *Primitive::value_as<mindspore::schema::Equal>() const {
1668   return value_as_Equal();
1669 }
1670 
1671 template<> inline const mindspore::schema::EmbeddingLookupFusion *Primitive::value_as<mindspore::schema::EmbeddingLookupFusion>() const {
1672   return value_as_EmbeddingLookupFusion();
1673 }
1674 
1675 template<> inline const mindspore::schema::ExpFusion *Primitive::value_as<mindspore::schema::ExpFusion>() const {
1676   return value_as_ExpFusion();
1677 }
1678 
1679 template<> inline const mindspore::schema::ExpandDims *Primitive::value_as<mindspore::schema::ExpandDims>() const {
1680   return value_as_ExpandDims();
1681 }
1682 
1683 template<> inline const mindspore::schema::FakeQuantWithMinMaxVars *Primitive::value_as<mindspore::schema::FakeQuantWithMinMaxVars>() const {
1684   return value_as_FakeQuantWithMinMaxVars();
1685 }
1686 
1687 template<> inline const mindspore::schema::FakeQuantWithMinMaxVarsPerChannel *Primitive::value_as<mindspore::schema::FakeQuantWithMinMaxVarsPerChannel>() const {
1688   return value_as_FakeQuantWithMinMaxVarsPerChannel();
1689 }
1690 
1691 template<> inline const mindspore::schema::FftReal *Primitive::value_as<mindspore::schema::FftReal>() const {
1692   return value_as_FftReal();
1693 }
1694 
1695 template<> inline const mindspore::schema::FftImag *Primitive::value_as<mindspore::schema::FftImag>() const {
1696   return value_as_FftImag();
1697 }
1698 
1699 template<> inline const mindspore::schema::Flatten *Primitive::value_as<mindspore::schema::Flatten>() const {
1700   return value_as_Flatten();
1701 }
1702 
1703 template<> inline const mindspore::schema::FlattenGrad *Primitive::value_as<mindspore::schema::FlattenGrad>() const {
1704   return value_as_FlattenGrad();
1705 }
1706 
1707 template<> inline const mindspore::schema::Floor *Primitive::value_as<mindspore::schema::Floor>() const {
1708   return value_as_Floor();
1709 }
1710 
1711 template<> inline const mindspore::schema::FloorDiv *Primitive::value_as<mindspore::schema::FloorDiv>() const {
1712   return value_as_FloorDiv();
1713 }
1714 
1715 template<> inline const mindspore::schema::FloorMod *Primitive::value_as<mindspore::schema::FloorMod>() const {
1716   return value_as_FloorMod();
1717 }
1718 
1719 template<> inline const mindspore::schema::Fill *Primitive::value_as<mindspore::schema::Fill>() const {
1720   return value_as_Fill();
1721 }
1722 
1723 template<> inline const mindspore::schema::FullConnection *Primitive::value_as<mindspore::schema::FullConnection>() const {
1724   return value_as_FullConnection();
1725 }
1726 
1727 template<> inline const mindspore::schema::FusedBatchNorm *Primitive::value_as<mindspore::schema::FusedBatchNorm>() const {
1728   return value_as_FusedBatchNorm();
1729 }
1730 
1731 template<> inline const mindspore::schema::Gather *Primitive::value_as<mindspore::schema::Gather>() const {
1732   return value_as_Gather();
1733 }
1734 
1735 template<> inline const mindspore::schema::GatherNd *Primitive::value_as<mindspore::schema::GatherNd>() const {
1736   return value_as_GatherNd();
1737 }
1738 
1739 template<> inline const mindspore::schema::Greater *Primitive::value_as<mindspore::schema::Greater>() const {
1740   return value_as_Greater();
1741 }
1742 
1743 template<> inline const mindspore::schema::GreaterEqual *Primitive::value_as<mindspore::schema::GreaterEqual>() const {
1744   return value_as_GreaterEqual();
1745 }
1746 
1747 template<> inline const mindspore::schema::HashtableLookup *Primitive::value_as<mindspore::schema::HashtableLookup>() const {
1748   return value_as_HashtableLookup();
1749 }
1750 
1751 template<> inline const mindspore::schema::InstanceNorm *Primitive::value_as<mindspore::schema::InstanceNorm>() const {
1752   return value_as_InstanceNorm();
1753 }
1754 
1755 template<> inline const mindspore::schema::LayerNormFusion *Primitive::value_as<mindspore::schema::LayerNormFusion>() const {
1756   return value_as_LayerNormFusion();
1757 }
1758 
1759 template<> inline const mindspore::schema::LeakyRelu *Primitive::value_as<mindspore::schema::LeakyRelu>() const {
1760   return value_as_LeakyRelu();
1761 }
1762 
1763 template<> inline const mindspore::schema::Less *Primitive::value_as<mindspore::schema::Less>() const {
1764   return value_as_Less();
1765 }
1766 
1767 template<> inline const mindspore::schema::LessEqual *Primitive::value_as<mindspore::schema::LessEqual>() const {
1768   return value_as_LessEqual();
1769 }
1770 
1771 template<> inline const mindspore::schema::Log *Primitive::value_as<mindspore::schema::Log>() const {
1772   return value_as_Log();
1773 }
1774 
1775 template<> inline const mindspore::schema::LogGrad *Primitive::value_as<mindspore::schema::LogGrad>() const {
1776   return value_as_LogGrad();
1777 }
1778 
1779 template<> inline const mindspore::schema::LogicalAnd *Primitive::value_as<mindspore::schema::LogicalAnd>() const {
1780   return value_as_LogicalAnd();
1781 }
1782 
1783 template<> inline const mindspore::schema::LogicalNot *Primitive::value_as<mindspore::schema::LogicalNot>() const {
1784   return value_as_LogicalNot();
1785 }
1786 
1787 template<> inline const mindspore::schema::LogicalOr *Primitive::value_as<mindspore::schema::LogicalOr>() const {
1788   return value_as_LogicalOr();
1789 }
1790 
1791 template<> inline const mindspore::schema::LpNormalization *Primitive::value_as<mindspore::schema::LpNormalization>() const {
1792   return value_as_LpNormalization();
1793 }
1794 
1795 template<> inline const mindspore::schema::LRN *Primitive::value_as<mindspore::schema::LRN>() const {
1796   return value_as_LRN();
1797 }
1798 
1799 template<> inline const mindspore::schema::LshProjection *Primitive::value_as<mindspore::schema::LshProjection>() const {
1800   return value_as_LshProjection();
1801 }
1802 
1803 template<> inline const mindspore::schema::LSTM *Primitive::value_as<mindspore::schema::LSTM>() const {
1804   return value_as_LSTM();
1805 }
1806 
1807 template<> inline const mindspore::schema::L2NormalizeFusion *Primitive::value_as<mindspore::schema::L2NormalizeFusion>() const {
1808   return value_as_L2NormalizeFusion();
1809 }
1810 
1811 template<> inline const mindspore::schema::MatMulFusion *Primitive::value_as<mindspore::schema::MatMulFusion>() const {
1812   return value_as_MatMulFusion();
1813 }
1814 
1815 template<> inline const mindspore::schema::Maximum *Primitive::value_as<mindspore::schema::Maximum>() const {
1816   return value_as_Maximum();
1817 }
1818 
1819 template<> inline const mindspore::schema::MaximumGrad *Primitive::value_as<mindspore::schema::MaximumGrad>() const {
1820   return value_as_MaximumGrad();
1821 }
1822 
1823 template<> inline const mindspore::schema::MaxPoolFusion *Primitive::value_as<mindspore::schema::MaxPoolFusion>() const {
1824   return value_as_MaxPoolFusion();
1825 }
1826 
1827 template<> inline const mindspore::schema::MaxPoolGrad *Primitive::value_as<mindspore::schema::MaxPoolGrad>() const {
1828   return value_as_MaxPoolGrad();
1829 }
1830 
1831 template<> inline const mindspore::schema::SwitchLayer *Primitive::value_as<mindspore::schema::SwitchLayer>() const {
1832   return value_as_SwitchLayer();
1833 }
1834 
1835 template<> inline const mindspore::schema::Mfcc *Primitive::value_as<mindspore::schema::Mfcc>() const {
1836   return value_as_Mfcc();
1837 }
1838 
1839 template<> inline const mindspore::schema::Minimum *Primitive::value_as<mindspore::schema::Minimum>() const {
1840   return value_as_Minimum();
1841 }
1842 
1843 template<> inline const mindspore::schema::MinimumGrad *Primitive::value_as<mindspore::schema::MinimumGrad>() const {
1844   return value_as_MinimumGrad();
1845 }
1846 
1847 template<> inline const mindspore::schema::Mod *Primitive::value_as<mindspore::schema::Mod>() const {
1848   return value_as_Mod();
1849 }
1850 
1851 template<> inline const mindspore::schema::MulFusion *Primitive::value_as<mindspore::schema::MulFusion>() const {
1852   return value_as_MulFusion();
1853 }
1854 
1855 template<> inline const mindspore::schema::MulGrad *Primitive::value_as<mindspore::schema::MulGrad>() const {
1856   return value_as_MulGrad();
1857 }
1858 
1859 template<> inline const mindspore::schema::Neg *Primitive::value_as<mindspore::schema::Neg>() const {
1860   return value_as_Neg();
1861 }
1862 
1863 template<> inline const mindspore::schema::NegGrad *Primitive::value_as<mindspore::schema::NegGrad>() const {
1864   return value_as_NegGrad();
1865 }
1866 
1867 template<> inline const mindspore::schema::NotEqual *Primitive::value_as<mindspore::schema::NotEqual>() const {
1868   return value_as_NotEqual();
1869 }
1870 
1871 template<> inline const mindspore::schema::NonMaxSuppression *Primitive::value_as<mindspore::schema::NonMaxSuppression>() const {
1872   return value_as_NonMaxSuppression();
1873 }
1874 
1875 template<> inline const mindspore::schema::OneHot *Primitive::value_as<mindspore::schema::OneHot>() const {
1876   return value_as_OneHot();
1877 }
1878 
1879 template<> inline const mindspore::schema::OnesLike *Primitive::value_as<mindspore::schema::OnesLike>() const {
1880   return value_as_OnesLike();
1881 }
1882 
1883 template<> inline const mindspore::schema::PadFusion *Primitive::value_as<mindspore::schema::PadFusion>() const {
1884   return value_as_PadFusion();
1885 }
1886 
1887 template<> inline const mindspore::schema::PartialFusion *Primitive::value_as<mindspore::schema::PartialFusion>() const {
1888   return value_as_PartialFusion();
1889 }
1890 
1891 template<> inline const mindspore::schema::PowerGrad *Primitive::value_as<mindspore::schema::PowerGrad>() const {
1892   return value_as_PowerGrad();
1893 }
1894 
1895 template<> inline const mindspore::schema::PowFusion *Primitive::value_as<mindspore::schema::PowFusion>() const {
1896   return value_as_PowFusion();
1897 }
1898 
1899 template<> inline const mindspore::schema::PriorBox *Primitive::value_as<mindspore::schema::PriorBox>() const {
1900   return value_as_PriorBox();
1901 }
1902 
1903 template<> inline const mindspore::schema::PReLUFusion *Primitive::value_as<mindspore::schema::PReLUFusion>() const {
1904   return value_as_PReLUFusion();
1905 }
1906 
1907 template<> inline const mindspore::schema::QuantDTypeCast *Primitive::value_as<mindspore::schema::QuantDTypeCast>() const {
1908   return value_as_QuantDTypeCast();
1909 }
1910 
1911 template<> inline const mindspore::schema::Rank *Primitive::value_as<mindspore::schema::Rank>() const {
1912   return value_as_Rank();
1913 }
1914 
1915 template<> inline const mindspore::schema::Range *Primitive::value_as<mindspore::schema::Range>() const {
1916   return value_as_Range();
1917 }
1918 
1919 template<> inline const mindspore::schema::Reciprocal *Primitive::value_as<mindspore::schema::Reciprocal>() const {
1920   return value_as_Reciprocal();
1921 }
1922 
1923 template<> inline const mindspore::schema::RealDiv *Primitive::value_as<mindspore::schema::RealDiv>() const {
1924   return value_as_RealDiv();
1925 }
1926 
1927 template<> inline const mindspore::schema::ReduceFusion *Primitive::value_as<mindspore::schema::ReduceFusion>() const {
1928   return value_as_ReduceFusion();
1929 }
1930 
1931 template<> inline const mindspore::schema::Reshape *Primitive::value_as<mindspore::schema::Reshape>() const {
1932   return value_as_Reshape();
1933 }
1934 
1935 template<> inline const mindspore::schema::Resize *Primitive::value_as<mindspore::schema::Resize>() const {
1936   return value_as_Resize();
1937 }
1938 
1939 template<> inline const mindspore::schema::ReverseSequence *Primitive::value_as<mindspore::schema::ReverseSequence>() const {
1940   return value_as_ReverseSequence();
1941 }
1942 
1943 template<> inline const mindspore::schema::ReverseV2 *Primitive::value_as<mindspore::schema::ReverseV2>() const {
1944   return value_as_ReverseV2();
1945 }
1946 
1947 template<> inline const mindspore::schema::Rfft *Primitive::value_as<mindspore::schema::Rfft>() const {
1948   return value_as_Rfft();
1949 }
1950 
1951 template<> inline const mindspore::schema::ROIPooling *Primitive::value_as<mindspore::schema::ROIPooling>() const {
1952   return value_as_ROIPooling();
1953 }
1954 
1955 template<> inline const mindspore::schema::Round *Primitive::value_as<mindspore::schema::Round>() const {
1956   return value_as_Round();
1957 }
1958 
1959 template<> inline const mindspore::schema::Rsqrt *Primitive::value_as<mindspore::schema::Rsqrt>() const {
1960   return value_as_Rsqrt();
1961 }
1962 
1963 template<> inline const mindspore::schema::ScaleFusion *Primitive::value_as<mindspore::schema::ScaleFusion>() const {
1964   return value_as_ScaleFusion();
1965 }
1966 
1967 template<> inline const mindspore::schema::ScatterNd *Primitive::value_as<mindspore::schema::ScatterNd>() const {
1968   return value_as_ScatterNd();
1969 }
1970 
1971 template<> inline const mindspore::schema::SGD *Primitive::value_as<mindspore::schema::SGD>() const {
1972   return value_as_SGD();
1973 }
1974 
1975 template<> inline const mindspore::schema::Shape *Primitive::value_as<mindspore::schema::Shape>() const {
1976   return value_as_Shape();
1977 }
1978 
1979 template<> inline const mindspore::schema::SigmoidCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SigmoidCrossEntropyWithLogits>() const {
1980   return value_as_SigmoidCrossEntropyWithLogits();
1981 }
1982 
1983 template<> inline const mindspore::schema::SigmoidCrossEntropyWithLogitsGrad *Primitive::value_as<mindspore::schema::SigmoidCrossEntropyWithLogitsGrad>() const {
1984   return value_as_SigmoidCrossEntropyWithLogitsGrad();
1985 }
1986 
1987 template<> inline const mindspore::schema::Sin *Primitive::value_as<mindspore::schema::Sin>() const {
1988   return value_as_Sin();
1989 }
1990 
1991 template<> inline const mindspore::schema::SkipGram *Primitive::value_as<mindspore::schema::SkipGram>() const {
1992   return value_as_SkipGram();
1993 }
1994 
1995 template<> inline const mindspore::schema::SliceFusion *Primitive::value_as<mindspore::schema::SliceFusion>() const {
1996   return value_as_SliceFusion();
1997 }
1998 
1999 template<> inline const mindspore::schema::SmoothL1Loss *Primitive::value_as<mindspore::schema::SmoothL1Loss>() const {
2000   return value_as_SmoothL1Loss();
2001 }
2002 
2003 template<> inline const mindspore::schema::SmoothL1LossGrad *Primitive::value_as<mindspore::schema::SmoothL1LossGrad>() const {
2004   return value_as_SmoothL1LossGrad();
2005 }
2006 
2007 template<> inline const mindspore::schema::Softmax *Primitive::value_as<mindspore::schema::Softmax>() const {
2008   return value_as_Softmax();
2009 }
2010 
2011 template<> inline const mindspore::schema::SoftmaxCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SoftmaxCrossEntropyWithLogits>() const {
2012   return value_as_SoftmaxCrossEntropyWithLogits();
2013 }
2014 
2015 template<> inline const mindspore::schema::SpaceToBatch *Primitive::value_as<mindspore::schema::SpaceToBatch>() const {
2016   return value_as_SpaceToBatch();
2017 }
2018 
2019 template<> inline const mindspore::schema::SpaceToBatchND *Primitive::value_as<mindspore::schema::SpaceToBatchND>() const {
2020   return value_as_SpaceToBatchND();
2021 }
2022 
2023 template<> inline const mindspore::schema::SpaceToDepth *Primitive::value_as<mindspore::schema::SpaceToDepth>() const {
2024   return value_as_SpaceToDepth();
2025 }
2026 
2027 template<> inline const mindspore::schema::SparseSoftmaxCrossEntropyWithLogits *Primitive::value_as<mindspore::schema::SparseSoftmaxCrossEntropyWithLogits>() const {
2028   return value_as_SparseSoftmaxCrossEntropyWithLogits();
2029 }
2030 
2031 template<> inline const mindspore::schema::SparseToDense *Primitive::value_as<mindspore::schema::SparseToDense>() const {
2032   return value_as_SparseToDense();
2033 }
2034 
2035 template<> inline const mindspore::schema::Split *Primitive::value_as<mindspore::schema::Split>() const {
2036   return value_as_Split();
2037 }
2038 
2039 template<> inline const mindspore::schema::Sqrt *Primitive::value_as<mindspore::schema::Sqrt>() const {
2040   return value_as_Sqrt();
2041 }
2042 
2043 template<> inline const mindspore::schema::Squeeze *Primitive::value_as<mindspore::schema::Squeeze>() const {
2044   return value_as_Squeeze();
2045 }
2046 
2047 template<> inline const mindspore::schema::Square *Primitive::value_as<mindspore::schema::Square>() const {
2048   return value_as_Square();
2049 }
2050 
2051 template<> inline const mindspore::schema::SquaredDifference *Primitive::value_as<mindspore::schema::SquaredDifference>() const {
2052   return value_as_SquaredDifference();
2053 }
2054 
2055 template<> inline const mindspore::schema::Stack *Primitive::value_as<mindspore::schema::Stack>() const {
2056   return value_as_Stack();
2057 }
2058 
2059 template<> inline const mindspore::schema::StridedSlice *Primitive::value_as<mindspore::schema::StridedSlice>() const {
2060   return value_as_StridedSlice();
2061 }
2062 
2063 template<> inline const mindspore::schema::SubFusion *Primitive::value_as<mindspore::schema::SubFusion>() const {
2064   return value_as_SubFusion();
2065 }
2066 
2067 template<> inline const mindspore::schema::SubGrad *Primitive::value_as<mindspore::schema::SubGrad>() const {
2068   return value_as_SubGrad();
2069 }
2070 
2071 template<> inline const mindspore::schema::Switch *Primitive::value_as<mindspore::schema::Switch>() const {
2072   return value_as_Switch();
2073 }
2074 
2075 template<> inline const mindspore::schema::TensorListFromTensor *Primitive::value_as<mindspore::schema::TensorListFromTensor>() const {
2076   return value_as_TensorListFromTensor();
2077 }
2078 
2079 template<> inline const mindspore::schema::TensorListGetItem *Primitive::value_as<mindspore::schema::TensorListGetItem>() const {
2080   return value_as_TensorListGetItem();
2081 }
2082 
2083 template<> inline const mindspore::schema::TensorListReserve *Primitive::value_as<mindspore::schema::TensorListReserve>() const {
2084   return value_as_TensorListReserve();
2085 }
2086 
2087 template<> inline const mindspore::schema::TensorListSetItem *Primitive::value_as<mindspore::schema::TensorListSetItem>() const {
2088   return value_as_TensorListSetItem();
2089 }
2090 
2091 template<> inline const mindspore::schema::TensorListStack *Primitive::value_as<mindspore::schema::TensorListStack>() const {
2092   return value_as_TensorListStack();
2093 }
2094 
2095 template<> inline const mindspore::schema::TileFusion *Primitive::value_as<mindspore::schema::TileFusion>() const {
2096   return value_as_TileFusion();
2097 }
2098 
2099 template<> inline const mindspore::schema::TopKFusion *Primitive::value_as<mindspore::schema::TopKFusion>() const {
2100   return value_as_TopKFusion();
2101 }
2102 
2103 template<> inline const mindspore::schema::Transpose *Primitive::value_as<mindspore::schema::Transpose>() const {
2104   return value_as_Transpose();
2105 }
2106 
2107 template<> inline const mindspore::schema::Unique *Primitive::value_as<mindspore::schema::Unique>() const {
2108   return value_as_Unique();
2109 }
2110 
2111 template<> inline const mindspore::schema::UnsortedSegmentSum *Primitive::value_as<mindspore::schema::UnsortedSegmentSum>() const {
2112   return value_as_UnsortedSegmentSum();
2113 }
2114 
2115 template<> inline const mindspore::schema::Unsqueeze *Primitive::value_as<mindspore::schema::Unsqueeze>() const {
2116   return value_as_Unsqueeze();
2117 }
2118 
2119 template<> inline const mindspore::schema::Unstack *Primitive::value_as<mindspore::schema::Unstack>() const {
2120   return value_as_Unstack();
2121 }
2122 
2123 template<> inline const mindspore::schema::LSTMGrad *Primitive::value_as<mindspore::schema::LSTMGrad>() const {
2124   return value_as_LSTMGrad();
2125 }
2126 
2127 template<> inline const mindspore::schema::Where *Primitive::value_as<mindspore::schema::Where>() const {
2128   return value_as_Where();
2129 }
2130 
2131 template<> inline const mindspore::schema::ZerosLike *Primitive::value_as<mindspore::schema::ZerosLike>() const {
2132   return value_as_ZerosLike();
2133 }
2134 
2135 template<> inline const mindspore::schema::Select *Primitive::value_as<mindspore::schema::Select>() const {
2136   return value_as_Select();
2137 }
2138 
2139 template<> inline const mindspore::schema::ScatterNdUpdate *Primitive::value_as<mindspore::schema::ScatterNdUpdate>() const {
2140   return value_as_ScatterNdUpdate();
2141 }
2142 
2143 template<> inline const mindspore::schema::GRU *Primitive::value_as<mindspore::schema::GRU>() const {
2144   return value_as_GRU();
2145 }
2146 
2147 template<> inline const mindspore::schema::NonZero *Primitive::value_as<mindspore::schema::NonZero>() const {
2148   return value_as_NonZero();
2149 }
2150 
2151 template<> inline const mindspore::schema::InvertPermutation *Primitive::value_as<mindspore::schema::InvertPermutation>() const {
2152   return value_as_InvertPermutation();
2153 }
2154 
2155 template<> inline const mindspore::schema::Size *Primitive::value_as<mindspore::schema::Size>() const {
2156   return value_as_Size();
2157 }
2158 
2159 template<> inline const mindspore::schema::RandomStandardNormal *Primitive::value_as<mindspore::schema::RandomStandardNormal>() const {
2160   return value_as_RandomStandardNormal();
2161 }
2162 
2163 template<> inline const mindspore::schema::CropAndResize *Primitive::value_as<mindspore::schema::CropAndResize>() const {
2164   return value_as_CropAndResize();
2165 }
2166 
2167 template<> inline const mindspore::schema::Erf *Primitive::value_as<mindspore::schema::Erf>() const {
2168   return value_as_Erf();
2169 }
2170 
2171 template<> inline const mindspore::schema::StridedSliceGrad *Primitive::value_as<mindspore::schema::StridedSliceGrad>() const {
2172   return value_as_StridedSliceGrad();
2173 }
2174 
2175 template<> inline const mindspore::schema::IsFinite *Primitive::value_as<mindspore::schema::IsFinite>() const {
2176   return value_as_IsFinite();
2177 }
2178 
2179 template<> inline const mindspore::schema::LinSpace *Primitive::value_as<mindspore::schema::LinSpace>() const {
2180   return value_as_LinSpace();
2181 }
2182 
2183 template<> inline const mindspore::schema::UniformReal *Primitive::value_as<mindspore::schema::UniformReal>() const {
2184   return value_as_UniformReal();
2185 }
2186 
2187 template<> inline const mindspore::schema::AbsGrad *Primitive::value_as<mindspore::schema::AbsGrad>() const {
2188   return value_as_AbsGrad();
2189 }
2190 
2191 template<> inline const mindspore::schema::RsqrtGrad *Primitive::value_as<mindspore::schema::RsqrtGrad>() const {
2192   return value_as_RsqrtGrad();
2193 }
2194 
2195 template<> inline const mindspore::schema::SqrtGrad *Primitive::value_as<mindspore::schema::SqrtGrad>() const {
2196   return value_as_SqrtGrad();
2197 }
2198 
2199 template<> inline const mindspore::schema::LayerNormGrad *Primitive::value_as<mindspore::schema::LayerNormGrad>() const {
2200   return value_as_LayerNormGrad();
2201 }
2202 
2203 template<> inline const mindspore::schema::ResizeGrad *Primitive::value_as<mindspore::schema::ResizeGrad>() const {
2204   return value_as_ResizeGrad();
2205 }
2206 
2207 template<> inline const mindspore::schema::Splice *Primitive::value_as<mindspore::schema::Splice>() const {
2208   return value_as_Splice();
2209 }
2210 
2211 template<> inline const mindspore::schema::LogSoftmax *Primitive::value_as<mindspore::schema::LogSoftmax>() const {
2212   return value_as_LogSoftmax();
2213 }
2214 
2215 template<> inline const mindspore::schema::Call *Primitive::value_as<mindspore::schema::Call>() const {
2216   return value_as_Call();
2217 }
2218 
2219 template<> inline const mindspore::schema::Custom *Primitive::value_as<mindspore::schema::Custom>() const {
2220   return value_as_Custom();
2221 }
2222 
2223 template<> inline const mindspore::schema::CumSum *Primitive::value_as<mindspore::schema::CumSum>() const {
2224   return value_as_CumSum();
2225 }
2226 
2227 template<> inline const mindspore::schema::SplitWithOverlap *Primitive::value_as<mindspore::schema::SplitWithOverlap>() const {
2228   return value_as_SplitWithOverlap();
2229 }
2230 
2231 template<> inline const mindspore::schema::GenOP *Primitive::value_as<mindspore::schema::GenOP>() const {
2232   return value_as_GenOP();
2233 }
2234 
2235 template<> inline const mindspore::schema::RaggedRange *Primitive::value_as<mindspore::schema::RaggedRange>() const {
2236   return value_as_RaggedRange();
2237 }
2238 
2239 template<> inline const mindspore::schema::GLU *Primitive::value_as<mindspore::schema::GLU>() const {
2240   return value_as_GLU();
2241 }
2242 
2243 template<> inline const mindspore::schema::TensorArray *Primitive::value_as<mindspore::schema::TensorArray>() const {
2244   return value_as_TensorArray();
2245 }
2246 
2247 template<> inline const mindspore::schema::TensorArrayRead *Primitive::value_as<mindspore::schema::TensorArrayRead>() const {
2248   return value_as_TensorArrayRead();
2249 }
2250 
2251 template<> inline const mindspore::schema::TensorArrayWrite *Primitive::value_as<mindspore::schema::TensorArrayWrite>() const {
2252   return value_as_TensorArrayWrite();
2253 }
2254 
2255 template<> inline const mindspore::schema::Affine *Primitive::value_as<mindspore::schema::Affine>() const {
2256   return value_as_Affine();
2257 }
2258 
2259 template<> inline const mindspore::schema::AllGather *Primitive::value_as<mindspore::schema::AllGather>() const {
2260   return value_as_AllGather();
2261 }
2262 
2263 template<> inline const mindspore::schema::ReduceScatter *Primitive::value_as<mindspore::schema::ReduceScatter>() const {
2264   return value_as_ReduceScatter();
2265 }
2266 
2267 template<> inline const mindspore::schema::DynamicQuant *Primitive::value_as<mindspore::schema::DynamicQuant>() const {
2268   return value_as_DynamicQuant();
2269 }
2270 
2271 template<> inline const mindspore::schema::LSTMGradData *Primitive::value_as<mindspore::schema::LSTMGradData>() const {
2272   return value_as_LSTMGradData();
2273 }
2274 
2275 template<> inline const mindspore::schema::LSTMGradWeight *Primitive::value_as<mindspore::schema::LSTMGradWeight>() const {
2276   return value_as_LSTMGradWeight();
2277 }
2278 
2279 template<> inline const mindspore::schema::RandomNormal *Primitive::value_as<mindspore::schema::RandomNormal>() const {
2280   return value_as_RandomNormal();
2281 }
2282 
2283 template<> inline const mindspore::schema::NLLLoss *Primitive::value_as<mindspore::schema::NLLLoss>() const {
2284   return value_as_NLLLoss();
2285 }
2286 
2287 template<> inline const mindspore::schema::NLLLossGrad *Primitive::value_as<mindspore::schema::NLLLossGrad>() const {
2288   return value_as_NLLLossGrad();
2289 }
2290 
2291 template<> inline const mindspore::schema::FormatTranspose *Primitive::value_as<mindspore::schema::FormatTranspose>() const {
2292   return value_as_FormatTranspose();
2293 }
2294 
2295 template<> inline const mindspore::schema::GatherD *Primitive::value_as<mindspore::schema::GatherD>() const {
2296   return value_as_GatherD();
2297 }
2298 
2299 template<> inline const mindspore::schema::GroupNormFusion *Primitive::value_as<mindspore::schema::GroupNormFusion>() const {
2300   return value_as_GroupNormFusion();
2301 }
2302 
2303 template<> inline const mindspore::schema::Log1p *Primitive::value_as<mindspore::schema::Log1p>() const {
2304   return value_as_Log1p();
2305 }
2306 
2307 template<> inline const mindspore::schema::TensorScatterAdd *Primitive::value_as<mindspore::schema::TensorScatterAdd>() const {
2308   return value_as_TensorScatterAdd();
2309 }
2310 
2311 template<> inline const mindspore::schema::SparseFillEmptyRows *Primitive::value_as<mindspore::schema::SparseFillEmptyRows>() const {
2312   return value_as_SparseFillEmptyRows();
2313 }
2314 
2315 template<> inline const mindspore::schema::SparseReshape *Primitive::value_as<mindspore::schema::SparseReshape>() const {
2316   return value_as_SparseReshape();
2317 }
2318 
2319 template<> inline const mindspore::schema::SparseSegmentSum *Primitive::value_as<mindspore::schema::SparseSegmentSum>() const {
2320   return value_as_SparseSegmentSum();
2321 }
2322 
2323 template<> inline const mindspore::schema::ScatterElements *Primitive::value_as<mindspore::schema::ScatterElements>() const {
2324   return value_as_ScatterElements();
2325 }
2326 
2327 template<> inline const mindspore::schema::Triu *Primitive::value_as<mindspore::schema::Triu>() const {
2328   return value_as_Triu();
2329 }
2330 
2331 template<> inline const mindspore::schema::Tril *Primitive::value_as<mindspore::schema::Tril>() const {
2332   return value_as_Tril();
2333 }
2334 
2335 template<> inline const mindspore::schema::AdamWeightDecay *Primitive::value_as<mindspore::schema::AdamWeightDecay>() const {
2336   return value_as_AdamWeightDecay();
2337 }
2338 
2339 template<> inline const mindspore::schema::FillV2 *Primitive::value_as<mindspore::schema::FillV2>() const {
2340   return value_as_FillV2();
2341 }
2342 
2343 struct PrimitiveBuilder {
2344   typedef Primitive Table;
2345   ::flatbuffers::FlatBufferBuilder &fbb_;
2346   ::flatbuffers::uoffset_t start_;
add_value_typePrimitiveBuilder2347   void add_value_type(mindspore::schema::PrimitiveType value_type) {
2348     fbb_.AddElement<uint8_t>(Primitive::VT_VALUE_TYPE, static_cast<uint8_t>(value_type), 0);
2349   }
add_valuePrimitiveBuilder2350   void add_value(::flatbuffers::Offset<void> value) {
2351     fbb_.AddOffset(Primitive::VT_VALUE, value);
2352   }
PrimitiveBuilderPrimitiveBuilder2353   explicit PrimitiveBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2354         : fbb_(_fbb) {
2355     start_ = fbb_.StartTable();
2356   }
FinishPrimitiveBuilder2357   ::flatbuffers::Offset<Primitive> Finish() {
2358     const auto end = fbb_.EndTable(start_);
2359     auto o = ::flatbuffers::Offset<Primitive>(end);
2360     return o;
2361   }
2362 };
2363 
2364 inline ::flatbuffers::Offset<Primitive> CreatePrimitive(
2365     ::flatbuffers::FlatBufferBuilder &_fbb,
2366     mindspore::schema::PrimitiveType value_type = mindspore::schema::PrimitiveType_NONE,
2367     ::flatbuffers::Offset<void> value = 0) {
2368   PrimitiveBuilder builder_(_fbb);
2369   builder_.add_value(value);
2370   builder_.add_value_type(value_type);
2371   return builder_.Finish();
2372 }
2373 
2374 ::flatbuffers::Offset<Primitive> CreatePrimitive(::flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2375 
2376 struct CNodeT : public ::flatbuffers::NativeTable {
2377   typedef CNode TableType;
2378   std::string name{};
2379   std::unique_ptr<mindspore::schema::PrimitiveT> primitive{};
2380   std::vector<uint32_t> inputIndex{};
2381   std::vector<uint32_t> outputIndex{};
2382   mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE;
2383   int32_t deviceType = -1;
2384   CNodeT() = default;
2385   CNodeT(const CNodeT &o);
2386   CNodeT(CNodeT&&) FLATBUFFERS_NOEXCEPT = default;
2387   CNodeT &operator=(CNodeT o) FLATBUFFERS_NOEXCEPT;
2388 };
2389 
2390 struct CNode FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2391   typedef CNodeT NativeTableType;
2392   typedef CNodeBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2393   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
2394     return CNodeTypeTable();
2395   }
2396   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2397     VT_NAME = 4,
2398     VT_PRIMITIVE = 8,
2399     VT_INPUTINDEX = 10,
2400     VT_OUTPUTINDEX = 12,
2401     VT_QUANTTYPE = 14,
2402     VT_DEVICETYPE = 16
2403   };
nameFLATBUFFERS_FINAL_CLASS2404   const ::flatbuffers::String *name() const {
2405     return GetPointer<const ::flatbuffers::String *>(VT_NAME);
2406   }
mutable_nameFLATBUFFERS_FINAL_CLASS2407   ::flatbuffers::String *mutable_name() {
2408     return GetPointer<::flatbuffers::String *>(VT_NAME);
2409   }
primitiveFLATBUFFERS_FINAL_CLASS2410   const mindspore::schema::Primitive *primitive() const {
2411     return GetPointer<const mindspore::schema::Primitive *>(VT_PRIMITIVE);
2412   }
mutable_primitiveFLATBUFFERS_FINAL_CLASS2413   mindspore::schema::Primitive *mutable_primitive() {
2414     return GetPointer<mindspore::schema::Primitive *>(VT_PRIMITIVE);
2415   }
inputIndexFLATBUFFERS_FINAL_CLASS2416   const ::flatbuffers::Vector<uint32_t> *inputIndex() const {
2417     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2418   }
mutable_inputIndexFLATBUFFERS_FINAL_CLASS2419   ::flatbuffers::Vector<uint32_t> *mutable_inputIndex() {
2420     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2421   }
outputIndexFLATBUFFERS_FINAL_CLASS2422   const ::flatbuffers::Vector<uint32_t> *outputIndex() const {
2423     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2424   }
mutable_outputIndexFLATBUFFERS_FINAL_CLASS2425   ::flatbuffers::Vector<uint32_t> *mutable_outputIndex() {
2426     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2427   }
quantTypeFLATBUFFERS_FINAL_CLASS2428   mindspore::schema::QuantType quantType() const {
2429     return static_cast<mindspore::schema::QuantType>(GetField<int32_t>(VT_QUANTTYPE, 0));
2430   }
2431   bool mutate_quantType(mindspore::schema::QuantType _quantType = static_cast<mindspore::schema::QuantType>(0)) {
2432     return SetField<int32_t>(VT_QUANTTYPE, static_cast<int32_t>(_quantType), 0);
2433   }
deviceTypeFLATBUFFERS_FINAL_CLASS2434   int32_t deviceType() const {
2435     return GetField<int32_t>(VT_DEVICETYPE, -1);
2436   }
2437   bool mutate_deviceType(int32_t _deviceType = -1) {
2438     return SetField<int32_t>(VT_DEVICETYPE, _deviceType, -1);
2439   }
VerifyFLATBUFFERS_FINAL_CLASS2440   bool Verify(::flatbuffers::Verifier &verifier) const {
2441     return VerifyTableStart(verifier) &&
2442            VerifyOffset(verifier, VT_NAME) &&
2443            verifier.VerifyString(name()) &&
2444            VerifyOffset(verifier, VT_PRIMITIVE) &&
2445            verifier.VerifyTable(primitive()) &&
2446            VerifyOffset(verifier, VT_INPUTINDEX) &&
2447            verifier.VerifyVector(inputIndex()) &&
2448            VerifyOffset(verifier, VT_OUTPUTINDEX) &&
2449            verifier.VerifyVector(outputIndex()) &&
2450            VerifyField<int32_t>(verifier, VT_QUANTTYPE, 4) &&
2451            VerifyField<int32_t>(verifier, VT_DEVICETYPE, 4) &&
2452            verifier.EndTable();
2453   }
2454   CNodeT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2455   void UnPackTo(CNodeT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2456   static ::flatbuffers::Offset<CNode> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const CNodeT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2457 };
2458 
2459 struct CNodeBuilder {
2460   typedef CNode Table;
2461   ::flatbuffers::FlatBufferBuilder &fbb_;
2462   ::flatbuffers::uoffset_t start_;
add_nameCNodeBuilder2463   void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
2464     fbb_.AddOffset(CNode::VT_NAME, name);
2465   }
add_primitiveCNodeBuilder2466   void add_primitive(::flatbuffers::Offset<mindspore::schema::Primitive> primitive) {
2467     fbb_.AddOffset(CNode::VT_PRIMITIVE, primitive);
2468   }
add_inputIndexCNodeBuilder2469   void add_inputIndex(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndex) {
2470     fbb_.AddOffset(CNode::VT_INPUTINDEX, inputIndex);
2471   }
add_outputIndexCNodeBuilder2472   void add_outputIndex(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndex) {
2473     fbb_.AddOffset(CNode::VT_OUTPUTINDEX, outputIndex);
2474   }
add_quantTypeCNodeBuilder2475   void add_quantType(mindspore::schema::QuantType quantType) {
2476     fbb_.AddElement<int32_t>(CNode::VT_QUANTTYPE, static_cast<int32_t>(quantType), 0);
2477   }
add_deviceTypeCNodeBuilder2478   void add_deviceType(int32_t deviceType) {
2479     fbb_.AddElement<int32_t>(CNode::VT_DEVICETYPE, deviceType, -1);
2480   }
CNodeBuilderCNodeBuilder2481   explicit CNodeBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2482         : fbb_(_fbb) {
2483     start_ = fbb_.StartTable();
2484   }
FinishCNodeBuilder2485   ::flatbuffers::Offset<CNode> Finish() {
2486     const auto end = fbb_.EndTable(start_);
2487     auto o = ::flatbuffers::Offset<CNode>(end);
2488     return o;
2489   }
2490 };
2491 
2492 inline ::flatbuffers::Offset<CNode> CreateCNode(
2493     ::flatbuffers::FlatBufferBuilder &_fbb,
2494     ::flatbuffers::Offset<::flatbuffers::String> name = 0,
2495     ::flatbuffers::Offset<mindspore::schema::Primitive> primitive = 0,
2496     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndex = 0,
2497     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndex = 0,
2498     mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE,
2499     int32_t deviceType = -1) {
2500   CNodeBuilder builder_(_fbb);
2501   builder_.add_deviceType(deviceType);
2502   builder_.add_quantType(quantType);
2503   builder_.add_outputIndex(outputIndex);
2504   builder_.add_inputIndex(inputIndex);
2505   builder_.add_primitive(primitive);
2506   builder_.add_name(name);
2507   return builder_.Finish();
2508 }
2509 
2510 inline ::flatbuffers::Offset<CNode> CreateCNodeDirect(
2511     ::flatbuffers::FlatBufferBuilder &_fbb,
2512     const char *name = nullptr,
2513     ::flatbuffers::Offset<mindspore::schema::Primitive> primitive = 0,
2514     const std::vector<uint32_t> *inputIndex = nullptr,
2515     const std::vector<uint32_t> *outputIndex = nullptr,
2516     mindspore::schema::QuantType quantType = mindspore::schema::QuantType_QUANT_NONE,
2517     int32_t deviceType = -1) {
2518   auto name__ = name ? _fbb.CreateString(name) : 0;
2519   auto inputIndex__ = inputIndex ? _fbb.CreateVector<uint32_t>(*inputIndex) : 0;
2520   auto outputIndex__ = outputIndex ? _fbb.CreateVector<uint32_t>(*outputIndex) : 0;
2521   return mindspore::schema::CreateCNode(
2522       _fbb,
2523       name__,
2524       primitive,
2525       inputIndex__,
2526       outputIndex__,
2527       quantType,
2528       deviceType);
2529 }
2530 
2531 ::flatbuffers::Offset<CNode> CreateCNode(::flatbuffers::FlatBufferBuilder &_fbb, const CNodeT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2532 
2533 struct SubGraphT : public ::flatbuffers::NativeTable {
2534   typedef SubGraph TableType;
2535   std::string name{};
2536   std::vector<uint32_t> inputIndices{};
2537   std::vector<uint32_t> outputIndices{};
2538   std::vector<uint32_t> nodeIndices{};
2539   std::vector<uint32_t> tensorIndices{};
2540 };
2541 
2542 struct SubGraph FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2543   typedef SubGraphT NativeTableType;
2544   typedef SubGraphBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2545   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
2546     return SubGraphTypeTable();
2547   }
2548   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2549     VT_NAME = 4,
2550     VT_INPUTINDICES = 6,
2551     VT_OUTPUTINDICES = 8,
2552     VT_NODEINDICES = 10,
2553     VT_TENSORINDICES = 12
2554   };
nameFLATBUFFERS_FINAL_CLASS2555   const ::flatbuffers::String *name() const {
2556     return GetPointer<const ::flatbuffers::String *>(VT_NAME);
2557   }
mutable_nameFLATBUFFERS_FINAL_CLASS2558   ::flatbuffers::String *mutable_name() {
2559     return GetPointer<::flatbuffers::String *>(VT_NAME);
2560   }
inputIndicesFLATBUFFERS_FINAL_CLASS2561   const ::flatbuffers::Vector<uint32_t> *inputIndices() const {
2562     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDICES);
2563   }
mutable_inputIndicesFLATBUFFERS_FINAL_CLASS2564   ::flatbuffers::Vector<uint32_t> *mutable_inputIndices() {
2565     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDICES);
2566   }
outputIndicesFLATBUFFERS_FINAL_CLASS2567   const ::flatbuffers::Vector<uint32_t> *outputIndices() const {
2568     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDICES);
2569   }
mutable_outputIndicesFLATBUFFERS_FINAL_CLASS2570   ::flatbuffers::Vector<uint32_t> *mutable_outputIndices() {
2571     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDICES);
2572   }
nodeIndicesFLATBUFFERS_FINAL_CLASS2573   const ::flatbuffers::Vector<uint32_t> *nodeIndices() const {
2574     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_NODEINDICES);
2575   }
mutable_nodeIndicesFLATBUFFERS_FINAL_CLASS2576   ::flatbuffers::Vector<uint32_t> *mutable_nodeIndices() {
2577     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_NODEINDICES);
2578   }
tensorIndicesFLATBUFFERS_FINAL_CLASS2579   const ::flatbuffers::Vector<uint32_t> *tensorIndices() const {
2580     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_TENSORINDICES);
2581   }
mutable_tensorIndicesFLATBUFFERS_FINAL_CLASS2582   ::flatbuffers::Vector<uint32_t> *mutable_tensorIndices() {
2583     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_TENSORINDICES);
2584   }
VerifyFLATBUFFERS_FINAL_CLASS2585   bool Verify(::flatbuffers::Verifier &verifier) const {
2586     return VerifyTableStart(verifier) &&
2587            VerifyOffset(verifier, VT_NAME) &&
2588            verifier.VerifyString(name()) &&
2589            VerifyOffset(verifier, VT_INPUTINDICES) &&
2590            verifier.VerifyVector(inputIndices()) &&
2591            VerifyOffset(verifier, VT_OUTPUTINDICES) &&
2592            verifier.VerifyVector(outputIndices()) &&
2593            VerifyOffset(verifier, VT_NODEINDICES) &&
2594            verifier.VerifyVector(nodeIndices()) &&
2595            VerifyOffset(verifier, VT_TENSORINDICES) &&
2596            verifier.VerifyVector(tensorIndices()) &&
2597            verifier.EndTable();
2598   }
2599   SubGraphT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2600   void UnPackTo(SubGraphT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2601   static ::flatbuffers::Offset<SubGraph> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2602 };
2603 
2604 struct SubGraphBuilder {
2605   typedef SubGraph Table;
2606   ::flatbuffers::FlatBufferBuilder &fbb_;
2607   ::flatbuffers::uoffset_t start_;
add_nameSubGraphBuilder2608   void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
2609     fbb_.AddOffset(SubGraph::VT_NAME, name);
2610   }
add_inputIndicesSubGraphBuilder2611   void add_inputIndices(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndices) {
2612     fbb_.AddOffset(SubGraph::VT_INPUTINDICES, inputIndices);
2613   }
add_outputIndicesSubGraphBuilder2614   void add_outputIndices(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndices) {
2615     fbb_.AddOffset(SubGraph::VT_OUTPUTINDICES, outputIndices);
2616   }
add_nodeIndicesSubGraphBuilder2617   void add_nodeIndices(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> nodeIndices) {
2618     fbb_.AddOffset(SubGraph::VT_NODEINDICES, nodeIndices);
2619   }
add_tensorIndicesSubGraphBuilder2620   void add_tensorIndices(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> tensorIndices) {
2621     fbb_.AddOffset(SubGraph::VT_TENSORINDICES, tensorIndices);
2622   }
SubGraphBuilderSubGraphBuilder2623   explicit SubGraphBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2624         : fbb_(_fbb) {
2625     start_ = fbb_.StartTable();
2626   }
FinishSubGraphBuilder2627   ::flatbuffers::Offset<SubGraph> Finish() {
2628     const auto end = fbb_.EndTable(start_);
2629     auto o = ::flatbuffers::Offset<SubGraph>(end);
2630     return o;
2631   }
2632 };
2633 
2634 inline ::flatbuffers::Offset<SubGraph> CreateSubGraph(
2635     ::flatbuffers::FlatBufferBuilder &_fbb,
2636     ::flatbuffers::Offset<::flatbuffers::String> name = 0,
2637     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndices = 0,
2638     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndices = 0,
2639     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> nodeIndices = 0,
2640     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> tensorIndices = 0) {
2641   SubGraphBuilder builder_(_fbb);
2642   builder_.add_tensorIndices(tensorIndices);
2643   builder_.add_nodeIndices(nodeIndices);
2644   builder_.add_outputIndices(outputIndices);
2645   builder_.add_inputIndices(inputIndices);
2646   builder_.add_name(name);
2647   return builder_.Finish();
2648 }
2649 
2650 inline ::flatbuffers::Offset<SubGraph> CreateSubGraphDirect(
2651     ::flatbuffers::FlatBufferBuilder &_fbb,
2652     const char *name = nullptr,
2653     const std::vector<uint32_t> *inputIndices = nullptr,
2654     const std::vector<uint32_t> *outputIndices = nullptr,
2655     const std::vector<uint32_t> *nodeIndices = nullptr,
2656     const std::vector<uint32_t> *tensorIndices = nullptr) {
2657   auto name__ = name ? _fbb.CreateString(name) : 0;
2658   auto inputIndices__ = inputIndices ? _fbb.CreateVector<uint32_t>(*inputIndices) : 0;
2659   auto outputIndices__ = outputIndices ? _fbb.CreateVector<uint32_t>(*outputIndices) : 0;
2660   auto nodeIndices__ = nodeIndices ? _fbb.CreateVector<uint32_t>(*nodeIndices) : 0;
2661   auto tensorIndices__ = tensorIndices ? _fbb.CreateVector<uint32_t>(*tensorIndices) : 0;
2662   return mindspore::schema::CreateSubGraph(
2663       _fbb,
2664       name__,
2665       inputIndices__,
2666       outputIndices__,
2667       nodeIndices__,
2668       tensorIndices__);
2669 }
2670 
2671 ::flatbuffers::Offset<SubGraph> CreateSubGraph(::flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2672 
2673 struct MetaGraphT : public ::flatbuffers::NativeTable {
2674   typedef MetaGraph TableType;
2675   std::string name{};
2676   std::string version{};
2677   int32_t fmkType = 0;
2678   std::vector<uint32_t> inputIndex{};
2679   std::vector<uint32_t> outputIndex{};
2680   uint32_t mempoolSize = 0;
2681   std::vector<std::unique_ptr<mindspore::schema::CNodeT>> nodes{};
2682   std::vector<std::unique_ptr<mindspore::schema::TensorT>> allTensors{};
2683   std::vector<std::unique_ptr<mindspore::schema::SubGraphT>> subGraph{};
2684   bool obfuscate = false;
2685   bool encrypt = false;
2686   std::vector<uint8_t> obfMetaData{};
2687   std::vector<uint8_t> decryptTable{};
2688   MetaGraphT() = default;
2689   MetaGraphT(const MetaGraphT &o);
2690   MetaGraphT(MetaGraphT&&) FLATBUFFERS_NOEXCEPT = default;
2691   MetaGraphT &operator=(MetaGraphT o) FLATBUFFERS_NOEXCEPT;
2692 };
2693 
2694 struct MetaGraph FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2695   typedef MetaGraphT NativeTableType;
2696   typedef MetaGraphBuilder Builder;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS2697   static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
2698     return MetaGraphTypeTable();
2699   }
2700   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2701     VT_NAME = 4,
2702     VT_VERSION = 6,
2703     VT_FMKTYPE = 8,
2704     VT_INPUTINDEX = 10,
2705     VT_OUTPUTINDEX = 12,
2706     VT_MEMPOOLSIZE = 14,
2707     VT_NODES = 16,
2708     VT_ALLTENSORS = 18,
2709     VT_SUBGRAPH = 20,
2710     VT_OBFUSCATE = 22,
2711     VT_ENCRYPT = 24,
2712     VT_OBFMETADATA = 26,
2713     VT_DECRYPTTABLE = 28
2714   };
nameFLATBUFFERS_FINAL_CLASS2715   const ::flatbuffers::String *name() const {
2716     return GetPointer<const ::flatbuffers::String *>(VT_NAME);
2717   }
mutable_nameFLATBUFFERS_FINAL_CLASS2718   ::flatbuffers::String *mutable_name() {
2719     return GetPointer<::flatbuffers::String *>(VT_NAME);
2720   }
versionFLATBUFFERS_FINAL_CLASS2721   const ::flatbuffers::String *version() const {
2722     return GetPointer<const ::flatbuffers::String *>(VT_VERSION);
2723   }
mutable_versionFLATBUFFERS_FINAL_CLASS2724   ::flatbuffers::String *mutable_version() {
2725     return GetPointer<::flatbuffers::String *>(VT_VERSION);
2726   }
fmkTypeFLATBUFFERS_FINAL_CLASS2727   int32_t fmkType() const {
2728     return GetField<int32_t>(VT_FMKTYPE, 0);
2729   }
2730   bool mutate_fmkType(int32_t _fmkType = 0) {
2731     return SetField<int32_t>(VT_FMKTYPE, _fmkType, 0);
2732   }
inputIndexFLATBUFFERS_FINAL_CLASS2733   const ::flatbuffers::Vector<uint32_t> *inputIndex() const {
2734     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2735   }
mutable_inputIndexFLATBUFFERS_FINAL_CLASS2736   ::flatbuffers::Vector<uint32_t> *mutable_inputIndex() {
2737     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_INPUTINDEX);
2738   }
outputIndexFLATBUFFERS_FINAL_CLASS2739   const ::flatbuffers::Vector<uint32_t> *outputIndex() const {
2740     return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2741   }
mutable_outputIndexFLATBUFFERS_FINAL_CLASS2742   ::flatbuffers::Vector<uint32_t> *mutable_outputIndex() {
2743     return GetPointer<::flatbuffers::Vector<uint32_t> *>(VT_OUTPUTINDEX);
2744   }
mempoolSizeFLATBUFFERS_FINAL_CLASS2745   uint32_t mempoolSize() const {
2746     return GetField<uint32_t>(VT_MEMPOOLSIZE, 0);
2747   }
2748   bool mutate_mempoolSize(uint32_t _mempoolSize = 0) {
2749     return SetField<uint32_t>(VT_MEMPOOLSIZE, _mempoolSize, 0);
2750   }
nodesFLATBUFFERS_FINAL_CLASS2751   const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>> *nodes() const {
2752     return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>> *>(VT_NODES);
2753   }
mutable_nodesFLATBUFFERS_FINAL_CLASS2754   ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>> *mutable_nodes() {
2755     return GetPointer<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>> *>(VT_NODES);
2756   }
allTensorsFLATBUFFERS_FINAL_CLASS2757   const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>> *allTensors() const {
2758     return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>> *>(VT_ALLTENSORS);
2759   }
mutable_allTensorsFLATBUFFERS_FINAL_CLASS2760   ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>> *mutable_allTensors() {
2761     return GetPointer<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>> *>(VT_ALLTENSORS);
2762   }
subGraphFLATBUFFERS_FINAL_CLASS2763   const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>> *subGraph() const {
2764     return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>> *>(VT_SUBGRAPH);
2765   }
mutable_subGraphFLATBUFFERS_FINAL_CLASS2766   ::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>> *mutable_subGraph() {
2767     return GetPointer<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>> *>(VT_SUBGRAPH);
2768   }
obfuscateFLATBUFFERS_FINAL_CLASS2769   bool obfuscate() const {
2770     return GetField<uint8_t>(VT_OBFUSCATE, 0) != 0;
2771   }
2772   bool mutate_obfuscate(bool _obfuscate = 0) {
2773     return SetField<uint8_t>(VT_OBFUSCATE, static_cast<uint8_t>(_obfuscate), 0);
2774   }
encryptFLATBUFFERS_FINAL_CLASS2775   bool encrypt() const {
2776     return GetField<uint8_t>(VT_ENCRYPT, 0) != 0;
2777   }
2778   bool mutate_encrypt(bool _encrypt = 0) {
2779     return SetField<uint8_t>(VT_ENCRYPT, static_cast<uint8_t>(_encrypt), 0);
2780   }
obfMetaDataFLATBUFFERS_FINAL_CLASS2781   const ::flatbuffers::Vector<uint8_t> *obfMetaData() const {
2782     return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(VT_OBFMETADATA);
2783   }
mutable_obfMetaDataFLATBUFFERS_FINAL_CLASS2784   ::flatbuffers::Vector<uint8_t> *mutable_obfMetaData() {
2785     return GetPointer<::flatbuffers::Vector<uint8_t> *>(VT_OBFMETADATA);
2786   }
decryptTableFLATBUFFERS_FINAL_CLASS2787   const ::flatbuffers::Vector<uint8_t> *decryptTable() const {
2788     return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(VT_DECRYPTTABLE);
2789   }
mutable_decryptTableFLATBUFFERS_FINAL_CLASS2790   ::flatbuffers::Vector<uint8_t> *mutable_decryptTable() {
2791     return GetPointer<::flatbuffers::Vector<uint8_t> *>(VT_DECRYPTTABLE);
2792   }
VerifyFLATBUFFERS_FINAL_CLASS2793   bool Verify(::flatbuffers::Verifier &verifier) const {
2794     return VerifyTableStart(verifier) &&
2795            VerifyOffset(verifier, VT_NAME) &&
2796            verifier.VerifyString(name()) &&
2797            VerifyOffset(verifier, VT_VERSION) &&
2798            verifier.VerifyString(version()) &&
2799            VerifyField<int32_t>(verifier, VT_FMKTYPE, 4) &&
2800            VerifyOffset(verifier, VT_INPUTINDEX) &&
2801            verifier.VerifyVector(inputIndex()) &&
2802            VerifyOffset(verifier, VT_OUTPUTINDEX) &&
2803            verifier.VerifyVector(outputIndex()) &&
2804            VerifyField<uint32_t>(verifier, VT_MEMPOOLSIZE, 4) &&
2805            VerifyOffset(verifier, VT_NODES) &&
2806            verifier.VerifyVector(nodes()) &&
2807            verifier.VerifyVectorOfTables(nodes()) &&
2808            VerifyOffset(verifier, VT_ALLTENSORS) &&
2809            verifier.VerifyVector(allTensors()) &&
2810            verifier.VerifyVectorOfTables(allTensors()) &&
2811            VerifyOffset(verifier, VT_SUBGRAPH) &&
2812            verifier.VerifyVector(subGraph()) &&
2813            verifier.VerifyVectorOfTables(subGraph()) &&
2814            VerifyField<uint8_t>(verifier, VT_OBFUSCATE, 1) &&
2815            VerifyField<uint8_t>(verifier, VT_ENCRYPT, 1) &&
2816            VerifyOffset(verifier, VT_OBFMETADATA) &&
2817            verifier.VerifyVector(obfMetaData()) &&
2818            VerifyOffset(verifier, VT_DECRYPTTABLE) &&
2819            verifier.VerifyVector(decryptTable()) &&
2820            verifier.EndTable();
2821   }
2822   MetaGraphT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2823   void UnPackTo(MetaGraphT *_o, const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
2824   static ::flatbuffers::Offset<MetaGraph> Pack(::flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT* _o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2825 };
2826 
2827 struct MetaGraphBuilder {
2828   typedef MetaGraph Table;
2829   ::flatbuffers::FlatBufferBuilder &fbb_;
2830   ::flatbuffers::uoffset_t start_;
add_nameMetaGraphBuilder2831   void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
2832     fbb_.AddOffset(MetaGraph::VT_NAME, name);
2833   }
add_versionMetaGraphBuilder2834   void add_version(::flatbuffers::Offset<::flatbuffers::String> version) {
2835     fbb_.AddOffset(MetaGraph::VT_VERSION, version);
2836   }
add_fmkTypeMetaGraphBuilder2837   void add_fmkType(int32_t fmkType) {
2838     fbb_.AddElement<int32_t>(MetaGraph::VT_FMKTYPE, fmkType, 0);
2839   }
add_inputIndexMetaGraphBuilder2840   void add_inputIndex(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndex) {
2841     fbb_.AddOffset(MetaGraph::VT_INPUTINDEX, inputIndex);
2842   }
add_outputIndexMetaGraphBuilder2843   void add_outputIndex(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndex) {
2844     fbb_.AddOffset(MetaGraph::VT_OUTPUTINDEX, outputIndex);
2845   }
add_mempoolSizeMetaGraphBuilder2846   void add_mempoolSize(uint32_t mempoolSize) {
2847     fbb_.AddElement<uint32_t>(MetaGraph::VT_MEMPOOLSIZE, mempoolSize, 0);
2848   }
add_nodesMetaGraphBuilder2849   void add_nodes(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>>> nodes) {
2850     fbb_.AddOffset(MetaGraph::VT_NODES, nodes);
2851   }
add_allTensorsMetaGraphBuilder2852   void add_allTensors(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>>> allTensors) {
2853     fbb_.AddOffset(MetaGraph::VT_ALLTENSORS, allTensors);
2854   }
add_subGraphMetaGraphBuilder2855   void add_subGraph(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>>> subGraph) {
2856     fbb_.AddOffset(MetaGraph::VT_SUBGRAPH, subGraph);
2857   }
add_obfuscateMetaGraphBuilder2858   void add_obfuscate(bool obfuscate) {
2859     fbb_.AddElement<uint8_t>(MetaGraph::VT_OBFUSCATE, static_cast<uint8_t>(obfuscate), 0);
2860   }
add_encryptMetaGraphBuilder2861   void add_encrypt(bool encrypt) {
2862     fbb_.AddElement<uint8_t>(MetaGraph::VT_ENCRYPT, static_cast<uint8_t>(encrypt), 0);
2863   }
add_obfMetaDataMetaGraphBuilder2864   void add_obfMetaData(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> obfMetaData) {
2865     fbb_.AddOffset(MetaGraph::VT_OBFMETADATA, obfMetaData);
2866   }
add_decryptTableMetaGraphBuilder2867   void add_decryptTable(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> decryptTable) {
2868     fbb_.AddOffset(MetaGraph::VT_DECRYPTTABLE, decryptTable);
2869   }
MetaGraphBuilderMetaGraphBuilder2870   explicit MetaGraphBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2871         : fbb_(_fbb) {
2872     start_ = fbb_.StartTable();
2873   }
FinishMetaGraphBuilder2874   ::flatbuffers::Offset<MetaGraph> Finish() {
2875     const auto end = fbb_.EndTable(start_);
2876     auto o = ::flatbuffers::Offset<MetaGraph>(end);
2877     return o;
2878   }
2879 };
2880 
2881 inline ::flatbuffers::Offset<MetaGraph> CreateMetaGraph(
2882     ::flatbuffers::FlatBufferBuilder &_fbb,
2883     ::flatbuffers::Offset<::flatbuffers::String> name = 0,
2884     ::flatbuffers::Offset<::flatbuffers::String> version = 0,
2885     int32_t fmkType = 0,
2886     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> inputIndex = 0,
2887     ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> outputIndex = 0,
2888     uint32_t mempoolSize = 0,
2889     ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::CNode>>> nodes = 0,
2890     ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::Tensor>>> allTensors = 0,
2891     ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<mindspore::schema::SubGraph>>> subGraph = 0,
2892     bool obfuscate = false,
2893     bool encrypt = false,
2894     ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> obfMetaData = 0,
2895     ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> decryptTable = 0) {
2896   MetaGraphBuilder builder_(_fbb);
2897   builder_.add_decryptTable(decryptTable);
2898   builder_.add_obfMetaData(obfMetaData);
2899   builder_.add_subGraph(subGraph);
2900   builder_.add_allTensors(allTensors);
2901   builder_.add_nodes(nodes);
2902   builder_.add_mempoolSize(mempoolSize);
2903   builder_.add_outputIndex(outputIndex);
2904   builder_.add_inputIndex(inputIndex);
2905   builder_.add_fmkType(fmkType);
2906   builder_.add_version(version);
2907   builder_.add_name(name);
2908   builder_.add_encrypt(encrypt);
2909   builder_.add_obfuscate(obfuscate);
2910   return builder_.Finish();
2911 }
2912 
2913 inline ::flatbuffers::Offset<MetaGraph> CreateMetaGraphDirect(
2914     ::flatbuffers::FlatBufferBuilder &_fbb,
2915     const char *name = nullptr,
2916     const char *version = nullptr,
2917     int32_t fmkType = 0,
2918     const std::vector<uint32_t> *inputIndex = nullptr,
2919     const std::vector<uint32_t> *outputIndex = nullptr,
2920     uint32_t mempoolSize = 0,
2921     const std::vector<::flatbuffers::Offset<mindspore::schema::CNode>> *nodes = nullptr,
2922     const std::vector<::flatbuffers::Offset<mindspore::schema::Tensor>> *allTensors = nullptr,
2923     const std::vector<::flatbuffers::Offset<mindspore::schema::SubGraph>> *subGraph = nullptr,
2924     bool obfuscate = false,
2925     bool encrypt = false,
2926     const std::vector<uint8_t> *obfMetaData = nullptr,
2927     const std::vector<uint8_t> *decryptTable = nullptr) {
2928   auto name__ = name ? _fbb.CreateString(name) : 0;
2929   auto version__ = version ? _fbb.CreateString(version) : 0;
2930   auto inputIndex__ = inputIndex ? _fbb.CreateVector<uint32_t>(*inputIndex) : 0;
2931   auto outputIndex__ = outputIndex ? _fbb.CreateVector<uint32_t>(*outputIndex) : 0;
2932   auto nodes__ = nodes ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::CNode>>(*nodes) : 0;
2933   auto allTensors__ = allTensors ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::Tensor>>(*allTensors) : 0;
2934   auto subGraph__ = subGraph ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::SubGraph>>(*subGraph) : 0;
2935   auto obfMetaData__ = obfMetaData ? _fbb.CreateVector<uint8_t>(*obfMetaData) : 0;
2936   auto decryptTable__ = decryptTable ? _fbb.CreateVector<uint8_t>(*decryptTable) : 0;
2937   return mindspore::schema::CreateMetaGraph(
2938       _fbb,
2939       name__,
2940       version__,
2941       fmkType,
2942       inputIndex__,
2943       outputIndex__,
2944       mempoolSize,
2945       nodes__,
2946       allTensors__,
2947       subGraph__,
2948       obfuscate,
2949       encrypt,
2950       obfMetaData__,
2951       decryptTable__);
2952 }
2953 
2954 ::flatbuffers::Offset<MetaGraph> CreateMetaGraph(::flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
2955 
UnPack(const::flatbuffers::resolver_function_t * _resolver)2956 inline QuantParamT *QuantParam::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
2957   auto _o = std::unique_ptr<QuantParamT>(new QuantParamT());
2958   UnPackTo(_o.get(), _resolver);
2959   return _o.release();
2960 }
2961 
UnPackTo(QuantParamT * _o,const::flatbuffers::resolver_function_t * _resolver)2962 inline void QuantParam::UnPackTo(QuantParamT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
2963   (void)_o;
2964   (void)_resolver;
2965   { auto _e = scale(); _o->scale = _e; }
2966   { auto _e = zeroPoint(); _o->zeroPoint = _e; }
2967   { auto _e = min(); _o->min = _e; }
2968   { auto _e = max(); _o->max = _e; }
2969   { auto _e = narrowRange(); _o->narrowRange = _e; }
2970   { auto _e = numBits(); _o->numBits = _e; }
2971   { auto _e = inited(); _o->inited = _e; }
2972   { auto _e = varCorr(); _o->varCorr = _e; }
2973   { auto _e = meanCorr(); _o->meanCorr = _e; }
2974   { auto _e = dstDtype(); _o->dstDtype = _e; }
2975   { auto _e = roundType(); _o->roundType = _e; }
2976   { auto _e = multiplier(); _o->multiplier = _e; }
2977 }
2978 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const QuantParamT * _o,const::flatbuffers::rehasher_function_t * _rehasher)2979 inline ::flatbuffers::Offset<QuantParam> QuantParam::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
2980   return CreateQuantParam(_fbb, _o, _rehasher);
2981 }
2982 
CreateQuantParam(::flatbuffers::FlatBufferBuilder & _fbb,const QuantParamT * _o,const::flatbuffers::rehasher_function_t * _rehasher)2983 inline ::flatbuffers::Offset<QuantParam> CreateQuantParam(::flatbuffers::FlatBufferBuilder &_fbb, const QuantParamT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
2984   (void)_rehasher;
2985   (void)_o;
2986   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const QuantParamT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
2987   auto _scale = _o->scale;
2988   auto _zeroPoint = _o->zeroPoint;
2989   auto _min = _o->min;
2990   auto _max = _o->max;
2991   auto _narrowRange = _o->narrowRange;
2992   auto _numBits = _o->numBits;
2993   auto _inited = _o->inited;
2994   auto _varCorr = _o->varCorr;
2995   auto _meanCorr = _o->meanCorr;
2996   auto _dstDtype = _o->dstDtype;
2997   auto _roundType = _o->roundType;
2998   auto _multiplier = _o->multiplier;
2999   return mindspore::schema::CreateQuantParam(
3000       _fbb,
3001       _scale,
3002       _zeroPoint,
3003       _min,
3004       _max,
3005       _narrowRange,
3006       _numBits,
3007       _inited,
3008       _varCorr,
3009       _meanCorr,
3010       _dstDtype,
3011       _roundType,
3012       _multiplier);
3013 }
3014 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3015 inline ExternalDataT *ExternalData::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3016   auto _o = std::unique_ptr<ExternalDataT>(new ExternalDataT());
3017   UnPackTo(_o.get(), _resolver);
3018   return _o.release();
3019 }
3020 
UnPackTo(ExternalDataT * _o,const::flatbuffers::resolver_function_t * _resolver)3021 inline void ExternalData::UnPackTo(ExternalDataT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3022   (void)_o;
3023   (void)_resolver;
3024   { auto _e = checkSum(); if (_e) _o->checkSum = _e->str(); }
3025   { auto _e = location(); if (_e) _o->location = _e->str(); }
3026   { auto _e = offset(); _o->offset = _e; }
3027   { auto _e = length(); _o->length = _e; }
3028 }
3029 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const ExternalDataT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3030 inline ::flatbuffers::Offset<ExternalData> ExternalData::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const ExternalDataT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3031   return CreateExternalData(_fbb, _o, _rehasher);
3032 }
3033 
CreateExternalData(::flatbuffers::FlatBufferBuilder & _fbb,const ExternalDataT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3034 inline ::flatbuffers::Offset<ExternalData> CreateExternalData(::flatbuffers::FlatBufferBuilder &_fbb, const ExternalDataT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3035   (void)_rehasher;
3036   (void)_o;
3037   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const ExternalDataT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3038   auto _checkSum = _o->checkSum.empty() ? 0 : _fbb.CreateString(_o->checkSum);
3039   auto _location = _o->location.empty() ? 0 : _fbb.CreateString(_o->location);
3040   auto _offset = _o->offset;
3041   auto _length = _o->length;
3042   return mindspore::schema::CreateExternalData(
3043       _fbb,
3044       _checkSum,
3045       _location,
3046       _offset,
3047       _length);
3048 }
3049 
TensorT(const TensorT & o)3050 inline TensorT::TensorT(const TensorT &o)
3051       : nodeType(o.nodeType),
3052         dataType(o.dataType),
3053         dims(o.dims),
3054         format(o.format),
3055         refCount(o.refCount),
3056         offset(o.offset),
3057         data(o.data),
3058         quantClusters(o.quantClusters),
3059         name(o.name),
3060         enableHuffmanCode(o.enableHuffmanCode),
3061         weightQuantCompressType(o.weightQuantCompressType) {
3062   quantParams.reserve(o.quantParams.size());
3063   for (const auto &quantParams_ : o.quantParams) { quantParams.emplace_back((quantParams_) ? new mindspore::schema::QuantParamT(*quantParams_) : nullptr); }
3064   externalData.reserve(o.externalData.size());
3065   for (const auto &externalData_ : o.externalData) { externalData.emplace_back((externalData_) ? new mindspore::schema::ExternalDataT(*externalData_) : nullptr); }
3066 }
3067 
3068 inline TensorT &TensorT::operator=(TensorT o) FLATBUFFERS_NOEXCEPT {
3069   std::swap(nodeType, o.nodeType);
3070   std::swap(dataType, o.dataType);
3071   std::swap(dims, o.dims);
3072   std::swap(format, o.format);
3073   std::swap(refCount, o.refCount);
3074   std::swap(offset, o.offset);
3075   std::swap(data, o.data);
3076   std::swap(quantParams, o.quantParams);
3077   std::swap(quantClusters, o.quantClusters);
3078   std::swap(name, o.name);
3079   std::swap(enableHuffmanCode, o.enableHuffmanCode);
3080   std::swap(weightQuantCompressType, o.weightQuantCompressType);
3081   std::swap(externalData, o.externalData);
3082   return *this;
3083 }
3084 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3085 inline TensorT *Tensor::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3086   auto _o = std::unique_ptr<TensorT>(new TensorT());
3087   UnPackTo(_o.get(), _resolver);
3088   return _o.release();
3089 }
3090 
UnPackTo(TensorT * _o,const::flatbuffers::resolver_function_t * _resolver)3091 inline void Tensor::UnPackTo(TensorT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3092   (void)_o;
3093   (void)_resolver;
3094   { auto _e = nodeType(); _o->nodeType = _e; }
3095   { auto _e = dataType(); _o->dataType = _e; }
3096   { 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); } } else { _o->dims.resize(0); } }
3097   { auto _e = format(); _o->format = _e; }
3098   { auto _e = refCount(); _o->refCount = _e; }
3099   { auto _e = offset(); _o->offset = _e; }
3100   { auto _e = data(); if (_e) { _o->data.resize(_e->size()); std::copy(_e->begin(), _e->end(), _o->data.begin()); } }
3101   { auto _e = quantParams(); if (_e) { _o->quantParams.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->quantParams[_i]) { _e->Get(_i)->UnPackTo(_o->quantParams[_i].get(), _resolver); } else { _o->quantParams[_i] = std::unique_ptr<mindspore::schema::QuantParamT>(_e->Get(_i)->UnPack(_resolver)); }; } } else { _o->quantParams.resize(0); } }
3102   { 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); } } else { _o->quantClusters.resize(0); } }
3103   { auto _e = name(); if (_e) _o->name = _e->str(); }
3104   { auto _e = enableHuffmanCode(); _o->enableHuffmanCode = _e; }
3105   { auto _e = weightQuantCompressType(); _o->weightQuantCompressType = _e; }
3106   { auto _e = externalData(); if (_e) { _o->externalData.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->externalData[_i]) { _e->Get(_i)->UnPackTo(_o->externalData[_i].get(), _resolver); } else { _o->externalData[_i] = std::unique_ptr<mindspore::schema::ExternalDataT>(_e->Get(_i)->UnPack(_resolver)); }; } } else { _o->externalData.resize(0); } }
3107 }
3108 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const TensorT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3109 inline ::flatbuffers::Offset<Tensor> Tensor::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const TensorT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3110   return CreateTensor(_fbb, _o, _rehasher);
3111 }
3112 
CreateTensor(::flatbuffers::FlatBufferBuilder & _fbb,const TensorT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3113 inline ::flatbuffers::Offset<Tensor> CreateTensor(::flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3114   (void)_rehasher;
3115   (void)_o;
3116   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const TensorT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3117   auto _nodeType = _o->nodeType;
3118   auto _dataType = _o->dataType;
3119   auto _dims = _o->dims.size() ? _fbb.CreateVector(_o->dims) : 0;
3120   auto _format = _o->format;
3121   auto _refCount = _o->refCount;
3122   auto _offset = _o->offset;
3123   auto _data = _o->data.size() ? _fbb.CreateVector(_o->data) : 0;
3124   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;
3125   auto _quantClusters = _o->quantClusters.size() ? _fbb.CreateVector(_o->quantClusters) : 0;
3126   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
3127   auto _enableHuffmanCode = _o->enableHuffmanCode;
3128   auto _weightQuantCompressType = _o->weightQuantCompressType;
3129   auto _externalData = _o->externalData.size() ? _fbb.CreateVector<::flatbuffers::Offset<mindspore::schema::ExternalData>> (_o->externalData.size(), [](size_t i, _VectorArgs *__va) { return CreateExternalData(*__va->__fbb, __va->__o->externalData[i].get(), __va->__rehasher); }, &_va ) : 0;
3130   return mindspore::schema::CreateTensor(
3131       _fbb,
3132       _nodeType,
3133       _dataType,
3134       _dims,
3135       _format,
3136       _refCount,
3137       _offset,
3138       _data,
3139       _quantParams,
3140       _quantClusters,
3141       _name,
3142       _enableHuffmanCode,
3143       _weightQuantCompressType,
3144       _externalData);
3145 }
3146 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3147 inline PrimitiveT *Primitive::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3148   auto _o = std::unique_ptr<PrimitiveT>(new PrimitiveT());
3149   UnPackTo(_o.get(), _resolver);
3150   return _o.release();
3151 }
3152 
UnPackTo(PrimitiveT * _o,const::flatbuffers::resolver_function_t * _resolver)3153 inline void Primitive::UnPackTo(PrimitiveT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3154   (void)_o;
3155   (void)_resolver;
3156   { auto _e = value_type(); _o->value.type = _e; }
3157   { auto _e = value(); if (_e) _o->value.value = mindspore::schema::PrimitiveTypeUnion::UnPack(_e, value_type(), _resolver); }
3158 }
3159 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const PrimitiveT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3160 inline ::flatbuffers::Offset<Primitive> Primitive::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3161   return CreatePrimitive(_fbb, _o, _rehasher);
3162 }
3163 
CreatePrimitive(::flatbuffers::FlatBufferBuilder & _fbb,const PrimitiveT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3164 inline ::flatbuffers::Offset<Primitive> CreatePrimitive(::flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3165   (void)_rehasher;
3166   (void)_o;
3167   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const PrimitiveT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3168   auto _value_type = _o->value.type;
3169   auto _value = _o->value.Pack(_fbb);
3170   return mindspore::schema::CreatePrimitive(
3171       _fbb,
3172       _value_type,
3173       _value);
3174 }
3175 
CNodeT(const CNodeT & o)3176 inline CNodeT::CNodeT(const CNodeT &o)
3177       : name(o.name),
3178         primitive((o.primitive) ? new mindspore::schema::PrimitiveT(*o.primitive) : nullptr),
3179         inputIndex(o.inputIndex),
3180         outputIndex(o.outputIndex),
3181         quantType(o.quantType),
3182         deviceType(o.deviceType) {
3183 }
3184 
3185 inline CNodeT &CNodeT::operator=(CNodeT o) FLATBUFFERS_NOEXCEPT {
3186   std::swap(name, o.name);
3187   std::swap(primitive, o.primitive);
3188   std::swap(inputIndex, o.inputIndex);
3189   std::swap(outputIndex, o.outputIndex);
3190   std::swap(quantType, o.quantType);
3191   std::swap(deviceType, o.deviceType);
3192   return *this;
3193 }
3194 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3195 inline CNodeT *CNode::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3196   auto _o = std::unique_ptr<CNodeT>(new CNodeT());
3197   UnPackTo(_o.get(), _resolver);
3198   return _o.release();
3199 }
3200 
UnPackTo(CNodeT * _o,const::flatbuffers::resolver_function_t * _resolver)3201 inline void CNode::UnPackTo(CNodeT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3202   (void)_o;
3203   (void)_resolver;
3204   { auto _e = name(); if (_e) _o->name = _e->str(); }
3205   { auto _e = primitive(); if (_e) { if(_o->primitive) { _e->UnPackTo(_o->primitive.get(), _resolver); } else { _o->primitive = std::unique_ptr<mindspore::schema::PrimitiveT>(_e->UnPack(_resolver)); } } else if (_o->primitive) { _o->primitive.reset(); } }
3206   { 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); } } else { _o->inputIndex.resize(0); } }
3207   { 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); } } else { _o->outputIndex.resize(0); } }
3208   { auto _e = quantType(); _o->quantType = _e; }
3209   { auto _e = deviceType(); _o->deviceType = _e; }
3210 }
3211 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const CNodeT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3212 inline ::flatbuffers::Offset<CNode> CNode::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const CNodeT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3213   return CreateCNode(_fbb, _o, _rehasher);
3214 }
3215 
CreateCNode(::flatbuffers::FlatBufferBuilder & _fbb,const CNodeT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3216 inline ::flatbuffers::Offset<CNode> CreateCNode(::flatbuffers::FlatBufferBuilder &_fbb, const CNodeT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3217   (void)_rehasher;
3218   (void)_o;
3219   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const CNodeT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3220   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
3221   auto _primitive = _o->primitive ? CreatePrimitive(_fbb, _o->primitive.get(), _rehasher) : 0;
3222   auto _inputIndex = _o->inputIndex.size() ? _fbb.CreateVector(_o->inputIndex) : 0;
3223   auto _outputIndex = _o->outputIndex.size() ? _fbb.CreateVector(_o->outputIndex) : 0;
3224   auto _quantType = _o->quantType;
3225   auto _deviceType = _o->deviceType;
3226   return mindspore::schema::CreateCNode(
3227       _fbb,
3228       _name,
3229       _primitive,
3230       _inputIndex,
3231       _outputIndex,
3232       _quantType,
3233       _deviceType);
3234 }
3235 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3236 inline SubGraphT *SubGraph::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3237   auto _o = std::unique_ptr<SubGraphT>(new SubGraphT());
3238   UnPackTo(_o.get(), _resolver);
3239   return _o.release();
3240 }
3241 
UnPackTo(SubGraphT * _o,const::flatbuffers::resolver_function_t * _resolver)3242 inline void SubGraph::UnPackTo(SubGraphT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3243   (void)_o;
3244   (void)_resolver;
3245   { auto _e = name(); if (_e) _o->name = _e->str(); }
3246   { 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); } } else { _o->inputIndices.resize(0); } }
3247   { 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); } } else { _o->outputIndices.resize(0); } }
3248   { 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); } } else { _o->nodeIndices.resize(0); } }
3249   { 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); } } else { _o->tensorIndices.resize(0); } }
3250 }
3251 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const SubGraphT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3252 inline ::flatbuffers::Offset<SubGraph> SubGraph::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3253   return CreateSubGraph(_fbb, _o, _rehasher);
3254 }
3255 
CreateSubGraph(::flatbuffers::FlatBufferBuilder & _fbb,const SubGraphT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3256 inline ::flatbuffers::Offset<SubGraph> CreateSubGraph(::flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3257   (void)_rehasher;
3258   (void)_o;
3259   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const SubGraphT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3260   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
3261   auto _inputIndices = _o->inputIndices.size() ? _fbb.CreateVector(_o->inputIndices) : 0;
3262   auto _outputIndices = _o->outputIndices.size() ? _fbb.CreateVector(_o->outputIndices) : 0;
3263   auto _nodeIndices = _o->nodeIndices.size() ? _fbb.CreateVector(_o->nodeIndices) : 0;
3264   auto _tensorIndices = _o->tensorIndices.size() ? _fbb.CreateVector(_o->tensorIndices) : 0;
3265   return mindspore::schema::CreateSubGraph(
3266       _fbb,
3267       _name,
3268       _inputIndices,
3269       _outputIndices,
3270       _nodeIndices,
3271       _tensorIndices);
3272 }
3273 
MetaGraphT(const MetaGraphT & o)3274 inline MetaGraphT::MetaGraphT(const MetaGraphT &o)
3275       : name(o.name),
3276         version(o.version),
3277         fmkType(o.fmkType),
3278         inputIndex(o.inputIndex),
3279         outputIndex(o.outputIndex),
3280         mempoolSize(o.mempoolSize),
3281         obfuscate(o.obfuscate),
3282         encrypt(o.encrypt),
3283         obfMetaData(o.obfMetaData),
3284         decryptTable(o.decryptTable) {
3285   nodes.reserve(o.nodes.size());
3286   for (const auto &nodes_ : o.nodes) { nodes.emplace_back((nodes_) ? new mindspore::schema::CNodeT(*nodes_) : nullptr); }
3287   allTensors.reserve(o.allTensors.size());
3288   for (const auto &allTensors_ : o.allTensors) { allTensors.emplace_back((allTensors_) ? new mindspore::schema::TensorT(*allTensors_) : nullptr); }
3289   subGraph.reserve(o.subGraph.size());
3290   for (const auto &subGraph_ : o.subGraph) { subGraph.emplace_back((subGraph_) ? new mindspore::schema::SubGraphT(*subGraph_) : nullptr); }
3291 }
3292 
3293 inline MetaGraphT &MetaGraphT::operator=(MetaGraphT o) FLATBUFFERS_NOEXCEPT {
3294   std::swap(name, o.name);
3295   std::swap(version, o.version);
3296   std::swap(fmkType, o.fmkType);
3297   std::swap(inputIndex, o.inputIndex);
3298   std::swap(outputIndex, o.outputIndex);
3299   std::swap(mempoolSize, o.mempoolSize);
3300   std::swap(nodes, o.nodes);
3301   std::swap(allTensors, o.allTensors);
3302   std::swap(subGraph, o.subGraph);
3303   std::swap(obfuscate, o.obfuscate);
3304   std::swap(encrypt, o.encrypt);
3305   std::swap(obfMetaData, o.obfMetaData);
3306   std::swap(decryptTable, o.decryptTable);
3307   return *this;
3308 }
3309 
UnPack(const::flatbuffers::resolver_function_t * _resolver)3310 inline MetaGraphT *MetaGraph::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
3311   auto _o = std::unique_ptr<MetaGraphT>(new MetaGraphT());
3312   UnPackTo(_o.get(), _resolver);
3313   return _o.release();
3314 }
3315 
UnPackTo(MetaGraphT * _o,const::flatbuffers::resolver_function_t * _resolver)3316 inline void MetaGraph::UnPackTo(MetaGraphT *_o, const ::flatbuffers::resolver_function_t *_resolver) const {
3317   (void)_o;
3318   (void)_resolver;
3319   { auto _e = name(); if (_e) _o->name = _e->str(); }
3320   { auto _e = version(); if (_e) _o->version = _e->str(); }
3321   { auto _e = fmkType(); _o->fmkType = _e; }
3322   { 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); } } else { _o->inputIndex.resize(0); } }
3323   { 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); } } else { _o->outputIndex.resize(0); } }
3324   { auto _e = mempoolSize(); _o->mempoolSize = _e; }
3325   { auto _e = nodes(); if (_e) { _o->nodes.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->nodes[_i]) { _e->Get(_i)->UnPackTo(_o->nodes[_i].get(), _resolver); } else { _o->nodes[_i] = std::unique_ptr<mindspore::schema::CNodeT>(_e->Get(_i)->UnPack(_resolver)); }; } } else { _o->nodes.resize(0); } }
3326   { auto _e = allTensors(); if (_e) { _o->allTensors.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->allTensors[_i]) { _e->Get(_i)->UnPackTo(_o->allTensors[_i].get(), _resolver); } else { _o->allTensors[_i] = std::unique_ptr<mindspore::schema::TensorT>(_e->Get(_i)->UnPack(_resolver)); }; } } else { _o->allTensors.resize(0); } }
3327   { auto _e = subGraph(); if (_e) { _o->subGraph.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->subGraph[_i]) { _e->Get(_i)->UnPackTo(_o->subGraph[_i].get(), _resolver); } else { _o->subGraph[_i] = std::unique_ptr<mindspore::schema::SubGraphT>(_e->Get(_i)->UnPack(_resolver)); }; } } else { _o->subGraph.resize(0); } }
3328   { auto _e = obfuscate(); _o->obfuscate = _e; }
3329   { auto _e = encrypt(); _o->encrypt = _e; }
3330   { auto _e = obfMetaData(); if (_e) { _o->obfMetaData.resize(_e->size()); std::copy(_e->begin(), _e->end(), _o->obfMetaData.begin()); } }
3331   { auto _e = decryptTable(); if (_e) { _o->decryptTable.resize(_e->size()); std::copy(_e->begin(), _e->end(), _o->decryptTable.begin()); } }
3332 }
3333 
Pack(::flatbuffers::FlatBufferBuilder & _fbb,const MetaGraphT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3334 inline ::flatbuffers::Offset<MetaGraph> MetaGraph::Pack(::flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT* _o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3335   return CreateMetaGraph(_fbb, _o, _rehasher);
3336 }
3337 
CreateMetaGraph(::flatbuffers::FlatBufferBuilder & _fbb,const MetaGraphT * _o,const::flatbuffers::rehasher_function_t * _rehasher)3338 inline ::flatbuffers::Offset<MetaGraph> CreateMetaGraph(::flatbuffers::FlatBufferBuilder &_fbb, const MetaGraphT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
3339   (void)_rehasher;
3340   (void)_o;
3341   struct _VectorArgs { ::flatbuffers::FlatBufferBuilder *__fbb; const MetaGraphT* __o; const ::flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
3342   auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
3343   auto _version = _o->version.empty() ? 0 : _fbb.CreateString(_o->version);
3344   auto _fmkType = _o->fmkType;
3345   auto _inputIndex = _o->inputIndex.size() ? _fbb.CreateVector(_o->inputIndex) : 0;
3346   auto _outputIndex = _o->outputIndex.size() ? _fbb.CreateVector(_o->outputIndex) : 0;
3347   auto _mempoolSize = _o->mempoolSize;
3348   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;
3349   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;
3350   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;
3351   auto _obfuscate = _o->obfuscate;
3352   auto _encrypt = _o->encrypt;
3353   auto _obfMetaData = _o->obfMetaData.size() ? _fbb.CreateVector(_o->obfMetaData) : 0;
3354   auto _decryptTable = _o->decryptTable.size() ? _fbb.CreateVector(_o->decryptTable) : 0;
3355   return mindspore::schema::CreateMetaGraph(
3356       _fbb,
3357       _name,
3358       _version,
3359       _fmkType,
3360       _inputIndex,
3361       _outputIndex,
3362       _mempoolSize,
3363       _nodes,
3364       _allTensors,
3365       _subGraph,
3366       _obfuscate,
3367       _encrypt,
3368       _obfMetaData,
3369       _decryptTable);
3370 }
3371 
WeightQuantCompressTypeTypeTable()3372 inline const ::flatbuffers::TypeTable *WeightQuantCompressTypeTypeTable() {
3373   static const ::flatbuffers::TypeCode type_codes[] = {
3374     { ::flatbuffers::ET_INT, 0, 0 },
3375     { ::flatbuffers::ET_INT, 0, 0 },
3376     { ::flatbuffers::ET_INT, 0, 0 },
3377     { ::flatbuffers::ET_INT, 0, 0 },
3378     { ::flatbuffers::ET_INT, 0, 0 },
3379     { ::flatbuffers::ET_INT, 0, 0 },
3380     { ::flatbuffers::ET_INT, 0, 0 }
3381   };
3382   static const ::flatbuffers::TypeFunction type_refs[] = {
3383     mindspore::schema::WeightQuantCompressTypeTypeTable
3384   };
3385   static const char * const names[] = {
3386     "NONE",
3387     "INDEXING",
3388     "SPARSE",
3389     "FSE",
3390     "BITPACKING",
3391     "FSE_INT",
3392     "FSE_INFER"
3393   };
3394   static const ::flatbuffers::TypeTable tt = {
3395     ::flatbuffers::ST_ENUM, 7, type_codes, type_refs, nullptr, nullptr, names
3396   };
3397   return &tt;
3398 }
3399 
QuantTypeTypeTable()3400 inline const ::flatbuffers::TypeTable *QuantTypeTypeTable() {
3401   static const ::flatbuffers::TypeCode type_codes[] = {
3402     { ::flatbuffers::ET_INT, 0, 0 },
3403     { ::flatbuffers::ET_INT, 0, 0 },
3404     { ::flatbuffers::ET_INT, 0, 0 },
3405     { ::flatbuffers::ET_INT, 0, 0 },
3406     { ::flatbuffers::ET_INT, 0, 0 },
3407     { ::flatbuffers::ET_INT, 0, 0 },
3408     { ::flatbuffers::ET_INT, 0, 0 }
3409   };
3410   static const ::flatbuffers::TypeFunction type_refs[] = {
3411     mindspore::schema::QuantTypeTypeTable
3412   };
3413   static const char * const names[] = {
3414     "QUANT_NONE",
3415     "AwareTraining",
3416     "WeightQuant",
3417     "PostTraining",
3418     "QUANT_WEIGHT",
3419     "QUANT_ALL",
3420     "QUANT_DYNAMIC"
3421   };
3422   static const ::flatbuffers::TypeTable tt = {
3423     ::flatbuffers::ST_ENUM, 7, type_codes, type_refs, nullptr, nullptr, names
3424   };
3425   return &tt;
3426 }
3427 
QuantParamTypeTable()3428 inline const ::flatbuffers::TypeTable *QuantParamTypeTable() {
3429   static const ::flatbuffers::TypeCode type_codes[] = {
3430     { ::flatbuffers::ET_DOUBLE, 0, -1 },
3431     { ::flatbuffers::ET_INT, 0, -1 },
3432     { ::flatbuffers::ET_DOUBLE, 0, -1 },
3433     { ::flatbuffers::ET_DOUBLE, 0, -1 },
3434     { ::flatbuffers::ET_BOOL, 0, -1 },
3435     { ::flatbuffers::ET_INT, 0, -1 },
3436     { ::flatbuffers::ET_BOOL, 0, -1 },
3437     { ::flatbuffers::ET_FLOAT, 0, -1 },
3438     { ::flatbuffers::ET_FLOAT, 0, -1 },
3439     { ::flatbuffers::ET_INT, 0, -1 },
3440     { ::flatbuffers::ET_INT, 0, -1 },
3441     { ::flatbuffers::ET_INT, 0, -1 }
3442   };
3443   static const char * const names[] = {
3444     "scale",
3445     "zeroPoint",
3446     "min",
3447     "max",
3448     "narrowRange",
3449     "numBits",
3450     "inited",
3451     "varCorr",
3452     "meanCorr",
3453     "dstDtype",
3454     "roundType",
3455     "multiplier"
3456   };
3457   static const ::flatbuffers::TypeTable tt = {
3458     ::flatbuffers::ST_TABLE, 12, type_codes, nullptr, nullptr, nullptr, names
3459   };
3460   return &tt;
3461 }
3462 
ExternalDataTypeTable()3463 inline const ::flatbuffers::TypeTable *ExternalDataTypeTable() {
3464   static const ::flatbuffers::TypeCode type_codes[] = {
3465     { ::flatbuffers::ET_STRING, 0, -1 },
3466     { ::flatbuffers::ET_STRING, 0, -1 },
3467     { ::flatbuffers::ET_LONG, 0, -1 },
3468     { ::flatbuffers::ET_LONG, 0, -1 }
3469   };
3470   static const char * const names[] = {
3471     "checkSum",
3472     "location",
3473     "offset",
3474     "length"
3475   };
3476   static const ::flatbuffers::TypeTable tt = {
3477     ::flatbuffers::ST_TABLE, 4, type_codes, nullptr, nullptr, nullptr, names
3478   };
3479   return &tt;
3480 }
3481 
TensorTypeTable()3482 inline const ::flatbuffers::TypeTable *TensorTypeTable() {
3483   static const ::flatbuffers::TypeCode type_codes[] = {
3484     { ::flatbuffers::ET_INT, 0, -1 },
3485     { ::flatbuffers::ET_INT, 0, -1 },
3486     { ::flatbuffers::ET_INT, 1, -1 },
3487     { ::flatbuffers::ET_INT, 0, 0 },
3488     { ::flatbuffers::ET_INT, 0, -1 },
3489     { ::flatbuffers::ET_INT, 0, -1 },
3490     { ::flatbuffers::ET_UCHAR, 1, -1 },
3491     { ::flatbuffers::ET_SEQUENCE, 1, 1 },
3492     { ::flatbuffers::ET_FLOAT, 1, -1 },
3493     { ::flatbuffers::ET_STRING, 0, -1 },
3494     { ::flatbuffers::ET_BOOL, 0, -1 },
3495     { ::flatbuffers::ET_INT, 0, 2 },
3496     { ::flatbuffers::ET_SEQUENCE, 1, 3 }
3497   };
3498   static const ::flatbuffers::TypeFunction type_refs[] = {
3499     mindspore::schema::FormatTypeTable,
3500     mindspore::schema::QuantParamTypeTable,
3501     mindspore::schema::WeightQuantCompressTypeTypeTable,
3502     mindspore::schema::ExternalDataTypeTable
3503   };
3504   static const char * const names[] = {
3505     "nodeType",
3506     "dataType",
3507     "dims",
3508     "format",
3509     "refCount",
3510     "offset",
3511     "data",
3512     "quantParams",
3513     "quantClusters",
3514     "name",
3515     "enableHuffmanCode",
3516     "weightQuantCompressType",
3517     "externalData"
3518   };
3519   static const ::flatbuffers::TypeTable tt = {
3520     ::flatbuffers::ST_TABLE, 13, type_codes, type_refs, nullptr, nullptr, names
3521   };
3522   return &tt;
3523 }
3524 
PrimitiveTypeTable()3525 inline const ::flatbuffers::TypeTable *PrimitiveTypeTable() {
3526   static const ::flatbuffers::TypeCode type_codes[] = {
3527     { ::flatbuffers::ET_UTYPE, 0, 0 },
3528     { ::flatbuffers::ET_SEQUENCE, 0, 0 }
3529   };
3530   static const ::flatbuffers::TypeFunction type_refs[] = {
3531     mindspore::schema::PrimitiveTypeTypeTable
3532   };
3533   static const char * const names[] = {
3534     "value_type",
3535     "value"
3536   };
3537   static const ::flatbuffers::TypeTable tt = {
3538     ::flatbuffers::ST_TABLE, 2, type_codes, type_refs, nullptr, nullptr, names
3539   };
3540   return &tt;
3541 }
3542 
CNodeTypeTable()3543 inline const ::flatbuffers::TypeTable *CNodeTypeTable() {
3544   static const ::flatbuffers::TypeCode type_codes[] = {
3545     { ::flatbuffers::ET_STRING, 0, -1 },
3546     { ::flatbuffers::ET_INT, 0, -1 },
3547     { ::flatbuffers::ET_SEQUENCE, 0, 0 },
3548     { ::flatbuffers::ET_UINT, 1, -1 },
3549     { ::flatbuffers::ET_UINT, 1, -1 },
3550     { ::flatbuffers::ET_INT, 0, 1 },
3551     { ::flatbuffers::ET_INT, 0, -1 }
3552   };
3553   static const ::flatbuffers::TypeFunction type_refs[] = {
3554     mindspore::schema::PrimitiveTypeTable,
3555     mindspore::schema::QuantTypeTypeTable
3556   };
3557   static const char * const names[] = {
3558     "name",
3559     "nodeType",
3560     "primitive",
3561     "inputIndex",
3562     "outputIndex",
3563     "quantType",
3564     "deviceType"
3565   };
3566   static const ::flatbuffers::TypeTable tt = {
3567     ::flatbuffers::ST_TABLE, 7, type_codes, type_refs, nullptr, nullptr, names
3568   };
3569   return &tt;
3570 }
3571 
SubGraphTypeTable()3572 inline const ::flatbuffers::TypeTable *SubGraphTypeTable() {
3573   static const ::flatbuffers::TypeCode type_codes[] = {
3574     { ::flatbuffers::ET_STRING, 0, -1 },
3575     { ::flatbuffers::ET_UINT, 1, -1 },
3576     { ::flatbuffers::ET_UINT, 1, -1 },
3577     { ::flatbuffers::ET_UINT, 1, -1 },
3578     { ::flatbuffers::ET_UINT, 1, -1 }
3579   };
3580   static const char * const names[] = {
3581     "name",
3582     "inputIndices",
3583     "outputIndices",
3584     "nodeIndices",
3585     "tensorIndices"
3586   };
3587   static const ::flatbuffers::TypeTable tt = {
3588     ::flatbuffers::ST_TABLE, 5, type_codes, nullptr, nullptr, nullptr, names
3589   };
3590   return &tt;
3591 }
3592 
MetaGraphTypeTable()3593 inline const ::flatbuffers::TypeTable *MetaGraphTypeTable() {
3594   static const ::flatbuffers::TypeCode type_codes[] = {
3595     { ::flatbuffers::ET_STRING, 0, -1 },
3596     { ::flatbuffers::ET_STRING, 0, -1 },
3597     { ::flatbuffers::ET_INT, 0, -1 },
3598     { ::flatbuffers::ET_UINT, 1, -1 },
3599     { ::flatbuffers::ET_UINT, 1, -1 },
3600     { ::flatbuffers::ET_UINT, 0, -1 },
3601     { ::flatbuffers::ET_SEQUENCE, 1, 0 },
3602     { ::flatbuffers::ET_SEQUENCE, 1, 1 },
3603     { ::flatbuffers::ET_SEQUENCE, 1, 2 },
3604     { ::flatbuffers::ET_BOOL, 0, -1 },
3605     { ::flatbuffers::ET_BOOL, 0, -1 },
3606     { ::flatbuffers::ET_UCHAR, 1, -1 },
3607     { ::flatbuffers::ET_UCHAR, 1, -1 }
3608   };
3609   static const ::flatbuffers::TypeFunction type_refs[] = {
3610     mindspore::schema::CNodeTypeTable,
3611     mindspore::schema::TensorTypeTable,
3612     mindspore::schema::SubGraphTypeTable
3613   };
3614   static const char * const names[] = {
3615     "name",
3616     "version",
3617     "fmkType",
3618     "inputIndex",
3619     "outputIndex",
3620     "mempoolSize",
3621     "nodes",
3622     "allTensors",
3623     "subGraph",
3624     "obfuscate",
3625     "encrypt",
3626     "obfMetaData",
3627     "decryptTable"
3628   };
3629   static const ::flatbuffers::TypeTable tt = {
3630     ::flatbuffers::ST_TABLE, 13, type_codes, type_refs, nullptr, nullptr, names
3631   };
3632   return &tt;
3633 }
3634 
GetMetaGraph(const void * buf)3635 inline const mindspore::schema::MetaGraph *GetMetaGraph(const void *buf) {
3636   return ::flatbuffers::GetRoot<mindspore::schema::MetaGraph>(buf);
3637 }
3638 
GetSizePrefixedMetaGraph(const void * buf)3639 inline const mindspore::schema::MetaGraph *GetSizePrefixedMetaGraph(const void *buf) {
3640   return ::flatbuffers::GetSizePrefixedRoot<mindspore::schema::MetaGraph>(buf);
3641 }
3642 
GetMutableMetaGraph(void * buf)3643 inline MetaGraph *GetMutableMetaGraph(void *buf) {
3644   return ::flatbuffers::GetMutableRoot<MetaGraph>(buf);
3645 }
3646 
GetMutableSizePrefixedMetaGraph(void * buf)3647 inline mindspore::schema::MetaGraph *GetMutableSizePrefixedMetaGraph(void *buf) {
3648   return ::flatbuffers::GetMutableSizePrefixedRoot<mindspore::schema::MetaGraph>(buf);
3649 }
3650 
MetaGraphIdentifier()3651 inline const char *MetaGraphIdentifier() {
3652   return "MSL2";
3653 }
3654 
MetaGraphBufferHasIdentifier(const void * buf)3655 inline bool MetaGraphBufferHasIdentifier(const void *buf) {
3656   return ::flatbuffers::BufferHasIdentifier(
3657       buf, MetaGraphIdentifier());
3658 }
3659 
SizePrefixedMetaGraphBufferHasIdentifier(const void * buf)3660 inline bool SizePrefixedMetaGraphBufferHasIdentifier(const void *buf) {
3661   return ::flatbuffers::BufferHasIdentifier(
3662       buf, MetaGraphIdentifier(), true);
3663 }
3664 
VerifyMetaGraphBuffer(::flatbuffers::Verifier & verifier)3665 inline bool VerifyMetaGraphBuffer(
3666     ::flatbuffers::Verifier &verifier) {
3667   return verifier.VerifyBuffer<mindspore::schema::MetaGraph>(MetaGraphIdentifier());
3668 }
3669 
VerifySizePrefixedMetaGraphBuffer(::flatbuffers::Verifier & verifier)3670 inline bool VerifySizePrefixedMetaGraphBuffer(
3671     ::flatbuffers::Verifier &verifier) {
3672   return verifier.VerifySizePrefixedBuffer<mindspore::schema::MetaGraph>(MetaGraphIdentifier());
3673 }
3674 
MetaGraphExtension()3675 inline const char *MetaGraphExtension() {
3676   return "ms";
3677 }
3678 
FinishMetaGraphBuffer(::flatbuffers::FlatBufferBuilder & fbb,::flatbuffers::Offset<mindspore::schema::MetaGraph> root)3679 inline void FinishMetaGraphBuffer(
3680     ::flatbuffers::FlatBufferBuilder &fbb,
3681     ::flatbuffers::Offset<mindspore::schema::MetaGraph> root) {
3682   fbb.Finish(root, MetaGraphIdentifier());
3683 }
3684 
FinishSizePrefixedMetaGraphBuffer(::flatbuffers::FlatBufferBuilder & fbb,::flatbuffers::Offset<mindspore::schema::MetaGraph> root)3685 inline void FinishSizePrefixedMetaGraphBuffer(
3686     ::flatbuffers::FlatBufferBuilder &fbb,
3687     ::flatbuffers::Offset<mindspore::schema::MetaGraph> root) {
3688   fbb.FinishSizePrefixed(root, MetaGraphIdentifier());
3689 }
3690 
3691 inline std::unique_ptr<mindspore::schema::MetaGraphT> UnPackMetaGraph(
3692     const void *buf,
3693     const ::flatbuffers::resolver_function_t *res = nullptr) {
3694   return std::unique_ptr<mindspore::schema::MetaGraphT>(GetMetaGraph(buf)->UnPack(res));
3695 }
3696 
3697 inline std::unique_ptr<mindspore::schema::MetaGraphT> UnPackSizePrefixedMetaGraph(
3698     const void *buf,
3699     const ::flatbuffers::resolver_function_t *res = nullptr) {
3700   return std::unique_ptr<mindspore::schema::MetaGraphT>(GetSizePrefixedMetaGraph(buf)->UnPack(res));
3701 }
3702 
3703 }  // namespace schema
3704 }  // namespace mindspore
3705 
3706 #endif  // FLATBUFFERS_GENERATED_MODEL_MINDSPORE_SCHEMA_H_
3707