Repository navigation
Expand file tree
/
Copy pathonnx_proto3.pb.h
More file actions
8891 lines (8067 loc) · 325 KB
/
Copy pathonnx_proto3.pb.h
File metadata and controls
8891 lines (8067 loc) · 325 KB
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.proto3
#ifndef GOOGLE_PROTOBUF_INCLUDED_onnx_2eproto3
#define GOOGLE_PROTOBUF_INCLUDED_onnx_2eproto3
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3013000
#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 3013000 < 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/port_undef.inc>
#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/inlined_string_field.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_onnx_2eproto3
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_onnx_2eproto3 {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[18]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
namespace onnx {
class AttributeProto;
class AttributeProtoDefaultTypeInternal;
extern AttributeProtoDefaultTypeInternal _AttributeProto_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_Sequence;
class TypeProto_SequenceDefaultTypeInternal;
extern TypeProto_SequenceDefaultTypeInternal _TypeProto_Sequence_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
PROTOBUF_NAMESPACE_OPEN
template<> ::onnx::AttributeProto* Arena::CreateMaybeMessage<::onnx::AttributeProto>(Arena*);
template<> ::onnx::GraphProto* Arena::CreateMaybeMessage<::onnx::GraphProto>(Arena*);
template<> ::onnx::ModelProto* Arena::CreateMaybeMessage<::onnx::ModelProto>(Arena*);
template<> ::onnx::NodeProto* Arena::CreateMaybeMessage<::onnx::NodeProto>(Arena*);
template<> ::onnx::OperatorSetIdProto* Arena::CreateMaybeMessage<::onnx::OperatorSetIdProto>(Arena*);
template<> ::onnx::SparseTensorProto* Arena::CreateMaybeMessage<::onnx::SparseTensorProto>(Arena*);
template<> ::onnx::StringStringEntryProto* Arena::CreateMaybeMessage<::onnx::StringStringEntryProto>(Arena*);
template<> ::onnx::TensorAnnotation* Arena::CreateMaybeMessage<::onnx::TensorAnnotation>(Arena*);
template<> ::onnx::TensorProto* Arena::CreateMaybeMessage<::onnx::TensorProto>(Arena*);
template<> ::onnx::TensorProto_Segment* Arena::CreateMaybeMessage<::onnx::TensorProto_Segment>(Arena*);
template<> ::onnx::TensorShapeProto* Arena::CreateMaybeMessage<::onnx::TensorShapeProto>(Arena*);
template<> ::onnx::TensorShapeProto_Dimension* Arena::CreateMaybeMessage<::onnx::TensorShapeProto_Dimension>(Arena*);
template<> ::onnx::TrainingInfoProto* Arena::CreateMaybeMessage<::onnx::TrainingInfoProto>(Arena*);
template<> ::onnx::TypeProto* Arena::CreateMaybeMessage<::onnx::TypeProto>(Arena*);
template<> ::onnx::TypeProto_Map* Arena::CreateMaybeMessage<::onnx::TypeProto_Map>(Arena*);
template<> ::onnx::TypeProto_Sequence* Arena::CreateMaybeMessage<::onnx::TypeProto_Sequence>(Arena*);
template<> ::onnx::TypeProto_Tensor* Arena::CreateMaybeMessage<::onnx::TypeProto_Tensor>(Arena*);
template<> ::onnx::ValueInfoProto* Arena::CreateMaybeMessage<::onnx::ValueInfoProto>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace onnx {
enum AttributeProto_AttributeType : int {
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_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_AttributeProto_AttributeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
AttributeProto_AttributeType_AttributeProto_AttributeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool AttributeProto_AttributeType_IsValid(int value);
constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MIN = AttributeProto_AttributeType_UNDEFINED;
constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MAX = AttributeProto_AttributeType_SPARSE_TENSORS;
constexpr int AttributeProto_AttributeType_AttributeType_ARRAYSIZE = AttributeProto_AttributeType_AttributeType_MAX + 1;
const std::string& AttributeProto_AttributeType_Name(AttributeProto_AttributeType value);
template<typename T>
inline const std::string& AttributeProto_AttributeType_Name(T enum_t_value) {
static_assert(::std::is_same<T, AttributeProto_AttributeType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function AttributeProto_AttributeType_Name.");
return AttributeProto_AttributeType_Name(static_cast<AttributeProto_AttributeType>(enum_t_value));
}
bool AttributeProto_AttributeType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttributeProto_AttributeType* value);
enum TensorProto_DataType : int {
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,
TensorProto_DataType_TensorProto_DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
TensorProto_DataType_TensorProto_DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool TensorProto_DataType_IsValid(int value);
constexpr TensorProto_DataType TensorProto_DataType_DataType_MIN = TensorProto_DataType_UNDEFINED;
constexpr TensorProto_DataType TensorProto_DataType_DataType_MAX = TensorProto_DataType_BFLOAT16;
constexpr int TensorProto_DataType_DataType_ARRAYSIZE = TensorProto_DataType_DataType_MAX + 1;
const std::string& TensorProto_DataType_Name(TensorProto_DataType value);
template<typename T>
inline const std::string& TensorProto_DataType_Name(T enum_t_value) {
static_assert(::std::is_same<T, TensorProto_DataType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function TensorProto_DataType_Name.");
return TensorProto_DataType_Name(static_cast<TensorProto_DataType>(enum_t_value));
}
bool TensorProto_DataType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataType* value);
enum TensorProto_DataLocation : int {
TensorProto_DataLocation_DEFAULT = 0,
TensorProto_DataLocation_EXTERNAL = 1,
TensorProto_DataLocation_TensorProto_DataLocation_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
TensorProto_DataLocation_TensorProto_DataLocation_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool TensorProto_DataLocation_IsValid(int value);
constexpr TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MIN = TensorProto_DataLocation_DEFAULT;
constexpr TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MAX = TensorProto_DataLocation_EXTERNAL;
constexpr int TensorProto_DataLocation_DataLocation_ARRAYSIZE = TensorProto_DataLocation_DataLocation_MAX + 1;
const std::string& TensorProto_DataLocation_Name(TensorProto_DataLocation value);
template<typename T>
inline const std::string& TensorProto_DataLocation_Name(T enum_t_value) {
static_assert(::std::is_same<T, TensorProto_DataLocation>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function TensorProto_DataLocation_Name.");
return TensorProto_DataLocation_Name(static_cast<TensorProto_DataLocation>(enum_t_value));
}
bool TensorProto_DataLocation_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataLocation* value);
enum Version : int {
_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 = 7,
Version_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
Version_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool Version_IsValid(int value);
constexpr Version Version_MIN = _START_VERSION;
constexpr Version Version_MAX = IR_VERSION;
constexpr int Version_ARRAYSIZE = Version_MAX + 1;
const std::string& Version_Name(Version value);
template<typename T>
inline const std::string& Version_Name(T enum_t_value) {
static_assert(::std::is_same<T, Version>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Version_Name.");
return Version_Name(static_cast<Version>(enum_t_value));
}
bool Version_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Version* value);
// ===================================================================
class AttributeProto PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:onnx.AttributeProto) */ {
public:
inline AttributeProto() : AttributeProto(nullptr) {}
virtual ~AttributeProto();
AttributeProto(const AttributeProto& from);
AttributeProto(AttributeProto&& from) noexcept
: AttributeProto() {
*this = ::std::move(from);
}
inline AttributeProto& operator=(const AttributeProto& from) {
CopyFrom(from);
return *this;
}
inline AttributeProto& operator=(AttributeProto&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const AttributeProto& default_instance();
static inline const AttributeProto* internal_default_instance() {
return reinterpret_cast<const AttributeProto*>(
&_AttributeProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(AttributeProto& a, AttributeProto& b) {
a.Swap(&b);
}
inline void Swap(AttributeProto* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AttributeProto* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline AttributeProto* New() const final {
return CreateMaybeMessage<AttributeProto>(nullptr);
}
AttributeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<AttributeProto>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const AttributeProto& from);
void MergeFrom(const AttributeProto& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AttributeProto* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "onnx.AttributeProto";
}
protected:
explicit AttributeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef AttributeProto_AttributeType AttributeType;
static constexpr AttributeType UNDEFINED =
AttributeProto_AttributeType_UNDEFINED;
static constexpr AttributeType FLOAT =
AttributeProto_AttributeType_FLOAT;
static constexpr AttributeType INT =
AttributeProto_AttributeType_INT;
static constexpr AttributeType STRING =
AttributeProto_AttributeType_STRING;
static constexpr AttributeType TENSOR =
AttributeProto_AttributeType_TENSOR;
static constexpr AttributeType GRAPH =
AttributeProto_AttributeType_GRAPH;
static constexpr AttributeType SPARSE_TENSOR =
AttributeProto_AttributeType_SPARSE_TENSOR;
static constexpr AttributeType FLOATS =
AttributeProto_AttributeType_FLOATS;
static constexpr AttributeType INTS =
AttributeProto_AttributeType_INTS;
static constexpr AttributeType STRINGS =
AttributeProto_AttributeType_STRINGS;
static constexpr AttributeType TENSORS =
AttributeProto_AttributeType_TENSORS;
static constexpr AttributeType GRAPHS =
AttributeProto_AttributeType_GRAPHS;
static constexpr AttributeType SPARSE_TENSORS =
AttributeProto_AttributeType_SPARSE_TENSORS;
static inline bool AttributeType_IsValid(int value) {
return AttributeProto_AttributeType_IsValid(value);
}
static constexpr AttributeType AttributeType_MIN =
AttributeProto_AttributeType_AttributeType_MIN;
static constexpr AttributeType AttributeType_MAX =
AttributeProto_AttributeType_AttributeType_MAX;
static constexpr int AttributeType_ARRAYSIZE =
AttributeProto_AttributeType_AttributeType_ARRAYSIZE;
template<typename T>
static inline const std::string& AttributeType_Name(T enum_t_value) {
static_assert(::std::is_same<T, AttributeType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function AttributeType_Name.");
return AttributeProto_AttributeType_Name(enum_t_value);
}
static inline bool AttributeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
AttributeType* value) {
return AttributeProto_AttributeType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kFloatsFieldNumber = 7,
kIntsFieldNumber = 8,
kStringsFieldNumber = 9,
kTensorsFieldNumber = 10,
kGraphsFieldNumber = 11,
kSparseTensorsFieldNumber = 23,
kNameFieldNumber = 1,
kSFieldNumber = 4,
kDocStringFieldNumber = 13,
kRefAttrNameFieldNumber = 21,
kTFieldNumber = 5,
kGFieldNumber = 6,
kSparseTensorFieldNumber = 22,
kIFieldNumber = 3,
kFFieldNumber = 2,
kTypeFieldNumber = 20,
};
// repeated float floats = 7;
int floats_size() const;
private:
int _internal_floats_size() const;
public:
void clear_floats();
private:
float _internal_floats(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
_internal_floats() const;
void _internal_add_floats(float value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
_internal_mutable_floats();
public:
float floats(int index) const;
void set_floats(int index, float value);
void add_floats(float value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
floats() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
mutable_floats();
// repeated int64 ints = 8;
int ints_size() const;
private:
int _internal_ints_size() const;
public:
void clear_ints();
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_ints(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
_internal_ints() const;
void _internal_add_ints(::PROTOBUF_NAMESPACE_ID::int64 value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
_internal_mutable_ints();
public:
::PROTOBUF_NAMESPACE_ID::int64 ints(int index) const;
void set_ints(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
void add_ints(::PROTOBUF_NAMESPACE_ID::int64 value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
ints() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
mutable_ints();
// repeated bytes strings = 9;
int strings_size() const;
private:
int _internal_strings_size() const;
public:
void clear_strings();
const std::string& strings(int index) const;
std::string* mutable_strings(int index);
void set_strings(int index, const std::string& value);
void set_strings(int index, std::string&& value);
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);
void add_strings(std::string&& value);
void add_strings(const char* value);
void add_strings(const void* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& strings() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_strings();
private:
const std::string& _internal_strings(int index) const;
std::string* _internal_add_strings();
public:
// repeated .onnx.TensorProto tensors = 10;
int tensors_size() const;
private:
int _internal_tensors_size() const;
public:
void clear_tensors();
::onnx::TensorProto* mutable_tensors(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::TensorProto >*
mutable_tensors();
private:
const ::onnx::TensorProto& _internal_tensors(int index) const;
::onnx::TensorProto* _internal_add_tensors();
public:
const ::onnx::TensorProto& tensors(int index) const;
::onnx::TensorProto* add_tensors();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::TensorProto >&
tensors() const;
// repeated .onnx.GraphProto graphs = 11;
int graphs_size() const;
private:
int _internal_graphs_size() const;
public:
void clear_graphs();
::onnx::GraphProto* mutable_graphs(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::GraphProto >*
mutable_graphs();
private:
const ::onnx::GraphProto& _internal_graphs(int index) const;
::onnx::GraphProto* _internal_add_graphs();
public:
const ::onnx::GraphProto& graphs(int index) const;
::onnx::GraphProto* add_graphs();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::GraphProto >&
graphs() const;
// repeated .onnx.SparseTensorProto sparse_tensors = 23;
int sparse_tensors_size() const;
private:
int _internal_sparse_tensors_size() const;
public:
void clear_sparse_tensors();
::onnx::SparseTensorProto* mutable_sparse_tensors(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::SparseTensorProto >*
mutable_sparse_tensors();
private:
const ::onnx::SparseTensorProto& _internal_sparse_tensors(int index) const;
::onnx::SparseTensorProto* _internal_add_sparse_tensors();
public:
const ::onnx::SparseTensorProto& sparse_tensors(int index) const;
::onnx::SparseTensorProto* add_sparse_tensors();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::SparseTensorProto >&
sparse_tensors() const;
// string name = 1;
void clear_name();
const std::string& name() const;
void set_name(const std::string& value);
void set_name(std::string&& value);
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);
private:
const std::string& _internal_name() const;
void _internal_set_name(const std::string& value);
std::string* _internal_mutable_name();
public:
// bytes s = 4;
void clear_s();
const std::string& s() const;
void set_s(const std::string& value);
void set_s(std::string&& value);
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);
private:
const std::string& _internal_s() const;
void _internal_set_s(const std::string& value);
std::string* _internal_mutable_s();
public:
// string doc_string = 13;
void clear_doc_string();
const std::string& doc_string() const;
void set_doc_string(const std::string& value);
void set_doc_string(std::string&& value);
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);
private:
const std::string& _internal_doc_string() const;
void _internal_set_doc_string(const std::string& value);
std::string* _internal_mutable_doc_string();
public:
// string ref_attr_name = 21;
void clear_ref_attr_name();
const std::string& ref_attr_name() const;
void set_ref_attr_name(const std::string& value);
void set_ref_attr_name(std::string&& value);
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);
private:
const std::string& _internal_ref_attr_name() const;
void _internal_set_ref_attr_name(const std::string& value);
std::string* _internal_mutable_ref_attr_name();
public:
// .onnx.TensorProto t = 5;
bool has_t() const;
private:
bool _internal_has_t() const;
public:
void clear_t();
const ::onnx::TensorProto& t() const;
::onnx::TensorProto* release_t();
::onnx::TensorProto* mutable_t();
void set_allocated_t(::onnx::TensorProto* t);
private:
const ::onnx::TensorProto& _internal_t() const;
::onnx::TensorProto* _internal_mutable_t();
public:
void unsafe_arena_set_allocated_t(
::onnx::TensorProto* t);
::onnx::TensorProto* unsafe_arena_release_t();
// .onnx.GraphProto g = 6;
bool has_g() const;
private:
bool _internal_has_g() const;
public:
void clear_g();
const ::onnx::GraphProto& g() const;
::onnx::GraphProto* release_g();
::onnx::GraphProto* mutable_g();
void set_allocated_g(::onnx::GraphProto* g);
private:
const ::onnx::GraphProto& _internal_g() const;
::onnx::GraphProto* _internal_mutable_g();
public:
void unsafe_arena_set_allocated_g(
::onnx::GraphProto* g);
::onnx::GraphProto* unsafe_arena_release_g();
// .onnx.SparseTensorProto sparse_tensor = 22;
bool has_sparse_tensor() const;
private:
bool _internal_has_sparse_tensor() const;
public:
void clear_sparse_tensor();
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);
private:
const ::onnx::SparseTensorProto& _internal_sparse_tensor() const;
::onnx::SparseTensorProto* _internal_mutable_sparse_tensor();
public:
void unsafe_arena_set_allocated_sparse_tensor(
::onnx::SparseTensorProto* sparse_tensor);
::onnx::SparseTensorProto* unsafe_arena_release_sparse_tensor();
// int64 i = 3;
void clear_i();
::PROTOBUF_NAMESPACE_ID::int64 i() const;
void set_i(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_i() const;
void _internal_set_i(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// float f = 2;
void clear_f();
float f() const;
void set_f(float value);
private:
float _internal_f() const;
void _internal_set_f(float value);
public:
// .onnx.AttributeProto.AttributeType type = 20;
void clear_type();
::onnx::AttributeProto_AttributeType type() const;
void set_type(::onnx::AttributeProto_AttributeType value);
private:
::onnx::AttributeProto_AttributeType _internal_type() const;
void _internal_set_type(::onnx::AttributeProto_AttributeType value);
public:
// @@protoc_insertion_point(class_scope:onnx.AttributeProto)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< float > floats_;
mutable std::atomic<int> _floats_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ints_;
mutable std::atomic<int> _ints_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> strings_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::TensorProto > tensors_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::GraphProto > graphs_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx::SparseTensorProto > sparse_tensors_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_attr_name_;
::onnx::TensorProto* t_;
::onnx::GraphProto* g_;
::onnx::SparseTensorProto* sparse_tensor_;
::PROTOBUF_NAMESPACE_ID::int64 i_;
float f_;
int type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_onnx_2eproto3;
};
// -------------------------------------------------------------------
class ValueInfoProto PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:onnx.ValueInfoProto) */ {
public:
inline ValueInfoProto() : ValueInfoProto(nullptr) {}
virtual ~ValueInfoProto();
ValueInfoProto(const ValueInfoProto& from);
ValueInfoProto(ValueInfoProto&& from) noexcept
: ValueInfoProto() {
*this = ::std::move(from);
}
inline ValueInfoProto& operator=(const ValueInfoProto& from) {
CopyFrom(from);
return *this;
}
inline ValueInfoProto& operator=(ValueInfoProto&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ValueInfoProto& default_instance();
static inline const ValueInfoProto* internal_default_instance() {
return reinterpret_cast<const ValueInfoProto*>(
&_ValueInfoProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(ValueInfoProto& a, ValueInfoProto& b) {
a.Swap(&b);
}
inline void Swap(ValueInfoProto* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ValueInfoProto* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline ValueInfoProto* New() const final {
return CreateMaybeMessage<ValueInfoProto>(nullptr);
}
ValueInfoProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<ValueInfoProto>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const ValueInfoProto& from);
void MergeFrom(const ValueInfoProto& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(ValueInfoProto* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "onnx.ValueInfoProto";
}
protected:
explicit ValueInfoProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNameFieldNumber = 1,
kDocStringFieldNumber = 3,
kTypeFieldNumber = 2,
};
// string name = 1;
void clear_name();
const std::string& name() const;
void set_name(const std::string& value);
void set_name(std::string&& value);
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);
private:
const std::string& _internal_name() const;
void _internal_set_name(const std::string& value);
std::string* _internal_mutable_name();
public:
// string doc_string = 3;
void clear_doc_string();
const std::string& doc_string() const;
void set_doc_string(const std::string& value);
void set_doc_string(std::string&& value);
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);
private:
const std::string& _internal_doc_string() const;
void _internal_set_doc_string(const std::string& value);
std::string* _internal_mutable_doc_string();
public:
// .onnx.TypeProto type = 2;
bool has_type() const;
private:
bool _internal_has_type() const;
public:
void clear_type();
const ::onnx::TypeProto& type() const;
::onnx::TypeProto* release_type();
::onnx::TypeProto* mutable_type();
void set_allocated_type(::onnx::TypeProto* type);
private:
const ::onnx::TypeProto& _internal_type() const;
::onnx::TypeProto* _internal_mutable_type();
public:
void unsafe_arena_set_allocated_type(
::onnx::TypeProto* type);
::onnx::TypeProto* unsafe_arena_release_type();
// @@protoc_insertion_point(class_scope:onnx.ValueInfoProto)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
::onnx::TypeProto* type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_onnx_2eproto3;
};
// -------------------------------------------------------------------
class NodeProto PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:onnx.NodeProto) */ {
public:
inline NodeProto() : NodeProto(nullptr) {}
virtual ~NodeProto();
NodeProto(const NodeProto& from);
NodeProto(NodeProto&& from) noexcept
: NodeProto() {
*this = ::std::move(from);
}
inline NodeProto& operator=(const NodeProto& from) {
CopyFrom(from);
return *this;
}
inline NodeProto& operator=(NodeProto&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const NodeProto& default_instance();
static inline const NodeProto* internal_default_instance() {
return reinterpret_cast<const NodeProto*>(
&_NodeProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(NodeProto& a, NodeProto& b) {
a.Swap(&b);
}
inline void Swap(NodeProto* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(NodeProto* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline NodeProto* New() const final {
return CreateMaybeMessage<NodeProto>(nullptr);
}
NodeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<NodeProto>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const NodeProto& from);
void MergeFrom(const NodeProto& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(NodeProto* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "onnx.NodeProto";
}
protected:
explicit NodeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kInputFieldNumber = 1,
kOutputFieldNumber = 2,
kAttributeFieldNumber = 5,
kNameFieldNumber = 3,
kOpTypeFieldNumber = 4,
kDocStringFieldNumber = 6,
kDomainFieldNumber = 7,
};
// repeated string input = 1;
int input_size() const;
private:
int _internal_input_size() const;
public:
void clear_input();
const std::string& input(int index) const;
std::string* mutable_input(int index);
void set_input(int index, const std::string& value);
void set_input(int index, std::string&& value);
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);
void add_input(std::string&& value);
void add_input(const char* value);
void add_input(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
private: