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