-
Notifications
You must be signed in to change notification settings - Fork 4
/
onnx.pb.h
8663 lines (8047 loc) · 315 KB
/
onnx.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: onnx.proto
#ifndef PROTOBUF_onnx_2eproto__INCLUDED
#define PROTOBUF_onnx_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace protobuf_onnx_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[21];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsAttributeProtoImpl();
void InitDefaultsAttributeProto();
void InitDefaultsValueInfoProtoImpl();
void InitDefaultsValueInfoProto();
void InitDefaultsTrainingInfoProtoImpl();
void InitDefaultsTrainingInfoProto();
void InitDefaultsModelProtoImpl();
void InitDefaultsModelProto();
void InitDefaultsStringStringEntryProtoImpl();
void InitDefaultsStringStringEntryProto();
void InitDefaultsTensorAnnotationImpl();
void InitDefaultsTensorAnnotation();
void InitDefaultsTensorProto_SegmentImpl();
void InitDefaultsTensorProto_Segment();
void InitDefaultsTensorProtoImpl();
void InitDefaultsTensorProto();
void InitDefaultsSparseTensorProtoImpl();
void InitDefaultsSparseTensorProto();
void InitDefaultsTensorShapeProto_DimensionImpl();
void InitDefaultsTensorShapeProto_Dimension();
void InitDefaultsTensorShapeProtoImpl();
void InitDefaultsTensorShapeProto();
void InitDefaultsTypeProto_TensorImpl();
void InitDefaultsTypeProto_Tensor();
void InitDefaultsTypeProto_SparseTensorImpl();
void InitDefaultsTypeProto_SparseTensor();
void InitDefaultsTypeProtoImpl();
void InitDefaultsTypeProto();
void InitDefaultsOperatorSetIdProtoImpl();
void InitDefaultsOperatorSetIdProto();
void InitDefaultsFunctionProtoImpl();
void InitDefaultsFunctionProto();
inline void InitDefaults() {
InitDefaultsAttributeProto();
InitDefaultsValueInfoProto();
InitDefaultsTrainingInfoProto();
InitDefaultsModelProto();
InitDefaultsStringStringEntryProto();
InitDefaultsTensorAnnotation();
InitDefaultsTensorProto_Segment();
InitDefaultsTensorProto();
InitDefaultsSparseTensorProto();
InitDefaultsTensorShapeProto_Dimension();
InitDefaultsTensorShapeProto();
InitDefaultsTypeProto_Tensor();
InitDefaultsTypeProto_SparseTensor();
InitDefaultsTypeProto();
InitDefaultsOperatorSetIdProto();
InitDefaultsFunctionProto();
}
} // namespace protobuf_onnx_2eproto
namespace onnx {
class AttributeProto;
class AttributeProtoDefaultTypeInternal;
extern AttributeProtoDefaultTypeInternal _AttributeProto_default_instance_;
class FunctionProto;
class FunctionProtoDefaultTypeInternal;
extern FunctionProtoDefaultTypeInternal _FunctionProto_default_instance_;
class GraphProto;
class GraphProtoDefaultTypeInternal;
extern GraphProtoDefaultTypeInternal _GraphProto_default_instance_;
class ModelProto;
class ModelProtoDefaultTypeInternal;
extern ModelProtoDefaultTypeInternal _ModelProto_default_instance_;
class NodeProto;
class NodeProtoDefaultTypeInternal;
extern NodeProtoDefaultTypeInternal _NodeProto_default_instance_;
class OperatorSetIdProto;
class OperatorSetIdProtoDefaultTypeInternal;
extern OperatorSetIdProtoDefaultTypeInternal _OperatorSetIdProto_default_instance_;
class SparseTensorProto;
class SparseTensorProtoDefaultTypeInternal;
extern SparseTensorProtoDefaultTypeInternal _SparseTensorProto_default_instance_;
class StringStringEntryProto;
class StringStringEntryProtoDefaultTypeInternal;
extern StringStringEntryProtoDefaultTypeInternal _StringStringEntryProto_default_instance_;
class TensorAnnotation;
class TensorAnnotationDefaultTypeInternal;
extern TensorAnnotationDefaultTypeInternal _TensorAnnotation_default_instance_;
class TensorProto;
class TensorProtoDefaultTypeInternal;
extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
class TensorProto_Segment;
class TensorProto_SegmentDefaultTypeInternal;
extern TensorProto_SegmentDefaultTypeInternal _TensorProto_Segment_default_instance_;
class TensorShapeProto;
class TensorShapeProtoDefaultTypeInternal;
extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
class TensorShapeProto_Dimension;
class TensorShapeProto_DimensionDefaultTypeInternal;
extern TensorShapeProto_DimensionDefaultTypeInternal _TensorShapeProto_Dimension_default_instance_;
class TrainingInfoProto;
class TrainingInfoProtoDefaultTypeInternal;
extern TrainingInfoProtoDefaultTypeInternal _TrainingInfoProto_default_instance_;
class TypeProto;
class TypeProtoDefaultTypeInternal;
extern TypeProtoDefaultTypeInternal _TypeProto_default_instance_;
class TypeProto_Map;
class TypeProto_MapDefaultTypeInternal;
extern TypeProto_MapDefaultTypeInternal _TypeProto_Map_default_instance_;
class TypeProto_Optional;
class TypeProto_OptionalDefaultTypeInternal;
extern TypeProto_OptionalDefaultTypeInternal _TypeProto_Optional_default_instance_;
class TypeProto_Sequence;
class TypeProto_SequenceDefaultTypeInternal;
extern TypeProto_SequenceDefaultTypeInternal _TypeProto_Sequence_default_instance_;
class TypeProto_SparseTensor;
class TypeProto_SparseTensorDefaultTypeInternal;
extern TypeProto_SparseTensorDefaultTypeInternal _TypeProto_SparseTensor_default_instance_;
class TypeProto_Tensor;
class TypeProto_TensorDefaultTypeInternal;
extern TypeProto_TensorDefaultTypeInternal _TypeProto_Tensor_default_instance_;
class ValueInfoProto;
class ValueInfoProtoDefaultTypeInternal;
extern ValueInfoProtoDefaultTypeInternal _ValueInfoProto_default_instance_;
} // namespace onnx
namespace onnx {
enum AttributeProto_AttributeType {
AttributeProto_AttributeType_UNDEFINED = 0,
AttributeProto_AttributeType_FLOAT = 1,
AttributeProto_AttributeType_INT = 2,
AttributeProto_AttributeType_STRING = 3,
AttributeProto_AttributeType_TENSOR = 4,
AttributeProto_AttributeType_GRAPH = 5,
AttributeProto_AttributeType_SPARSE_TENSOR = 11,
AttributeProto_AttributeType_TYPE_PROTO = 13,
AttributeProto_AttributeType_FLOATS = 6,
AttributeProto_AttributeType_INTS = 7,
AttributeProto_AttributeType_STRINGS = 8,
AttributeProto_AttributeType_TENSORS = 9,
AttributeProto_AttributeType_GRAPHS = 10,
AttributeProto_AttributeType_SPARSE_TENSORS = 12,
AttributeProto_AttributeType_TYPE_PROTOS = 14
};
bool AttributeProto_AttributeType_IsValid(int value);
const AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MIN = AttributeProto_AttributeType_UNDEFINED;
const AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MAX = AttributeProto_AttributeType_TYPE_PROTOS;
const int AttributeProto_AttributeType_AttributeType_ARRAYSIZE = AttributeProto_AttributeType_AttributeType_MAX + 1;
const ::google::protobuf::EnumDescriptor* AttributeProto_AttributeType_descriptor();
inline const ::std::string& AttributeProto_AttributeType_Name(AttributeProto_AttributeType value) {
return ::google::protobuf::internal::NameOfEnum(
AttributeProto_AttributeType_descriptor(), value);
}
inline bool AttributeProto_AttributeType_Parse(
const ::std::string& name, AttributeProto_AttributeType* value) {
return ::google::protobuf::internal::ParseNamedEnum<AttributeProto_AttributeType>(
AttributeProto_AttributeType_descriptor(), name, value);
}
enum TensorProto_DataType {
TensorProto_DataType_UNDEFINED = 0,
TensorProto_DataType_FLOAT = 1,
TensorProto_DataType_UINT8 = 2,
TensorProto_DataType_INT8 = 3,
TensorProto_DataType_UINT16 = 4,
TensorProto_DataType_INT16 = 5,
TensorProto_DataType_INT32 = 6,
TensorProto_DataType_INT64 = 7,
TensorProto_DataType_STRING = 8,
TensorProto_DataType_BOOL = 9,
TensorProto_DataType_FLOAT16 = 10,
TensorProto_DataType_DOUBLE = 11,
TensorProto_DataType_UINT32 = 12,
TensorProto_DataType_UINT64 = 13,
TensorProto_DataType_COMPLEX64 = 14,
TensorProto_DataType_COMPLEX128 = 15,
TensorProto_DataType_BFLOAT16 = 16
};
bool TensorProto_DataType_IsValid(int value);
const TensorProto_DataType TensorProto_DataType_DataType_MIN = TensorProto_DataType_UNDEFINED;
const TensorProto_DataType TensorProto_DataType_DataType_MAX = TensorProto_DataType_BFLOAT16;
const int TensorProto_DataType_DataType_ARRAYSIZE = TensorProto_DataType_DataType_MAX + 1;
const ::google::protobuf::EnumDescriptor* TensorProto_DataType_descriptor();
inline const ::std::string& TensorProto_DataType_Name(TensorProto_DataType value) {
return ::google::protobuf::internal::NameOfEnum(
TensorProto_DataType_descriptor(), value);
}
inline bool TensorProto_DataType_Parse(
const ::std::string& name, TensorProto_DataType* value) {
return ::google::protobuf::internal::ParseNamedEnum<TensorProto_DataType>(
TensorProto_DataType_descriptor(), name, value);
}
enum TensorProto_DataLocation {
TensorProto_DataLocation_DEFAULT = 0,
TensorProto_DataLocation_EXTERNAL = 1
};
bool TensorProto_DataLocation_IsValid(int value);
const TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MIN = TensorProto_DataLocation_DEFAULT;
const TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MAX = TensorProto_DataLocation_EXTERNAL;
const int TensorProto_DataLocation_DataLocation_ARRAYSIZE = TensorProto_DataLocation_DataLocation_MAX + 1;
const ::google::protobuf::EnumDescriptor* TensorProto_DataLocation_descriptor();
inline const ::std::string& TensorProto_DataLocation_Name(TensorProto_DataLocation value) {
return ::google::protobuf::internal::NameOfEnum(
TensorProto_DataLocation_descriptor(), value);
}
inline bool TensorProto_DataLocation_Parse(
const ::std::string& name, TensorProto_DataLocation* value) {
return ::google::protobuf::internal::ParseNamedEnum<TensorProto_DataLocation>(
TensorProto_DataLocation_descriptor(), name, value);
}
enum Version {
_START_VERSION = 0,
IR_VERSION_2017_10_10 = 1,
IR_VERSION_2017_10_30 = 2,
IR_VERSION_2017_11_3 = 3,
IR_VERSION_2019_1_22 = 4,
IR_VERSION_2019_3_18 = 5,
IR_VERSION_2019_9_19 = 6,
IR_VERSION_2020_5_8 = 7,
IR_VERSION = 8
};
bool Version_IsValid(int value);
const Version Version_MIN = _START_VERSION;
const Version Version_MAX = IR_VERSION;
const int Version_ARRAYSIZE = Version_MAX + 1;
const ::google::protobuf::EnumDescriptor* Version_descriptor();
inline const ::std::string& Version_Name(Version value) {
return ::google::protobuf::internal::NameOfEnum(
Version_descriptor(), value);
}
inline bool Version_Parse(
const ::std::string& name, Version* value) {
return ::google::protobuf::internal::ParseNamedEnum<Version>(
Version_descriptor(), name, value);
}
enum OperatorStatus {
EXPERIMENTAL = 0,
STABLE = 1
};
bool OperatorStatus_IsValid(int value);
const OperatorStatus OperatorStatus_MIN = EXPERIMENTAL;
const OperatorStatus OperatorStatus_MAX = STABLE;
const int OperatorStatus_ARRAYSIZE = OperatorStatus_MAX + 1;
const ::google::protobuf::EnumDescriptor* OperatorStatus_descriptor();
inline const ::std::string& OperatorStatus_Name(OperatorStatus value) {
return ::google::protobuf::internal::NameOfEnum(
OperatorStatus_descriptor(), value);
}
inline bool OperatorStatus_Parse(
const ::std::string& name, OperatorStatus* value) {
return ::google::protobuf::internal::ParseNamedEnum<OperatorStatus>(
OperatorStatus_descriptor(), name, value);
}
// ===================================================================
class AttributeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:onnx.AttributeProto) */ {
public:
AttributeProto();
virtual ~AttributeProto();
AttributeProto(const AttributeProto& from);
inline AttributeProto& operator=(const AttributeProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
AttributeProto(AttributeProto&& from) noexcept
: AttributeProto() {
*this = ::std::move(from);
}
inline AttributeProto& operator=(AttributeProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const AttributeProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const AttributeProto* internal_default_instance() {
return reinterpret_cast<const AttributeProto*>(
&_AttributeProto_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
void Swap(AttributeProto* other);
friend void swap(AttributeProto& a, AttributeProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline AttributeProto* New() const PROTOBUF_FINAL { return New(NULL); }
AttributeProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(AttributeProto* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
typedef AttributeProto_AttributeType AttributeType;
static const AttributeType UNDEFINED =
AttributeProto_AttributeType_UNDEFINED;
static const AttributeType FLOAT =
AttributeProto_AttributeType_FLOAT;
static const AttributeType INT =
AttributeProto_AttributeType_INT;
static const AttributeType STRING =
AttributeProto_AttributeType_STRING;
static const AttributeType TENSOR =
AttributeProto_AttributeType_TENSOR;
static const AttributeType GRAPH =
AttributeProto_AttributeType_GRAPH;
static const AttributeType SPARSE_TENSOR =
AttributeProto_AttributeType_SPARSE_TENSOR;
static const AttributeType TYPE_PROTO =
AttributeProto_AttributeType_TYPE_PROTO;
static const AttributeType FLOATS =
AttributeProto_AttributeType_FLOATS;
static const AttributeType INTS =
AttributeProto_AttributeType_INTS;
static const AttributeType STRINGS =
AttributeProto_AttributeType_STRINGS;
static const AttributeType TENSORS =
AttributeProto_AttributeType_TENSORS;
static const AttributeType GRAPHS =
AttributeProto_AttributeType_GRAPHS;
static const AttributeType SPARSE_TENSORS =
AttributeProto_AttributeType_SPARSE_TENSORS;
static const AttributeType TYPE_PROTOS =
AttributeProto_AttributeType_TYPE_PROTOS;
static inline bool AttributeType_IsValid(int value) {
return AttributeProto_AttributeType_IsValid(value);
}
static const AttributeType AttributeType_MIN =
AttributeProto_AttributeType_AttributeType_MIN;
static const AttributeType AttributeType_MAX =
AttributeProto_AttributeType_AttributeType_MAX;
static const int AttributeType_ARRAYSIZE =
AttributeProto_AttributeType_AttributeType_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
AttributeType_descriptor() {
return AttributeProto_AttributeType_descriptor();
}
static inline const ::std::string& AttributeType_Name(AttributeType value) {
return AttributeProto_AttributeType_Name(value);
}
static inline bool AttributeType_Parse(const ::std::string& name,
AttributeType* value) {
return AttributeProto_AttributeType_Parse(name, value);
}
// accessors -------------------------------------------------------
// repeated float floats = 7;
int floats_size() const;
void clear_floats();
static const int kFloatsFieldNumber = 7;
float floats(int index) const;
void set_floats(int index, float value);
void add_floats(float value);
const ::google::protobuf::RepeatedField< float >&
floats() const;
::google::protobuf::RepeatedField< float >*
mutable_floats();
// repeated int64 ints = 8;
int ints_size() const;
void clear_ints();
static const int kIntsFieldNumber = 8;
::google::protobuf::int64 ints(int index) const;
void set_ints(int index, ::google::protobuf::int64 value);
void add_ints(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
ints() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_ints();
// repeated bytes strings = 9;
int strings_size() const;
void clear_strings();
static const int kStringsFieldNumber = 9;
const ::std::string& strings(int index) const;
::std::string* mutable_strings(int index);
void set_strings(int index, const ::std::string& value);
#if LANG_CXX11
void set_strings(int index, ::std::string&& value);
#endif
void set_strings(int index, const char* value);
void set_strings(int index, const void* value, size_t size);
::std::string* add_strings();
void add_strings(const ::std::string& value);
#if LANG_CXX11
void add_strings(::std::string&& value);
#endif
void add_strings(const char* value);
void add_strings(const void* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& strings() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_strings();
// repeated .onnx.TensorProto tensors = 10;
int tensors_size() const;
void clear_tensors();
static const int kTensorsFieldNumber = 10;
const ::onnx::TensorProto& tensors(int index) const;
::onnx::TensorProto* mutable_tensors(int index);
::onnx::TensorProto* add_tensors();
::google::protobuf::RepeatedPtrField< ::onnx::TensorProto >*
mutable_tensors();
const ::google::protobuf::RepeatedPtrField< ::onnx::TensorProto >&
tensors() const;
// repeated .onnx.GraphProto graphs = 11;
int graphs_size() const;
void clear_graphs();
static const int kGraphsFieldNumber = 11;
const ::onnx::GraphProto& graphs(int index) const;
::onnx::GraphProto* mutable_graphs(int index);
::onnx::GraphProto* add_graphs();
::google::protobuf::RepeatedPtrField< ::onnx::GraphProto >*
mutable_graphs();
const ::google::protobuf::RepeatedPtrField< ::onnx::GraphProto >&
graphs() const;
// repeated .onnx.TypeProto type_protos = 15;
int type_protos_size() const;
void clear_type_protos();
static const int kTypeProtosFieldNumber = 15;
const ::onnx::TypeProto& type_protos(int index) const;
::onnx::TypeProto* mutable_type_protos(int index);
::onnx::TypeProto* add_type_protos();
::google::protobuf::RepeatedPtrField< ::onnx::TypeProto >*
mutable_type_protos();
const ::google::protobuf::RepeatedPtrField< ::onnx::TypeProto >&
type_protos() const;
// repeated .onnx.SparseTensorProto sparse_tensors = 23;
int sparse_tensors_size() const;
void clear_sparse_tensors();
static const int kSparseTensorsFieldNumber = 23;
const ::onnx::SparseTensorProto& sparse_tensors(int index) const;
::onnx::SparseTensorProto* mutable_sparse_tensors(int index);
::onnx::SparseTensorProto* add_sparse_tensors();
::google::protobuf::RepeatedPtrField< ::onnx::SparseTensorProto >*
mutable_sparse_tensors();
const ::google::protobuf::RepeatedPtrField< ::onnx::SparseTensorProto >&
sparse_tensors() const;
// optional string name = 1;
bool has_name() const;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
// optional bytes s = 4;
bool has_s() const;
void clear_s();
static const int kSFieldNumber = 4;
const ::std::string& s() const;
void set_s(const ::std::string& value);
#if LANG_CXX11
void set_s(::std::string&& value);
#endif
void set_s(const char* value);
void set_s(const void* value, size_t size);
::std::string* mutable_s();
::std::string* release_s();
void set_allocated_s(::std::string* s);
// optional string doc_string = 13;
bool has_doc_string() const;
void clear_doc_string();
static const int kDocStringFieldNumber = 13;
const ::std::string& doc_string() const;
void set_doc_string(const ::std::string& value);
#if LANG_CXX11
void set_doc_string(::std::string&& value);
#endif
void set_doc_string(const char* value);
void set_doc_string(const char* value, size_t size);
::std::string* mutable_doc_string();
::std::string* release_doc_string();
void set_allocated_doc_string(::std::string* doc_string);
// optional string ref_attr_name = 21;
bool has_ref_attr_name() const;
void clear_ref_attr_name();
static const int kRefAttrNameFieldNumber = 21;
const ::std::string& ref_attr_name() const;
void set_ref_attr_name(const ::std::string& value);
#if LANG_CXX11
void set_ref_attr_name(::std::string&& value);
#endif
void set_ref_attr_name(const char* value);
void set_ref_attr_name(const char* value, size_t size);
::std::string* mutable_ref_attr_name();
::std::string* release_ref_attr_name();
void set_allocated_ref_attr_name(::std::string* ref_attr_name);
// optional .onnx.TensorProto t = 5;
bool has_t() const;
void clear_t();
static const int kTFieldNumber = 5;
const ::onnx::TensorProto& t() const;
::onnx::TensorProto* release_t();
::onnx::TensorProto* mutable_t();
void set_allocated_t(::onnx::TensorProto* t);
// optional .onnx.GraphProto g = 6;
bool has_g() const;
void clear_g();
static const int kGFieldNumber = 6;
const ::onnx::GraphProto& g() const;
::onnx::GraphProto* release_g();
::onnx::GraphProto* mutable_g();
void set_allocated_g(::onnx::GraphProto* g);
// optional .onnx.TypeProto tp = 14;
bool has_tp() const;
void clear_tp();
static const int kTpFieldNumber = 14;
const ::onnx::TypeProto& tp() const;
::onnx::TypeProto* release_tp();
::onnx::TypeProto* mutable_tp();
void set_allocated_tp(::onnx::TypeProto* tp);
// optional .onnx.SparseTensorProto sparse_tensor = 22;
bool has_sparse_tensor() const;
void clear_sparse_tensor();
static const int kSparseTensorFieldNumber = 22;
const ::onnx::SparseTensorProto& sparse_tensor() const;
::onnx::SparseTensorProto* release_sparse_tensor();
::onnx::SparseTensorProto* mutable_sparse_tensor();
void set_allocated_sparse_tensor(::onnx::SparseTensorProto* sparse_tensor);
// optional int64 i = 3;
bool has_i() const;
void clear_i();
static const int kIFieldNumber = 3;
::google::protobuf::int64 i() const;
void set_i(::google::protobuf::int64 value);
// optional float f = 2;
bool has_f() const;
void clear_f();
static const int kFFieldNumber = 2;
float f() const;
void set_f(float value);
// optional .onnx.AttributeProto.AttributeType type = 20;
bool has_type() const;
void clear_type();
static const int kTypeFieldNumber = 20;
::onnx::AttributeProto_AttributeType type() const;
void set_type(::onnx::AttributeProto_AttributeType value);
// @@protoc_insertion_point(class_scope:onnx.AttributeProto)
private:
void set_has_name();
void clear_has_name();
void set_has_ref_attr_name();
void clear_has_ref_attr_name();
void set_has_doc_string();
void clear_has_doc_string();
void set_has_type();
void clear_has_type();
void set_has_f();
void clear_has_f();
void set_has_i();
void clear_has_i();
void set_has_s();
void clear_has_s();
void set_has_t();
void clear_has_t();
void set_has_g();
void clear_has_g();
void set_has_sparse_tensor();
void clear_has_sparse_tensor();
void set_has_tp();
void clear_has_tp();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::RepeatedField< float > floats_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > ints_;
::google::protobuf::RepeatedPtrField< ::std::string> strings_;
::google::protobuf::RepeatedPtrField< ::onnx::TensorProto > tensors_;
::google::protobuf::RepeatedPtrField< ::onnx::GraphProto > graphs_;
::google::protobuf::RepeatedPtrField< ::onnx::TypeProto > type_protos_;
::google::protobuf::RepeatedPtrField< ::onnx::SparseTensorProto > sparse_tensors_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr s_;
::google::protobuf::internal::ArenaStringPtr doc_string_;
::google::protobuf::internal::ArenaStringPtr ref_attr_name_;
::onnx::TensorProto* t_;
::onnx::GraphProto* g_;
::onnx::TypeProto* tp_;
::onnx::SparseTensorProto* sparse_tensor_;
::google::protobuf::int64 i_;
float f_;
int type_;
friend struct ::protobuf_onnx_2eproto::TableStruct;
friend void ::protobuf_onnx_2eproto::InitDefaultsAttributeProtoImpl();
};
// -------------------------------------------------------------------
class ValueInfoProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:onnx.ValueInfoProto) */ {
public:
ValueInfoProto();
virtual ~ValueInfoProto();
ValueInfoProto(const ValueInfoProto& from);
inline ValueInfoProto& operator=(const ValueInfoProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ValueInfoProto(ValueInfoProto&& from) noexcept
: ValueInfoProto() {
*this = ::std::move(from);
}
inline ValueInfoProto& operator=(ValueInfoProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ValueInfoProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ValueInfoProto* internal_default_instance() {
return reinterpret_cast<const ValueInfoProto*>(
&_ValueInfoProto_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1;
void Swap(ValueInfoProto* other);
friend void swap(ValueInfoProto& a, ValueInfoProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ValueInfoProto* New() const PROTOBUF_FINAL { return New(NULL); }
ValueInfoProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ValueInfoProto* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string name = 1;
bool has_name() const;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
// optional string doc_string = 3;
bool has_doc_string() const;
void clear_doc_string();
static const int kDocStringFieldNumber = 3;
const ::std::string& doc_string() const;
void set_doc_string(const ::std::string& value);
#if LANG_CXX11
void set_doc_string(::std::string&& value);
#endif
void set_doc_string(const char* value);
void set_doc_string(const char* value, size_t size);
::std::string* mutable_doc_string();
::std::string* release_doc_string();
void set_allocated_doc_string(::std::string* doc_string);
// optional .onnx.TypeProto type = 2;
bool has_type() const;
void clear_type();
static const int kTypeFieldNumber = 2;
const ::onnx::TypeProto& type() const;
::onnx::TypeProto* release_type();
::onnx::TypeProto* mutable_type();
void set_allocated_type(::onnx::TypeProto* type);
// @@protoc_insertion_point(class_scope:onnx.ValueInfoProto)
private:
void set_has_name();
void clear_has_name();
void set_has_type();
void clear_has_type();
void set_has_doc_string();
void clear_has_doc_string();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr doc_string_;
::onnx::TypeProto* type_;
friend struct ::protobuf_onnx_2eproto::TableStruct;
friend void ::protobuf_onnx_2eproto::InitDefaultsValueInfoProtoImpl();
};
// -------------------------------------------------------------------
class NodeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:onnx.NodeProto) */ {
public:
NodeProto();
virtual ~NodeProto();
NodeProto(const NodeProto& from);
inline NodeProto& operator=(const NodeProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
NodeProto(NodeProto&& from) noexcept
: NodeProto() {
*this = ::std::move(from);
}
inline NodeProto& operator=(NodeProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const NodeProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const NodeProto* internal_default_instance() {
return reinterpret_cast<const NodeProto*>(
&_NodeProto_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2;
void Swap(NodeProto* other);
friend void swap(NodeProto& a, NodeProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline NodeProto* New() const PROTOBUF_FINAL { return New(NULL); }
NodeProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(NodeProto* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string input = 1;
int input_size() const;
void clear_input();
static const int kInputFieldNumber = 1;
const ::std::string& input(int index) const;
::std::string* mutable_input(int index);
void set_input(int index, const ::std::string& value);
#if LANG_CXX11
void set_input(int index, ::std::string&& value);
#endif
void set_input(int index, const char* value);
void set_input(int index, const char* value, size_t size);
::std::string* add_input();
void add_input(const ::std::string& value);
#if LANG_CXX11
void add_input(::std::string&& value);
#endif
void add_input(const char* value);
void add_input(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();
// repeated string output = 2;
int output_size() const;
void clear_output();
static const int kOutputFieldNumber = 2;
const ::std::string& output(int index) const;
::std::string* mutable_output(int index);
void set_output(int index, const ::std::string& value);
#if LANG_CXX11
void set_output(int index, ::std::string&& value);
#endif
void set_output(int index, const char* value);
void set_output(int index, const char* value, size_t size);
::std::string* add_output();
void add_output(const ::std::string& value);
#if LANG_CXX11
void add_output(::std::string&& value);
#endif
void add_output(const char* value);
void add_output(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& output() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_output();
// repeated .onnx.AttributeProto attribute = 5;
int attribute_size() const;
void clear_attribute();
static const int kAttributeFieldNumber = 5;
const ::onnx::AttributeProto& attribute(int index) const;
::onnx::AttributeProto* mutable_attribute(int index);
::onnx::AttributeProto* add_attribute();
::google::protobuf::RepeatedPtrField< ::onnx::AttributeProto >*
mutable_attribute();
const ::google::protobuf::RepeatedPtrField< ::onnx::AttributeProto >&
attribute() const;
// optional string name = 3;
bool has_name() const;
void clear_name();
static const int kNameFieldNumber = 3;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
// optional string op_type = 4;
bool has_op_type() const;
void clear_op_type();
static const int kOpTypeFieldNumber = 4;
const ::std::string& op_type() const;
void set_op_type(const ::std::string& value);
#if LANG_CXX11
void set_op_type(::std::string&& value);
#endif
void set_op_type(const char* value);
void set_op_type(const char* value, size_t size);
::std::string* mutable_op_type();
::std::string* release_op_type();
void set_allocated_op_type(::std::string* op_type);
// optional string doc_string = 6;
bool has_doc_string() const;
void clear_doc_string();
static const int kDocStringFieldNumber = 6;
const ::std::string& doc_string() const;
void set_doc_string(const ::std::string& value);
#if LANG_CXX11
void set_doc_string(::std::string&& value);
#endif
void set_doc_string(const char* value);
void set_doc_string(const char* value, size_t size);
::std::string* mutable_doc_string();
::std::string* release_doc_string();
void set_allocated_doc_string(::std::string* doc_string);
// optional string domain = 7;
bool has_domain() const;
void clear_domain();
static const int kDomainFieldNumber = 7;
const ::std::string& domain() const;
void set_domain(const ::std::string& value);