1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: onnx/onnx_onnx_torch-ml.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3013000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata_lite.h>
30#include <google/protobuf/generated_message_reflection.h>
31#include <google/protobuf/message.h>
32#include <google/protobuf/repeated_field.h> // IWYU pragma: export
33#include <google/protobuf/extension_set.h> // IWYU pragma: export
34#include <google/protobuf/generated_enum_reflection.h>
35#include <google/protobuf/unknown_field_set.h>
36// @@protoc_insertion_point(includes)
37#include <google/protobuf/port_def.inc>
38#define PROTOBUF_INTERNAL_EXPORT_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto ONNX_API
39PROTOBUF_NAMESPACE_OPEN
40namespace internal {
41class AnyMetadata;
42} // namespace internal
43PROTOBUF_NAMESPACE_CLOSE
44
45// Internal implementation detail -- do not use these members.
46struct ONNX_API TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto {
47 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[22]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
55 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
56};
57extern ONNX_API const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
58namespace onnx_torch { const ::std::string& GetEmptyStringAlreadyInited();
59class AttributeProto;
60class AttributeProtoDefaultTypeInternal;
61ONNX_API extern AttributeProtoDefaultTypeInternal _AttributeProto_default_instance_;
62class FunctionProto;
63class FunctionProtoDefaultTypeInternal;
64ONNX_API extern FunctionProtoDefaultTypeInternal _FunctionProto_default_instance_;
65class GraphProto;
66class GraphProtoDefaultTypeInternal;
67ONNX_API extern GraphProtoDefaultTypeInternal _GraphProto_default_instance_;
68class ModelProto;
69class ModelProtoDefaultTypeInternal;
70ONNX_API extern ModelProtoDefaultTypeInternal _ModelProto_default_instance_;
71class NodeProto;
72class NodeProtoDefaultTypeInternal;
73ONNX_API extern NodeProtoDefaultTypeInternal _NodeProto_default_instance_;
74class OperatorSetIdProto;
75class OperatorSetIdProtoDefaultTypeInternal;
76ONNX_API extern OperatorSetIdProtoDefaultTypeInternal _OperatorSetIdProto_default_instance_;
77class SparseTensorProto;
78class SparseTensorProtoDefaultTypeInternal;
79ONNX_API extern SparseTensorProtoDefaultTypeInternal _SparseTensorProto_default_instance_;
80class StringStringEntryProto;
81class StringStringEntryProtoDefaultTypeInternal;
82ONNX_API extern StringStringEntryProtoDefaultTypeInternal _StringStringEntryProto_default_instance_;
83class TensorAnnotation;
84class TensorAnnotationDefaultTypeInternal;
85ONNX_API extern TensorAnnotationDefaultTypeInternal _TensorAnnotation_default_instance_;
86class TensorProto;
87class TensorProtoDefaultTypeInternal;
88ONNX_API extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
89class TensorProto_Segment;
90class TensorProto_SegmentDefaultTypeInternal;
91ONNX_API extern TensorProto_SegmentDefaultTypeInternal _TensorProto_Segment_default_instance_;
92class TensorShapeProto;
93class TensorShapeProtoDefaultTypeInternal;
94ONNX_API extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
95class TensorShapeProto_Dimension;
96class TensorShapeProto_DimensionDefaultTypeInternal;
97ONNX_API extern TensorShapeProto_DimensionDefaultTypeInternal _TensorShapeProto_Dimension_default_instance_;
98class TrainingInfoProto;
99class TrainingInfoProtoDefaultTypeInternal;
100ONNX_API extern TrainingInfoProtoDefaultTypeInternal _TrainingInfoProto_default_instance_;
101class TypeProto;
102class TypeProtoDefaultTypeInternal;
103ONNX_API extern TypeProtoDefaultTypeInternal _TypeProto_default_instance_;
104class TypeProto_Map;
105class TypeProto_MapDefaultTypeInternal;
106ONNX_API extern TypeProto_MapDefaultTypeInternal _TypeProto_Map_default_instance_;
107class TypeProto_Opaque;
108class TypeProto_OpaqueDefaultTypeInternal;
109ONNX_API extern TypeProto_OpaqueDefaultTypeInternal _TypeProto_Opaque_default_instance_;
110class TypeProto_Optional;
111class TypeProto_OptionalDefaultTypeInternal;
112ONNX_API extern TypeProto_OptionalDefaultTypeInternal _TypeProto_Optional_default_instance_;
113class TypeProto_Sequence;
114class TypeProto_SequenceDefaultTypeInternal;
115ONNX_API extern TypeProto_SequenceDefaultTypeInternal _TypeProto_Sequence_default_instance_;
116class TypeProto_SparseTensor;
117class TypeProto_SparseTensorDefaultTypeInternal;
118ONNX_API extern TypeProto_SparseTensorDefaultTypeInternal _TypeProto_SparseTensor_default_instance_;
119class TypeProto_Tensor;
120class TypeProto_TensorDefaultTypeInternal;
121ONNX_API extern TypeProto_TensorDefaultTypeInternal _TypeProto_Tensor_default_instance_;
122class ValueInfoProto;
123class ValueInfoProtoDefaultTypeInternal;
124ONNX_API extern ValueInfoProtoDefaultTypeInternal _ValueInfoProto_default_instance_;
125} // namespace onnx_torch
126PROTOBUF_NAMESPACE_OPEN
127template<> ONNX_API ::onnx_torch::AttributeProto* Arena::CreateMaybeMessage<::onnx_torch::AttributeProto>(Arena*);
128template<> ONNX_API ::onnx_torch::FunctionProto* Arena::CreateMaybeMessage<::onnx_torch::FunctionProto>(Arena*);
129template<> ONNX_API ::onnx_torch::GraphProto* Arena::CreateMaybeMessage<::onnx_torch::GraphProto>(Arena*);
130template<> ONNX_API ::onnx_torch::ModelProto* Arena::CreateMaybeMessage<::onnx_torch::ModelProto>(Arena*);
131template<> ONNX_API ::onnx_torch::NodeProto* Arena::CreateMaybeMessage<::onnx_torch::NodeProto>(Arena*);
132template<> ONNX_API ::onnx_torch::OperatorSetIdProto* Arena::CreateMaybeMessage<::onnx_torch::OperatorSetIdProto>(Arena*);
133template<> ONNX_API ::onnx_torch::SparseTensorProto* Arena::CreateMaybeMessage<::onnx_torch::SparseTensorProto>(Arena*);
134template<> ONNX_API ::onnx_torch::StringStringEntryProto* Arena::CreateMaybeMessage<::onnx_torch::StringStringEntryProto>(Arena*);
135template<> ONNX_API ::onnx_torch::TensorAnnotation* Arena::CreateMaybeMessage<::onnx_torch::TensorAnnotation>(Arena*);
136template<> ONNX_API ::onnx_torch::TensorProto* Arena::CreateMaybeMessage<::onnx_torch::TensorProto>(Arena*);
137template<> ONNX_API ::onnx_torch::TensorProto_Segment* Arena::CreateMaybeMessage<::onnx_torch::TensorProto_Segment>(Arena*);
138template<> ONNX_API ::onnx_torch::TensorShapeProto* Arena::CreateMaybeMessage<::onnx_torch::TensorShapeProto>(Arena*);
139template<> ONNX_API ::onnx_torch::TensorShapeProto_Dimension* Arena::CreateMaybeMessage<::onnx_torch::TensorShapeProto_Dimension>(Arena*);
140template<> ONNX_API ::onnx_torch::TrainingInfoProto* Arena::CreateMaybeMessage<::onnx_torch::TrainingInfoProto>(Arena*);
141template<> ONNX_API ::onnx_torch::TypeProto* Arena::CreateMaybeMessage<::onnx_torch::TypeProto>(Arena*);
142template<> ONNX_API ::onnx_torch::TypeProto_Map* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_Map>(Arena*);
143template<> ONNX_API ::onnx_torch::TypeProto_Opaque* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_Opaque>(Arena*);
144template<> ONNX_API ::onnx_torch::TypeProto_Optional* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_Optional>(Arena*);
145template<> ONNX_API ::onnx_torch::TypeProto_Sequence* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_Sequence>(Arena*);
146template<> ONNX_API ::onnx_torch::TypeProto_SparseTensor* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_SparseTensor>(Arena*);
147template<> ONNX_API ::onnx_torch::TypeProto_Tensor* Arena::CreateMaybeMessage<::onnx_torch::TypeProto_Tensor>(Arena*);
148template<> ONNX_API ::onnx_torch::ValueInfoProto* Arena::CreateMaybeMessage<::onnx_torch::ValueInfoProto>(Arena*);
149PROTOBUF_NAMESPACE_CLOSE
150namespace onnx_torch {
151
152enum AttributeProto_AttributeType : int {
153 AttributeProto_AttributeType_UNDEFINED = 0,
154 AttributeProto_AttributeType_FLOAT = 1,
155 AttributeProto_AttributeType_INT = 2,
156 AttributeProto_AttributeType_STRING = 3,
157 AttributeProto_AttributeType_TENSOR = 4,
158 AttributeProto_AttributeType_GRAPH = 5,
159 AttributeProto_AttributeType_SPARSE_TENSOR = 11,
160 AttributeProto_AttributeType_TYPE_PROTO = 13,
161 AttributeProto_AttributeType_FLOATS = 6,
162 AttributeProto_AttributeType_INTS = 7,
163 AttributeProto_AttributeType_STRINGS = 8,
164 AttributeProto_AttributeType_TENSORS = 9,
165 AttributeProto_AttributeType_GRAPHS = 10,
166 AttributeProto_AttributeType_SPARSE_TENSORS = 12,
167 AttributeProto_AttributeType_TYPE_PROTOS = 14
168};
169ONNX_API bool AttributeProto_AttributeType_IsValid(int value);
170constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MIN = AttributeProto_AttributeType_UNDEFINED;
171constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MAX = AttributeProto_AttributeType_TYPE_PROTOS;
172constexpr int AttributeProto_AttributeType_AttributeType_ARRAYSIZE = static_cast<int>(AttributeProto_AttributeType_AttributeType_MAX) + 1;
173
174ONNX_API const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AttributeProto_AttributeType_descriptor();
175template<typename T>
176inline const std::string& AttributeProto_AttributeType_Name(T enum_t_value) {
177 static_assert(::std::is_same<T, AttributeProto_AttributeType>::value ||
178 ::std::is_integral<T>::value,
179 "Incorrect type passed to function AttributeProto_AttributeType_Name.");
180 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
181 AttributeProto_AttributeType_descriptor(), enum_t_value);
182}
183inline bool AttributeProto_AttributeType_Parse(
184 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttributeProto_AttributeType* value) {
185 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AttributeProto_AttributeType>(
186 AttributeProto_AttributeType_descriptor(), name, value);
187}
188enum TensorProto_DataType : int {
189 TensorProto_DataType_UNDEFINED = 0,
190 TensorProto_DataType_FLOAT = 1,
191 TensorProto_DataType_UINT8 = 2,
192 TensorProto_DataType_INT8 = 3,
193 TensorProto_DataType_UINT16 = 4,
194 TensorProto_DataType_INT16 = 5,
195 TensorProto_DataType_INT32 = 6,
196 TensorProto_DataType_INT64 = 7,
197 TensorProto_DataType_STRING = 8,
198 TensorProto_DataType_BOOL = 9,
199 TensorProto_DataType_FLOAT16 = 10,
200 TensorProto_DataType_DOUBLE = 11,
201 TensorProto_DataType_UINT32 = 12,
202 TensorProto_DataType_UINT64 = 13,
203 TensorProto_DataType_COMPLEX64 = 14,
204 TensorProto_DataType_COMPLEX128 = 15,
205 TensorProto_DataType_BFLOAT16 = 16
206};
207ONNX_API bool TensorProto_DataType_IsValid(int value);
208constexpr TensorProto_DataType TensorProto_DataType_DataType_MIN = TensorProto_DataType_UNDEFINED;
209constexpr TensorProto_DataType TensorProto_DataType_DataType_MAX = TensorProto_DataType_BFLOAT16;
210constexpr int TensorProto_DataType_DataType_ARRAYSIZE = static_cast<int>(TensorProto_DataType_DataType_MAX) + 1;
211
212ONNX_API const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TensorProto_DataType_descriptor();
213template<typename T>
214inline const std::string& TensorProto_DataType_Name(T enum_t_value) {
215 static_assert(::std::is_same<T, TensorProto_DataType>::value ||
216 ::std::is_integral<T>::value,
217 "Incorrect type passed to function TensorProto_DataType_Name.");
218 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
219 TensorProto_DataType_descriptor(), enum_t_value);
220}
221inline bool TensorProto_DataType_Parse(
222 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataType* value) {
223 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TensorProto_DataType>(
224 TensorProto_DataType_descriptor(), name, value);
225}
226enum TensorProto_DataLocation : int {
227 TensorProto_DataLocation_DEFAULT = 0,
228 TensorProto_DataLocation_EXTERNAL = 1
229};
230ONNX_API bool TensorProto_DataLocation_IsValid(int value);
231constexpr TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MIN = TensorProto_DataLocation_DEFAULT;
232constexpr TensorProto_DataLocation TensorProto_DataLocation_DataLocation_MAX = TensorProto_DataLocation_EXTERNAL;
233constexpr int TensorProto_DataLocation_DataLocation_ARRAYSIZE = static_cast<int>(TensorProto_DataLocation_DataLocation_MAX) + 1;
234
235ONNX_API const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TensorProto_DataLocation_descriptor();
236template<typename T>
237inline const std::string& TensorProto_DataLocation_Name(T enum_t_value) {
238 static_assert(::std::is_same<T, TensorProto_DataLocation>::value ||
239 ::std::is_integral<T>::value,
240 "Incorrect type passed to function TensorProto_DataLocation_Name.");
241 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
242 TensorProto_DataLocation_descriptor(), enum_t_value);
243}
244inline bool TensorProto_DataLocation_Parse(
245 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataLocation* value) {
246 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TensorProto_DataLocation>(
247 TensorProto_DataLocation_descriptor(), name, value);
248}
249enum Version : int {
250 _START_VERSION = 0,
251 IR_VERSION_2017_10_10 = 1,
252 IR_VERSION_2017_10_30 = 2,
253 IR_VERSION_2017_11_3 = 3,
254 IR_VERSION_2019_1_22 = 4,
255 IR_VERSION_2019_3_18 = 5,
256 IR_VERSION_2019_9_19 = 6,
257 IR_VERSION_2020_5_8 = 7,
258 IR_VERSION = 8
259};
260ONNX_API bool Version_IsValid(int value);
261constexpr Version Version_MIN = _START_VERSION;
262constexpr Version Version_MAX = IR_VERSION;
263constexpr int Version_ARRAYSIZE = static_cast<int>(Version_MAX) + 1;
264
265ONNX_API const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Version_descriptor();
266template<typename T>
267inline const std::string& Version_Name(T enum_t_value) {
268 static_assert(::std::is_same<T, Version>::value ||
269 ::std::is_integral<T>::value,
270 "Incorrect type passed to function Version_Name.");
271 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
272 Version_descriptor(), enum_t_value);
273}
274inline bool Version_Parse(
275 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Version* value) {
276 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Version>(
277 Version_descriptor(), name, value);
278}
279enum OperatorStatus : int {
280 EXPERIMENTAL = 0,
281 STABLE = 1
282};
283ONNX_API bool OperatorStatus_IsValid(int value);
284constexpr OperatorStatus OperatorStatus_MIN = EXPERIMENTAL;
285constexpr OperatorStatus OperatorStatus_MAX = STABLE;
286constexpr int OperatorStatus_ARRAYSIZE = static_cast<int>(OperatorStatus_MAX) + 1;
287
288ONNX_API const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OperatorStatus_descriptor();
289template<typename T>
290inline const std::string& OperatorStatus_Name(T enum_t_value) {
291 static_assert(::std::is_same<T, OperatorStatus>::value ||
292 ::std::is_integral<T>::value,
293 "Incorrect type passed to function OperatorStatus_Name.");
294 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
295 OperatorStatus_descriptor(), enum_t_value);
296}
297inline bool OperatorStatus_Parse(
298 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperatorStatus* value) {
299 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<OperatorStatus>(
300 OperatorStatus_descriptor(), name, value);
301}
302// ===================================================================
303
304class ONNX_API AttributeProto PROTOBUF_FINAL :
305 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.AttributeProto) */ {
306 public:
307 inline AttributeProto() : AttributeProto(nullptr) {}
308 virtual ~AttributeProto();
309
310 AttributeProto(const AttributeProto& from);
311 AttributeProto(AttributeProto&& from) noexcept;
312
313 inline AttributeProto& operator=(const AttributeProto& from) {
314 CopyFrom(from);
315 return *this;
316 }
317 inline AttributeProto& operator=(AttributeProto&& from) noexcept {
318 if (GetArena() == from.GetArena()) {
319 if (this != &from) InternalSwap(&from);
320 } else {
321 CopyFrom(from);
322 }
323 return *this;
324 }
325
326 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
327 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
328 }
329 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
330 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
331 }
332
333 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
334 return GetDescriptor();
335 }
336 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
337 return GetMetadataStatic().descriptor;
338 }
339 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
340 return GetMetadataStatic().reflection;
341 }
342 static const AttributeProto& default_instance();
343
344 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
345 static inline const AttributeProto* internal_default_instance() {
346 return reinterpret_cast<const AttributeProto*>(
347 &_AttributeProto_default_instance_);
348 }
349 static constexpr int kIndexInFileMessages =
350 0;
351
352 friend void swap(AttributeProto& a, AttributeProto& b) {
353 a.Swap(&b);
354 }
355 inline void Swap(AttributeProto* other) {
356 if (other == this) return;
357 if (GetArena() == other->GetArena()) {
358 InternalSwap(other);
359 } else {
360 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
361 }
362 }
363 void UnsafeArenaSwap(AttributeProto* other) {
364 if (other == this) return;
365 GOOGLE_DCHECK(GetArena() == other->GetArena());
366 InternalSwap(other);
367 }
368
369 // implements Message ----------------------------------------------
370
371 inline AttributeProto* New() const final {
372 return CreateMaybeMessage<AttributeProto>(nullptr);
373 }
374
375 AttributeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
376 return CreateMaybeMessage<AttributeProto>(arena);
377 }
378 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
379 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
380 void CopyFrom(const AttributeProto& from);
381 void MergeFrom(const AttributeProto& from);
382 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
383 bool IsInitialized() const final;
384
385 size_t ByteSizeLong() const final;
386 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
387 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
388 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
389 int GetCachedSize() const final { return _cached_size_.Get(); }
390
391 private:
392 inline void SharedCtor();
393 inline void SharedDtor();
394 void SetCachedSize(int size) const final;
395 void InternalSwap(AttributeProto* other);
396 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
397 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
398 return "onnx_torch.AttributeProto";
399 }
400 protected:
401 explicit AttributeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
402 private:
403 static void ArenaDtor(void* object);
404 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
405 public:
406
407 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
408 private:
409 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
410 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
411 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
412 }
413
414 public:
415
416 // nested types ----------------------------------------------------
417
418 typedef AttributeProto_AttributeType AttributeType;
419 static constexpr AttributeType UNDEFINED =
420 AttributeProto_AttributeType_UNDEFINED;
421 static constexpr AttributeType FLOAT =
422 AttributeProto_AttributeType_FLOAT;
423 static constexpr AttributeType INT =
424 AttributeProto_AttributeType_INT;
425 static constexpr AttributeType STRING =
426 AttributeProto_AttributeType_STRING;
427 static constexpr AttributeType TENSOR =
428 AttributeProto_AttributeType_TENSOR;
429 static constexpr AttributeType GRAPH =
430 AttributeProto_AttributeType_GRAPH;
431 static constexpr AttributeType SPARSE_TENSOR =
432 AttributeProto_AttributeType_SPARSE_TENSOR;
433 static constexpr AttributeType TYPE_PROTO =
434 AttributeProto_AttributeType_TYPE_PROTO;
435 static constexpr AttributeType FLOATS =
436 AttributeProto_AttributeType_FLOATS;
437 static constexpr AttributeType INTS =
438 AttributeProto_AttributeType_INTS;
439 static constexpr AttributeType STRINGS =
440 AttributeProto_AttributeType_STRINGS;
441 static constexpr AttributeType TENSORS =
442 AttributeProto_AttributeType_TENSORS;
443 static constexpr AttributeType GRAPHS =
444 AttributeProto_AttributeType_GRAPHS;
445 static constexpr AttributeType SPARSE_TENSORS =
446 AttributeProto_AttributeType_SPARSE_TENSORS;
447 static constexpr AttributeType TYPE_PROTOS =
448 AttributeProto_AttributeType_TYPE_PROTOS;
449 static inline bool AttributeType_IsValid(int value) {
450 return AttributeProto_AttributeType_IsValid(value);
451 }
452 static constexpr AttributeType AttributeType_MIN =
453 AttributeProto_AttributeType_AttributeType_MIN;
454 static constexpr AttributeType AttributeType_MAX =
455 AttributeProto_AttributeType_AttributeType_MAX;
456 static constexpr int AttributeType_ARRAYSIZE =
457 AttributeProto_AttributeType_AttributeType_ARRAYSIZE;
458 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
459 AttributeType_descriptor() {
460 return AttributeProto_AttributeType_descriptor();
461 }
462 template<typename T>
463 static inline const std::string& AttributeType_Name(T enum_t_value) {
464 static_assert(::std::is_same<T, AttributeType>::value ||
465 ::std::is_integral<T>::value,
466 "Incorrect type passed to function AttributeType_Name.");
467 return AttributeProto_AttributeType_Name(enum_t_value);
468 }
469 static inline bool AttributeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
470 AttributeType* value) {
471 return AttributeProto_AttributeType_Parse(name, value);
472 }
473
474 // accessors -------------------------------------------------------
475
476 enum : int {
477 kFloatsFieldNumber = 7,
478 kIntsFieldNumber = 8,
479 kStringsFieldNumber = 9,
480 kTensorsFieldNumber = 10,
481 kGraphsFieldNumber = 11,
482 kTypeProtosFieldNumber = 15,
483 kSparseTensorsFieldNumber = 23,
484 kNameFieldNumber = 1,
485 kSFieldNumber = 4,
486 kDocStringFieldNumber = 13,
487 kRefAttrNameFieldNumber = 21,
488 kTFieldNumber = 5,
489 kGFieldNumber = 6,
490 kTpFieldNumber = 14,
491 kSparseTensorFieldNumber = 22,
492 kIFieldNumber = 3,
493 kFFieldNumber = 2,
494 kTypeFieldNumber = 20,
495 };
496 // repeated float floats = 7;
497 int floats_size() const;
498 private:
499 int _internal_floats_size() const;
500 public:
501 void clear_floats();
502 private:
503 float _internal_floats(int index) const;
504 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
505 _internal_floats() const;
506 void _internal_add_floats(float value);
507 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
508 _internal_mutable_floats();
509 public:
510 float floats(int index) const;
511 void set_floats(int index, float value);
512 void add_floats(float value);
513 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
514 floats() const;
515 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
516 mutable_floats();
517
518 // repeated int64 ints = 8;
519 int ints_size() const;
520 private:
521 int _internal_ints_size() const;
522 public:
523 void clear_ints();
524 private:
525 ::PROTOBUF_NAMESPACE_ID::int64 _internal_ints(int index) const;
526 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
527 _internal_ints() const;
528 void _internal_add_ints(::PROTOBUF_NAMESPACE_ID::int64 value);
529 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
530 _internal_mutable_ints();
531 public:
532 ::PROTOBUF_NAMESPACE_ID::int64 ints(int index) const;
533 void set_ints(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
534 void add_ints(::PROTOBUF_NAMESPACE_ID::int64 value);
535 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
536 ints() const;
537 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
538 mutable_ints();
539
540 // repeated bytes strings = 9;
541 int strings_size() const;
542 private:
543 int _internal_strings_size() const;
544 public:
545 void clear_strings();
546 const std::string& strings(int index) const;
547 std::string* mutable_strings(int index);
548 void set_strings(int index, const std::string& value);
549 void set_strings(int index, std::string&& value);
550 void set_strings(int index, const char* value);
551 void set_strings(int index, const void* value, size_t size);
552 std::string* add_strings();
553 void add_strings(const std::string& value);
554 void add_strings(std::string&& value);
555 void add_strings(const char* value);
556 void add_strings(const void* value, size_t size);
557 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& strings() const;
558 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_strings();
559 private:
560 const std::string& _internal_strings(int index) const;
561 std::string* _internal_add_strings();
562 public:
563
564 // repeated .onnx_torch.TensorProto tensors = 10;
565 int tensors_size() const;
566 private:
567 int _internal_tensors_size() const;
568 public:
569 void clear_tensors();
570 ::onnx_torch::TensorProto* mutable_tensors(int index);
571 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >*
572 mutable_tensors();
573 private:
574 const ::onnx_torch::TensorProto& _internal_tensors(int index) const;
575 ::onnx_torch::TensorProto* _internal_add_tensors();
576 public:
577 const ::onnx_torch::TensorProto& tensors(int index) const;
578 ::onnx_torch::TensorProto* add_tensors();
579 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >&
580 tensors() const;
581
582 // repeated .onnx_torch.GraphProto graphs = 11;
583 int graphs_size() const;
584 private:
585 int _internal_graphs_size() const;
586 public:
587 void clear_graphs();
588 ::onnx_torch::GraphProto* mutable_graphs(int index);
589 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::GraphProto >*
590 mutable_graphs();
591 private:
592 const ::onnx_torch::GraphProto& _internal_graphs(int index) const;
593 ::onnx_torch::GraphProto* _internal_add_graphs();
594 public:
595 const ::onnx_torch::GraphProto& graphs(int index) const;
596 ::onnx_torch::GraphProto* add_graphs();
597 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::GraphProto >&
598 graphs() const;
599
600 // repeated .onnx_torch.TypeProto type_protos = 15;
601 int type_protos_size() const;
602 private:
603 int _internal_type_protos_size() const;
604 public:
605 void clear_type_protos();
606 ::onnx_torch::TypeProto* mutable_type_protos(int index);
607 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TypeProto >*
608 mutable_type_protos();
609 private:
610 const ::onnx_torch::TypeProto& _internal_type_protos(int index) const;
611 ::onnx_torch::TypeProto* _internal_add_type_protos();
612 public:
613 const ::onnx_torch::TypeProto& type_protos(int index) const;
614 ::onnx_torch::TypeProto* add_type_protos();
615 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TypeProto >&
616 type_protos() const;
617
618 // repeated .onnx_torch.SparseTensorProto sparse_tensors = 23;
619 int sparse_tensors_size() const;
620 private:
621 int _internal_sparse_tensors_size() const;
622 public:
623 void clear_sparse_tensors();
624 ::onnx_torch::SparseTensorProto* mutable_sparse_tensors(int index);
625 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >*
626 mutable_sparse_tensors();
627 private:
628 const ::onnx_torch::SparseTensorProto& _internal_sparse_tensors(int index) const;
629 ::onnx_torch::SparseTensorProto* _internal_add_sparse_tensors();
630 public:
631 const ::onnx_torch::SparseTensorProto& sparse_tensors(int index) const;
632 ::onnx_torch::SparseTensorProto* add_sparse_tensors();
633 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >&
634 sparse_tensors() const;
635
636 // optional string name = 1;
637 bool has_name() const;
638 private:
639 bool _internal_has_name() const;
640 public:
641 void clear_name();
642 const std::string& name() const;
643 void set_name(const std::string& value);
644 void set_name(std::string&& value);
645 void set_name(const char* value);
646 void set_name(const char* value, size_t size);
647 std::string* mutable_name();
648 std::string* release_name();
649 void set_allocated_name(std::string* name);
650 private:
651 const std::string& _internal_name() const;
652 void _internal_set_name(const std::string& value);
653 std::string* _internal_mutable_name();
654 public:
655
656 // optional bytes s = 4;
657 bool has_s() const;
658 private:
659 bool _internal_has_s() const;
660 public:
661 void clear_s();
662 const std::string& s() const;
663 void set_s(const std::string& value);
664 void set_s(std::string&& value);
665 void set_s(const char* value);
666 void set_s(const void* value, size_t size);
667 std::string* mutable_s();
668 std::string* release_s();
669 void set_allocated_s(std::string* s);
670 private:
671 const std::string& _internal_s() const;
672 void _internal_set_s(const std::string& value);
673 std::string* _internal_mutable_s();
674 public:
675
676 // optional string doc_string = 13;
677 bool has_doc_string() const;
678 private:
679 bool _internal_has_doc_string() const;
680 public:
681 void clear_doc_string();
682 const std::string& doc_string() const;
683 void set_doc_string(const std::string& value);
684 void set_doc_string(std::string&& value);
685 void set_doc_string(const char* value);
686 void set_doc_string(const char* value, size_t size);
687 std::string* mutable_doc_string();
688 std::string* release_doc_string();
689 void set_allocated_doc_string(std::string* doc_string);
690 private:
691 const std::string& _internal_doc_string() const;
692 void _internal_set_doc_string(const std::string& value);
693 std::string* _internal_mutable_doc_string();
694 public:
695
696 // optional string ref_attr_name = 21;
697 bool has_ref_attr_name() const;
698 private:
699 bool _internal_has_ref_attr_name() const;
700 public:
701 void clear_ref_attr_name();
702 const std::string& ref_attr_name() const;
703 void set_ref_attr_name(const std::string& value);
704 void set_ref_attr_name(std::string&& value);
705 void set_ref_attr_name(const char* value);
706 void set_ref_attr_name(const char* value, size_t size);
707 std::string* mutable_ref_attr_name();
708 std::string* release_ref_attr_name();
709 void set_allocated_ref_attr_name(std::string* ref_attr_name);
710 private:
711 const std::string& _internal_ref_attr_name() const;
712 void _internal_set_ref_attr_name(const std::string& value);
713 std::string* _internal_mutable_ref_attr_name();
714 public:
715
716 // optional .onnx_torch.TensorProto t = 5;
717 bool has_t() const;
718 private:
719 bool _internal_has_t() const;
720 public:
721 void clear_t();
722 const ::onnx_torch::TensorProto& t() const;
723 ::onnx_torch::TensorProto* release_t();
724 ::onnx_torch::TensorProto* mutable_t();
725 void set_allocated_t(::onnx_torch::TensorProto* t);
726 private:
727 const ::onnx_torch::TensorProto& _internal_t() const;
728 ::onnx_torch::TensorProto* _internal_mutable_t();
729 public:
730 void unsafe_arena_set_allocated_t(
731 ::onnx_torch::TensorProto* t);
732 ::onnx_torch::TensorProto* unsafe_arena_release_t();
733
734 // optional .onnx_torch.GraphProto g = 6;
735 bool has_g() const;
736 private:
737 bool _internal_has_g() const;
738 public:
739 void clear_g();
740 const ::onnx_torch::GraphProto& g() const;
741 ::onnx_torch::GraphProto* release_g();
742 ::onnx_torch::GraphProto* mutable_g();
743 void set_allocated_g(::onnx_torch::GraphProto* g);
744 private:
745 const ::onnx_torch::GraphProto& _internal_g() const;
746 ::onnx_torch::GraphProto* _internal_mutable_g();
747 public:
748 void unsafe_arena_set_allocated_g(
749 ::onnx_torch::GraphProto* g);
750 ::onnx_torch::GraphProto* unsafe_arena_release_g();
751
752 // optional .onnx_torch.TypeProto tp = 14;
753 bool has_tp() const;
754 private:
755 bool _internal_has_tp() const;
756 public:
757 void clear_tp();
758 const ::onnx_torch::TypeProto& tp() const;
759 ::onnx_torch::TypeProto* release_tp();
760 ::onnx_torch::TypeProto* mutable_tp();
761 void set_allocated_tp(::onnx_torch::TypeProto* tp);
762 private:
763 const ::onnx_torch::TypeProto& _internal_tp() const;
764 ::onnx_torch::TypeProto* _internal_mutable_tp();
765 public:
766 void unsafe_arena_set_allocated_tp(
767 ::onnx_torch::TypeProto* tp);
768 ::onnx_torch::TypeProto* unsafe_arena_release_tp();
769
770 // optional .onnx_torch.SparseTensorProto sparse_tensor = 22;
771 bool has_sparse_tensor() const;
772 private:
773 bool _internal_has_sparse_tensor() const;
774 public:
775 void clear_sparse_tensor();
776 const ::onnx_torch::SparseTensorProto& sparse_tensor() const;
777 ::onnx_torch::SparseTensorProto* release_sparse_tensor();
778 ::onnx_torch::SparseTensorProto* mutable_sparse_tensor();
779 void set_allocated_sparse_tensor(::onnx_torch::SparseTensorProto* sparse_tensor);
780 private:
781 const ::onnx_torch::SparseTensorProto& _internal_sparse_tensor() const;
782 ::onnx_torch::SparseTensorProto* _internal_mutable_sparse_tensor();
783 public:
784 void unsafe_arena_set_allocated_sparse_tensor(
785 ::onnx_torch::SparseTensorProto* sparse_tensor);
786 ::onnx_torch::SparseTensorProto* unsafe_arena_release_sparse_tensor();
787
788 // optional int64 i = 3;
789 bool has_i() const;
790 private:
791 bool _internal_has_i() const;
792 public:
793 void clear_i();
794 ::PROTOBUF_NAMESPACE_ID::int64 i() const;
795 void set_i(::PROTOBUF_NAMESPACE_ID::int64 value);
796 private:
797 ::PROTOBUF_NAMESPACE_ID::int64 _internal_i() const;
798 void _internal_set_i(::PROTOBUF_NAMESPACE_ID::int64 value);
799 public:
800
801 // optional float f = 2;
802 bool has_f() const;
803 private:
804 bool _internal_has_f() const;
805 public:
806 void clear_f();
807 float f() const;
808 void set_f(float value);
809 private:
810 float _internal_f() const;
811 void _internal_set_f(float value);
812 public:
813
814 // optional .onnx_torch.AttributeProto.AttributeType type = 20;
815 bool has_type() const;
816 private:
817 bool _internal_has_type() const;
818 public:
819 void clear_type();
820 ::onnx_torch::AttributeProto_AttributeType type() const;
821 void set_type(::onnx_torch::AttributeProto_AttributeType value);
822 private:
823 ::onnx_torch::AttributeProto_AttributeType _internal_type() const;
824 void _internal_set_type(::onnx_torch::AttributeProto_AttributeType value);
825 public:
826
827 // @@protoc_insertion_point(class_scope:onnx_torch.AttributeProto)
828 private:
829 class _Internal;
830
831 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
832 typedef void InternalArenaConstructable_;
833 typedef void DestructorSkippable_;
834 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
835 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
836 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > floats_;
837 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ints_;
838 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> strings_;
839 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto > tensors_;
840 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::GraphProto > graphs_;
841 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TypeProto > type_protos_;
842 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto > sparse_tensors_;
843 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
844 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
845 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
846 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_attr_name_;
847 ::onnx_torch::TensorProto* t_;
848 ::onnx_torch::GraphProto* g_;
849 ::onnx_torch::TypeProto* tp_;
850 ::onnx_torch::SparseTensorProto* sparse_tensor_;
851 ::PROTOBUF_NAMESPACE_ID::int64 i_;
852 float f_;
853 int type_;
854 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
855};
856// -------------------------------------------------------------------
857
858class ONNX_API ValueInfoProto PROTOBUF_FINAL :
859 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.ValueInfoProto) */ {
860 public:
861 inline ValueInfoProto() : ValueInfoProto(nullptr) {}
862 virtual ~ValueInfoProto();
863
864 ValueInfoProto(const ValueInfoProto& from);
865 ValueInfoProto(ValueInfoProto&& from) noexcept;
866
867 inline ValueInfoProto& operator=(const ValueInfoProto& from) {
868 CopyFrom(from);
869 return *this;
870 }
871 inline ValueInfoProto& operator=(ValueInfoProto&& from) noexcept {
872 if (GetArena() == from.GetArena()) {
873 if (this != &from) InternalSwap(&from);
874 } else {
875 CopyFrom(from);
876 }
877 return *this;
878 }
879
880 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
881 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
882 }
883 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
884 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
885 }
886
887 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
888 return GetDescriptor();
889 }
890 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
891 return GetMetadataStatic().descriptor;
892 }
893 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
894 return GetMetadataStatic().reflection;
895 }
896 static const ValueInfoProto& default_instance();
897
898 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
899 static inline const ValueInfoProto* internal_default_instance() {
900 return reinterpret_cast<const ValueInfoProto*>(
901 &_ValueInfoProto_default_instance_);
902 }
903 static constexpr int kIndexInFileMessages =
904 1;
905
906 friend void swap(ValueInfoProto& a, ValueInfoProto& b) {
907 a.Swap(&b);
908 }
909 inline void Swap(ValueInfoProto* other) {
910 if (other == this) return;
911 if (GetArena() == other->GetArena()) {
912 InternalSwap(other);
913 } else {
914 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
915 }
916 }
917 void UnsafeArenaSwap(ValueInfoProto* other) {
918 if (other == this) return;
919 GOOGLE_DCHECK(GetArena() == other->GetArena());
920 InternalSwap(other);
921 }
922
923 // implements Message ----------------------------------------------
924
925 inline ValueInfoProto* New() const final {
926 return CreateMaybeMessage<ValueInfoProto>(nullptr);
927 }
928
929 ValueInfoProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
930 return CreateMaybeMessage<ValueInfoProto>(arena);
931 }
932 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
933 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
934 void CopyFrom(const ValueInfoProto& from);
935 void MergeFrom(const ValueInfoProto& from);
936 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
937 bool IsInitialized() const final;
938
939 size_t ByteSizeLong() const final;
940 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
941 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
942 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
943 int GetCachedSize() const final { return _cached_size_.Get(); }
944
945 private:
946 inline void SharedCtor();
947 inline void SharedDtor();
948 void SetCachedSize(int size) const final;
949 void InternalSwap(ValueInfoProto* other);
950 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
951 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
952 return "onnx_torch.ValueInfoProto";
953 }
954 protected:
955 explicit ValueInfoProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
956 private:
957 static void ArenaDtor(void* object);
958 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
959 public:
960
961 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
962 private:
963 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
964 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
965 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
966 }
967
968 public:
969
970 // nested types ----------------------------------------------------
971
972 // accessors -------------------------------------------------------
973
974 enum : int {
975 kNameFieldNumber = 1,
976 kDocStringFieldNumber = 3,
977 kTypeFieldNumber = 2,
978 };
979 // optional string name = 1;
980 bool has_name() const;
981 private:
982 bool _internal_has_name() const;
983 public:
984 void clear_name();
985 const std::string& name() const;
986 void set_name(const std::string& value);
987 void set_name(std::string&& value);
988 void set_name(const char* value);
989 void set_name(const char* value, size_t size);
990 std::string* mutable_name();
991 std::string* release_name();
992 void set_allocated_name(std::string* name);
993 private:
994 const std::string& _internal_name() const;
995 void _internal_set_name(const std::string& value);
996 std::string* _internal_mutable_name();
997 public:
998
999 // optional string doc_string = 3;
1000 bool has_doc_string() const;
1001 private:
1002 bool _internal_has_doc_string() const;
1003 public:
1004 void clear_doc_string();
1005 const std::string& doc_string() const;
1006 void set_doc_string(const std::string& value);
1007 void set_doc_string(std::string&& value);
1008 void set_doc_string(const char* value);
1009 void set_doc_string(const char* value, size_t size);
1010 std::string* mutable_doc_string();
1011 std::string* release_doc_string();
1012 void set_allocated_doc_string(std::string* doc_string);
1013 private:
1014 const std::string& _internal_doc_string() const;
1015 void _internal_set_doc_string(const std::string& value);
1016 std::string* _internal_mutable_doc_string();
1017 public:
1018
1019 // optional .onnx_torch.TypeProto type = 2;
1020 bool has_type() const;
1021 private:
1022 bool _internal_has_type() const;
1023 public:
1024 void clear_type();
1025 const ::onnx_torch::TypeProto& type() const;
1026 ::onnx_torch::TypeProto* release_type();
1027 ::onnx_torch::TypeProto* mutable_type();
1028 void set_allocated_type(::onnx_torch::TypeProto* type);
1029 private:
1030 const ::onnx_torch::TypeProto& _internal_type() const;
1031 ::onnx_torch::TypeProto* _internal_mutable_type();
1032 public:
1033 void unsafe_arena_set_allocated_type(
1034 ::onnx_torch::TypeProto* type);
1035 ::onnx_torch::TypeProto* unsafe_arena_release_type();
1036
1037 // @@protoc_insertion_point(class_scope:onnx_torch.ValueInfoProto)
1038 private:
1039 class _Internal;
1040
1041 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1042 typedef void InternalArenaConstructable_;
1043 typedef void DestructorSkippable_;
1044 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1045 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1046 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1047 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
1048 ::onnx_torch::TypeProto* type_;
1049 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
1050};
1051// -------------------------------------------------------------------
1052
1053class ONNX_API NodeProto PROTOBUF_FINAL :
1054 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.NodeProto) */ {
1055 public:
1056 inline NodeProto() : NodeProto(nullptr) {}
1057 virtual ~NodeProto();
1058
1059 NodeProto(const NodeProto& from);
1060 NodeProto(NodeProto&& from) noexcept;
1061
1062 inline NodeProto& operator=(const NodeProto& from) {
1063 CopyFrom(from);
1064 return *this;
1065 }
1066 inline NodeProto& operator=(NodeProto&& from) noexcept {
1067 if (GetArena() == from.GetArena()) {
1068 if (this != &from) InternalSwap(&from);
1069 } else {
1070 CopyFrom(from);
1071 }
1072 return *this;
1073 }
1074
1075 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1076 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1077 }
1078 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1079 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1080 }
1081
1082 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1083 return GetDescriptor();
1084 }
1085 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1086 return GetMetadataStatic().descriptor;
1087 }
1088 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1089 return GetMetadataStatic().reflection;
1090 }
1091 static const NodeProto& default_instance();
1092
1093 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1094 static inline const NodeProto* internal_default_instance() {
1095 return reinterpret_cast<const NodeProto*>(
1096 &_NodeProto_default_instance_);
1097 }
1098 static constexpr int kIndexInFileMessages =
1099 2;
1100
1101 friend void swap(NodeProto& a, NodeProto& b) {
1102 a.Swap(&b);
1103 }
1104 inline void Swap(NodeProto* other) {
1105 if (other == this) return;
1106 if (GetArena() == other->GetArena()) {
1107 InternalSwap(other);
1108 } else {
1109 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1110 }
1111 }
1112 void UnsafeArenaSwap(NodeProto* other) {
1113 if (other == this) return;
1114 GOOGLE_DCHECK(GetArena() == other->GetArena());
1115 InternalSwap(other);
1116 }
1117
1118 // implements Message ----------------------------------------------
1119
1120 inline NodeProto* New() const final {
1121 return CreateMaybeMessage<NodeProto>(nullptr);
1122 }
1123
1124 NodeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1125 return CreateMaybeMessage<NodeProto>(arena);
1126 }
1127 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1128 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1129 void CopyFrom(const NodeProto& from);
1130 void MergeFrom(const NodeProto& from);
1131 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1132 bool IsInitialized() const final;
1133
1134 size_t ByteSizeLong() const final;
1135 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1136 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1137 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1138 int GetCachedSize() const final { return _cached_size_.Get(); }
1139
1140 private:
1141 inline void SharedCtor();
1142 inline void SharedDtor();
1143 void SetCachedSize(int size) const final;
1144 void InternalSwap(NodeProto* other);
1145 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1146 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1147 return "onnx_torch.NodeProto";
1148 }
1149 protected:
1150 explicit NodeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1151 private:
1152 static void ArenaDtor(void* object);
1153 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1154 public:
1155
1156 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1157 private:
1158 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1159 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
1160 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
1161 }
1162
1163 public:
1164
1165 // nested types ----------------------------------------------------
1166
1167 // accessors -------------------------------------------------------
1168
1169 enum : int {
1170 kInputFieldNumber = 1,
1171 kOutputFieldNumber = 2,
1172 kAttributeFieldNumber = 5,
1173 kNameFieldNumber = 3,
1174 kOpTypeFieldNumber = 4,
1175 kDocStringFieldNumber = 6,
1176 kDomainFieldNumber = 7,
1177 };
1178 // repeated string input = 1;
1179 int input_size() const;
1180 private:
1181 int _internal_input_size() const;
1182 public:
1183 void clear_input();
1184 const std::string& input(int index) const;
1185 std::string* mutable_input(int index);
1186 void set_input(int index, const std::string& value);
1187 void set_input(int index, std::string&& value);
1188 void set_input(int index, const char* value);
1189 void set_input(int index, const char* value, size_t size);
1190 std::string* add_input();
1191 void add_input(const std::string& value);
1192 void add_input(std::string&& value);
1193 void add_input(const char* value);
1194 void add_input(const char* value, size_t size);
1195 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
1196 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
1197 private:
1198 const std::string& _internal_input(int index) const;
1199 std::string* _internal_add_input();
1200 public:
1201
1202 // repeated string output = 2;
1203 int output_size() const;
1204 private:
1205 int _internal_output_size() const;
1206 public:
1207 void clear_output();
1208 const std::string& output(int index) const;
1209 std::string* mutable_output(int index);
1210 void set_output(int index, const std::string& value);
1211 void set_output(int index, std::string&& value);
1212 void set_output(int index, const char* value);
1213 void set_output(int index, const char* value, size_t size);
1214 std::string* add_output();
1215 void add_output(const std::string& value);
1216 void add_output(std::string&& value);
1217 void add_output(const char* value);
1218 void add_output(const char* value, size_t size);
1219 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output() const;
1220 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output();
1221 private:
1222 const std::string& _internal_output(int index) const;
1223 std::string* _internal_add_output();
1224 public:
1225
1226 // repeated .onnx_torch.AttributeProto attribute = 5;
1227 int attribute_size() const;
1228 private:
1229 int _internal_attribute_size() const;
1230 public:
1231 void clear_attribute();
1232 ::onnx_torch::AttributeProto* mutable_attribute(int index);
1233 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::AttributeProto >*
1234 mutable_attribute();
1235 private:
1236 const ::onnx_torch::AttributeProto& _internal_attribute(int index) const;
1237 ::onnx_torch::AttributeProto* _internal_add_attribute();
1238 public:
1239 const ::onnx_torch::AttributeProto& attribute(int index) const;
1240 ::onnx_torch::AttributeProto* add_attribute();
1241 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::AttributeProto >&
1242 attribute() const;
1243
1244 // optional string name = 3;
1245 bool has_name() const;
1246 private:
1247 bool _internal_has_name() const;
1248 public:
1249 void clear_name();
1250 const std::string& name() const;
1251 void set_name(const std::string& value);
1252 void set_name(std::string&& value);
1253 void set_name(const char* value);
1254 void set_name(const char* value, size_t size);
1255 std::string* mutable_name();
1256 std::string* release_name();
1257 void set_allocated_name(std::string* name);
1258 private:
1259 const std::string& _internal_name() const;
1260 void _internal_set_name(const std::string& value);
1261 std::string* _internal_mutable_name();
1262 public:
1263
1264 // optional string op_type = 4;
1265 bool has_op_type() const;
1266 private:
1267 bool _internal_has_op_type() const;
1268 public:
1269 void clear_op_type();
1270 const std::string& op_type() const;
1271 void set_op_type(const std::string& value);
1272 void set_op_type(std::string&& value);
1273 void set_op_type(const char* value);
1274 void set_op_type(const char* value, size_t size);
1275 std::string* mutable_op_type();
1276 std::string* release_op_type();
1277 void set_allocated_op_type(std::string* op_type);
1278 private:
1279 const std::string& _internal_op_type() const;
1280 void _internal_set_op_type(const std::string& value);
1281 std::string* _internal_mutable_op_type();
1282 public:
1283
1284 // optional string doc_string = 6;
1285 bool has_doc_string() const;
1286 private:
1287 bool _internal_has_doc_string() const;
1288 public:
1289 void clear_doc_string();
1290 const std::string& doc_string() const;
1291 void set_doc_string(const std::string& value);
1292 void set_doc_string(std::string&& value);
1293 void set_doc_string(const char* value);
1294 void set_doc_string(const char* value, size_t size);
1295 std::string* mutable_doc_string();
1296 std::string* release_doc_string();
1297 void set_allocated_doc_string(std::string* doc_string);
1298 private:
1299 const std::string& _internal_doc_string() const;
1300 void _internal_set_doc_string(const std::string& value);
1301 std::string* _internal_mutable_doc_string();
1302 public:
1303
1304 // optional string domain = 7;
1305 bool has_domain() const;
1306 private:
1307 bool _internal_has_domain() const;
1308 public:
1309 void clear_domain();
1310 const std::string& domain() const;
1311 void set_domain(const std::string& value);
1312 void set_domain(std::string&& value);
1313 void set_domain(const char* value);
1314 void set_domain(const char* value, size_t size);
1315 std::string* mutable_domain();
1316 std::string* release_domain();
1317 void set_allocated_domain(std::string* domain);
1318 private:
1319 const std::string& _internal_domain() const;
1320 void _internal_set_domain(const std::string& value);
1321 std::string* _internal_mutable_domain();
1322 public:
1323
1324 // @@protoc_insertion_point(class_scope:onnx_torch.NodeProto)
1325 private:
1326 class _Internal;
1327
1328 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1329 typedef void InternalArenaConstructable_;
1330 typedef void DestructorSkippable_;
1331 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1332 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1333 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
1334 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_;
1335 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::AttributeProto > attribute_;
1336 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1337 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_type_;
1338 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
1339 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
1340 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
1341};
1342// -------------------------------------------------------------------
1343
1344class ONNX_API TrainingInfoProto PROTOBUF_FINAL :
1345 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TrainingInfoProto) */ {
1346 public:
1347 inline TrainingInfoProto() : TrainingInfoProto(nullptr) {}
1348 virtual ~TrainingInfoProto();
1349
1350 TrainingInfoProto(const TrainingInfoProto& from);
1351 TrainingInfoProto(TrainingInfoProto&& from) noexcept;
1352
1353 inline TrainingInfoProto& operator=(const TrainingInfoProto& from) {
1354 CopyFrom(from);
1355 return *this;
1356 }
1357 inline TrainingInfoProto& operator=(TrainingInfoProto&& from) noexcept {
1358 if (GetArena() == from.GetArena()) {
1359 if (this != &from) InternalSwap(&from);
1360 } else {
1361 CopyFrom(from);
1362 }
1363 return *this;
1364 }
1365
1366 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1367 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1368 }
1369 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1370 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1371 }
1372
1373 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1374 return GetDescriptor();
1375 }
1376 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1377 return GetMetadataStatic().descriptor;
1378 }
1379 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1380 return GetMetadataStatic().reflection;
1381 }
1382 static const TrainingInfoProto& default_instance();
1383
1384 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1385 static inline const TrainingInfoProto* internal_default_instance() {
1386 return reinterpret_cast<const TrainingInfoProto*>(
1387 &_TrainingInfoProto_default_instance_);
1388 }
1389 static constexpr int kIndexInFileMessages =
1390 3;
1391
1392 friend void swap(TrainingInfoProto& a, TrainingInfoProto& b) {
1393 a.Swap(&b);
1394 }
1395 inline void Swap(TrainingInfoProto* other) {
1396 if (other == this) return;
1397 if (GetArena() == other->GetArena()) {
1398 InternalSwap(other);
1399 } else {
1400 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1401 }
1402 }
1403 void UnsafeArenaSwap(TrainingInfoProto* other) {
1404 if (other == this) return;
1405 GOOGLE_DCHECK(GetArena() == other->GetArena());
1406 InternalSwap(other);
1407 }
1408
1409 // implements Message ----------------------------------------------
1410
1411 inline TrainingInfoProto* New() const final {
1412 return CreateMaybeMessage<TrainingInfoProto>(nullptr);
1413 }
1414
1415 TrainingInfoProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1416 return CreateMaybeMessage<TrainingInfoProto>(arena);
1417 }
1418 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1419 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1420 void CopyFrom(const TrainingInfoProto& from);
1421 void MergeFrom(const TrainingInfoProto& from);
1422 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1423 bool IsInitialized() const final;
1424
1425 size_t ByteSizeLong() const final;
1426 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1427 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1428 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1429 int GetCachedSize() const final { return _cached_size_.Get(); }
1430
1431 private:
1432 inline void SharedCtor();
1433 inline void SharedDtor();
1434 void SetCachedSize(int size) const final;
1435 void InternalSwap(TrainingInfoProto* other);
1436 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1437 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1438 return "onnx_torch.TrainingInfoProto";
1439 }
1440 protected:
1441 explicit TrainingInfoProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1442 private:
1443 static void ArenaDtor(void* object);
1444 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1445 public:
1446
1447 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1448 private:
1449 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1450 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
1451 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
1452 }
1453
1454 public:
1455
1456 // nested types ----------------------------------------------------
1457
1458 // accessors -------------------------------------------------------
1459
1460 enum : int {
1461 kInitializationBindingFieldNumber = 3,
1462 kUpdateBindingFieldNumber = 4,
1463 kInitializationFieldNumber = 1,
1464 kAlgorithmFieldNumber = 2,
1465 };
1466 // repeated .onnx_torch.StringStringEntryProto initialization_binding = 3;
1467 int initialization_binding_size() const;
1468 private:
1469 int _internal_initialization_binding_size() const;
1470 public:
1471 void clear_initialization_binding();
1472 ::onnx_torch::StringStringEntryProto* mutable_initialization_binding(int index);
1473 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
1474 mutable_initialization_binding();
1475 private:
1476 const ::onnx_torch::StringStringEntryProto& _internal_initialization_binding(int index) const;
1477 ::onnx_torch::StringStringEntryProto* _internal_add_initialization_binding();
1478 public:
1479 const ::onnx_torch::StringStringEntryProto& initialization_binding(int index) const;
1480 ::onnx_torch::StringStringEntryProto* add_initialization_binding();
1481 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
1482 initialization_binding() const;
1483
1484 // repeated .onnx_torch.StringStringEntryProto update_binding = 4;
1485 int update_binding_size() const;
1486 private:
1487 int _internal_update_binding_size() const;
1488 public:
1489 void clear_update_binding();
1490 ::onnx_torch::StringStringEntryProto* mutable_update_binding(int index);
1491 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
1492 mutable_update_binding();
1493 private:
1494 const ::onnx_torch::StringStringEntryProto& _internal_update_binding(int index) const;
1495 ::onnx_torch::StringStringEntryProto* _internal_add_update_binding();
1496 public:
1497 const ::onnx_torch::StringStringEntryProto& update_binding(int index) const;
1498 ::onnx_torch::StringStringEntryProto* add_update_binding();
1499 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
1500 update_binding() const;
1501
1502 // optional .onnx_torch.GraphProto initialization = 1;
1503 bool has_initialization() const;
1504 private:
1505 bool _internal_has_initialization() const;
1506 public:
1507 void clear_initialization();
1508 const ::onnx_torch::GraphProto& initialization() const;
1509 ::onnx_torch::GraphProto* release_initialization();
1510 ::onnx_torch::GraphProto* mutable_initialization();
1511 void set_allocated_initialization(::onnx_torch::GraphProto* initialization);
1512 private:
1513 const ::onnx_torch::GraphProto& _internal_initialization() const;
1514 ::onnx_torch::GraphProto* _internal_mutable_initialization();
1515 public:
1516 void unsafe_arena_set_allocated_initialization(
1517 ::onnx_torch::GraphProto* initialization);
1518 ::onnx_torch::GraphProto* unsafe_arena_release_initialization();
1519
1520 // optional .onnx_torch.GraphProto algorithm = 2;
1521 bool has_algorithm() const;
1522 private:
1523 bool _internal_has_algorithm() const;
1524 public:
1525 void clear_algorithm();
1526 const ::onnx_torch::GraphProto& algorithm() const;
1527 ::onnx_torch::GraphProto* release_algorithm();
1528 ::onnx_torch::GraphProto* mutable_algorithm();
1529 void set_allocated_algorithm(::onnx_torch::GraphProto* algorithm);
1530 private:
1531 const ::onnx_torch::GraphProto& _internal_algorithm() const;
1532 ::onnx_torch::GraphProto* _internal_mutable_algorithm();
1533 public:
1534 void unsafe_arena_set_allocated_algorithm(
1535 ::onnx_torch::GraphProto* algorithm);
1536 ::onnx_torch::GraphProto* unsafe_arena_release_algorithm();
1537
1538 // @@protoc_insertion_point(class_scope:onnx_torch.TrainingInfoProto)
1539 private:
1540 class _Internal;
1541
1542 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1543 typedef void InternalArenaConstructable_;
1544 typedef void DestructorSkippable_;
1545 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1546 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1547 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto > initialization_binding_;
1548 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto > update_binding_;
1549 ::onnx_torch::GraphProto* initialization_;
1550 ::onnx_torch::GraphProto* algorithm_;
1551 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
1552};
1553// -------------------------------------------------------------------
1554
1555class ONNX_API ModelProto PROTOBUF_FINAL :
1556 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.ModelProto) */ {
1557 public:
1558 inline ModelProto() : ModelProto(nullptr) {}
1559 virtual ~ModelProto();
1560
1561 ModelProto(const ModelProto& from);
1562 ModelProto(ModelProto&& from) noexcept;
1563
1564 inline ModelProto& operator=(const ModelProto& from) {
1565 CopyFrom(from);
1566 return *this;
1567 }
1568 inline ModelProto& operator=(ModelProto&& from) noexcept {
1569 if (GetArena() == from.GetArena()) {
1570 if (this != &from) InternalSwap(&from);
1571 } else {
1572 CopyFrom(from);
1573 }
1574 return *this;
1575 }
1576
1577 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1578 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1579 }
1580 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1581 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1582 }
1583
1584 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1585 return GetDescriptor();
1586 }
1587 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1588 return GetMetadataStatic().descriptor;
1589 }
1590 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1591 return GetMetadataStatic().reflection;
1592 }
1593 static const ModelProto& default_instance();
1594
1595 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1596 static inline const ModelProto* internal_default_instance() {
1597 return reinterpret_cast<const ModelProto*>(
1598 &_ModelProto_default_instance_);
1599 }
1600 static constexpr int kIndexInFileMessages =
1601 4;
1602
1603 friend void swap(ModelProto& a, ModelProto& b) {
1604 a.Swap(&b);
1605 }
1606 inline void Swap(ModelProto* other) {
1607 if (other == this) return;
1608 if (GetArena() == other->GetArena()) {
1609 InternalSwap(other);
1610 } else {
1611 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1612 }
1613 }
1614 void UnsafeArenaSwap(ModelProto* other) {
1615 if (other == this) return;
1616 GOOGLE_DCHECK(GetArena() == other->GetArena());
1617 InternalSwap(other);
1618 }
1619
1620 // implements Message ----------------------------------------------
1621
1622 inline ModelProto* New() const final {
1623 return CreateMaybeMessage<ModelProto>(nullptr);
1624 }
1625
1626 ModelProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1627 return CreateMaybeMessage<ModelProto>(arena);
1628 }
1629 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1630 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1631 void CopyFrom(const ModelProto& from);
1632 void MergeFrom(const ModelProto& from);
1633 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1634 bool IsInitialized() const final;
1635
1636 size_t ByteSizeLong() const final;
1637 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1638 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1639 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1640 int GetCachedSize() const final { return _cached_size_.Get(); }
1641
1642 private:
1643 inline void SharedCtor();
1644 inline void SharedDtor();
1645 void SetCachedSize(int size) const final;
1646 void InternalSwap(ModelProto* other);
1647 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1648 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1649 return "onnx_torch.ModelProto";
1650 }
1651 protected:
1652 explicit ModelProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1653 private:
1654 static void ArenaDtor(void* object);
1655 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1656 public:
1657
1658 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1659 private:
1660 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1661 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
1662 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
1663 }
1664
1665 public:
1666
1667 // nested types ----------------------------------------------------
1668
1669 // accessors -------------------------------------------------------
1670
1671 enum : int {
1672 kOpsetImportFieldNumber = 8,
1673 kMetadataPropsFieldNumber = 14,
1674 kTrainingInfoFieldNumber = 20,
1675 kFunctionsFieldNumber = 25,
1676 kProducerNameFieldNumber = 2,
1677 kProducerVersionFieldNumber = 3,
1678 kDomainFieldNumber = 4,
1679 kDocStringFieldNumber = 6,
1680 kGraphFieldNumber = 7,
1681 kIrVersionFieldNumber = 1,
1682 kModelVersionFieldNumber = 5,
1683 };
1684 // repeated .onnx_torch.OperatorSetIdProto opset_import = 8;
1685 int opset_import_size() const;
1686 private:
1687 int _internal_opset_import_size() const;
1688 public:
1689 void clear_opset_import();
1690 ::onnx_torch::OperatorSetIdProto* mutable_opset_import(int index);
1691 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >*
1692 mutable_opset_import();
1693 private:
1694 const ::onnx_torch::OperatorSetIdProto& _internal_opset_import(int index) const;
1695 ::onnx_torch::OperatorSetIdProto* _internal_add_opset_import();
1696 public:
1697 const ::onnx_torch::OperatorSetIdProto& opset_import(int index) const;
1698 ::onnx_torch::OperatorSetIdProto* add_opset_import();
1699 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >&
1700 opset_import() const;
1701
1702 // repeated .onnx_torch.StringStringEntryProto metadata_props = 14;
1703 int metadata_props_size() const;
1704 private:
1705 int _internal_metadata_props_size() const;
1706 public:
1707 void clear_metadata_props();
1708 ::onnx_torch::StringStringEntryProto* mutable_metadata_props(int index);
1709 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
1710 mutable_metadata_props();
1711 private:
1712 const ::onnx_torch::StringStringEntryProto& _internal_metadata_props(int index) const;
1713 ::onnx_torch::StringStringEntryProto* _internal_add_metadata_props();
1714 public:
1715 const ::onnx_torch::StringStringEntryProto& metadata_props(int index) const;
1716 ::onnx_torch::StringStringEntryProto* add_metadata_props();
1717 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
1718 metadata_props() const;
1719
1720 // repeated .onnx_torch.TrainingInfoProto training_info = 20;
1721 int training_info_size() const;
1722 private:
1723 int _internal_training_info_size() const;
1724 public:
1725 void clear_training_info();
1726 ::onnx_torch::TrainingInfoProto* mutable_training_info(int index);
1727 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TrainingInfoProto >*
1728 mutable_training_info();
1729 private:
1730 const ::onnx_torch::TrainingInfoProto& _internal_training_info(int index) const;
1731 ::onnx_torch::TrainingInfoProto* _internal_add_training_info();
1732 public:
1733 const ::onnx_torch::TrainingInfoProto& training_info(int index) const;
1734 ::onnx_torch::TrainingInfoProto* add_training_info();
1735 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TrainingInfoProto >&
1736 training_info() const;
1737
1738 // repeated .onnx_torch.FunctionProto functions = 25;
1739 int functions_size() const;
1740 private:
1741 int _internal_functions_size() const;
1742 public:
1743 void clear_functions();
1744 ::onnx_torch::FunctionProto* mutable_functions(int index);
1745 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::FunctionProto >*
1746 mutable_functions();
1747 private:
1748 const ::onnx_torch::FunctionProto& _internal_functions(int index) const;
1749 ::onnx_torch::FunctionProto* _internal_add_functions();
1750 public:
1751 const ::onnx_torch::FunctionProto& functions(int index) const;
1752 ::onnx_torch::FunctionProto* add_functions();
1753 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::FunctionProto >&
1754 functions() const;
1755
1756 // optional string producer_name = 2;
1757 bool has_producer_name() const;
1758 private:
1759 bool _internal_has_producer_name() const;
1760 public:
1761 void clear_producer_name();
1762 const std::string& producer_name() const;
1763 void set_producer_name(const std::string& value);
1764 void set_producer_name(std::string&& value);
1765 void set_producer_name(const char* value);
1766 void set_producer_name(const char* value, size_t size);
1767 std::string* mutable_producer_name();
1768 std::string* release_producer_name();
1769 void set_allocated_producer_name(std::string* producer_name);
1770 private:
1771 const std::string& _internal_producer_name() const;
1772 void _internal_set_producer_name(const std::string& value);
1773 std::string* _internal_mutable_producer_name();
1774 public:
1775
1776 // optional string producer_version = 3;
1777 bool has_producer_version() const;
1778 private:
1779 bool _internal_has_producer_version() const;
1780 public:
1781 void clear_producer_version();
1782 const std::string& producer_version() const;
1783 void set_producer_version(const std::string& value);
1784 void set_producer_version(std::string&& value);
1785 void set_producer_version(const char* value);
1786 void set_producer_version(const char* value, size_t size);
1787 std::string* mutable_producer_version();
1788 std::string* release_producer_version();
1789 void set_allocated_producer_version(std::string* producer_version);
1790 private:
1791 const std::string& _internal_producer_version() const;
1792 void _internal_set_producer_version(const std::string& value);
1793 std::string* _internal_mutable_producer_version();
1794 public:
1795
1796 // optional string domain = 4;
1797 bool has_domain() const;
1798 private:
1799 bool _internal_has_domain() const;
1800 public:
1801 void clear_domain();
1802 const std::string& domain() const;
1803 void set_domain(const std::string& value);
1804 void set_domain(std::string&& value);
1805 void set_domain(const char* value);
1806 void set_domain(const char* value, size_t size);
1807 std::string* mutable_domain();
1808 std::string* release_domain();
1809 void set_allocated_domain(std::string* domain);
1810 private:
1811 const std::string& _internal_domain() const;
1812 void _internal_set_domain(const std::string& value);
1813 std::string* _internal_mutable_domain();
1814 public:
1815
1816 // optional string doc_string = 6;
1817 bool has_doc_string() const;
1818 private:
1819 bool _internal_has_doc_string() const;
1820 public:
1821 void clear_doc_string();
1822 const std::string& doc_string() const;
1823 void set_doc_string(const std::string& value);
1824 void set_doc_string(std::string&& value);
1825 void set_doc_string(const char* value);
1826 void set_doc_string(const char* value, size_t size);
1827 std::string* mutable_doc_string();
1828 std::string* release_doc_string();
1829 void set_allocated_doc_string(std::string* doc_string);
1830 private:
1831 const std::string& _internal_doc_string() const;
1832 void _internal_set_doc_string(const std::string& value);
1833 std::string* _internal_mutable_doc_string();
1834 public:
1835
1836 // optional .onnx_torch.GraphProto graph = 7;
1837 bool has_graph() const;
1838 private:
1839 bool _internal_has_graph() const;
1840 public:
1841 void clear_graph();
1842 const ::onnx_torch::GraphProto& graph() const;
1843 ::onnx_torch::GraphProto* release_graph();
1844 ::onnx_torch::GraphProto* mutable_graph();
1845 void set_allocated_graph(::onnx_torch::GraphProto* graph);
1846 private:
1847 const ::onnx_torch::GraphProto& _internal_graph() const;
1848 ::onnx_torch::GraphProto* _internal_mutable_graph();
1849 public:
1850 void unsafe_arena_set_allocated_graph(
1851 ::onnx_torch::GraphProto* graph);
1852 ::onnx_torch::GraphProto* unsafe_arena_release_graph();
1853
1854 // optional int64 ir_version = 1;
1855 bool has_ir_version() const;
1856 private:
1857 bool _internal_has_ir_version() const;
1858 public:
1859 void clear_ir_version();
1860 ::PROTOBUF_NAMESPACE_ID::int64 ir_version() const;
1861 void set_ir_version(::PROTOBUF_NAMESPACE_ID::int64 value);
1862 private:
1863 ::PROTOBUF_NAMESPACE_ID::int64 _internal_ir_version() const;
1864 void _internal_set_ir_version(::PROTOBUF_NAMESPACE_ID::int64 value);
1865 public:
1866
1867 // optional int64 model_version = 5;
1868 bool has_model_version() const;
1869 private:
1870 bool _internal_has_model_version() const;
1871 public:
1872 void clear_model_version();
1873 ::PROTOBUF_NAMESPACE_ID::int64 model_version() const;
1874 void set_model_version(::PROTOBUF_NAMESPACE_ID::int64 value);
1875 private:
1876 ::PROTOBUF_NAMESPACE_ID::int64 _internal_model_version() const;
1877 void _internal_set_model_version(::PROTOBUF_NAMESPACE_ID::int64 value);
1878 public:
1879
1880 // @@protoc_insertion_point(class_scope:onnx_torch.ModelProto)
1881 private:
1882 class _Internal;
1883
1884 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1885 typedef void InternalArenaConstructable_;
1886 typedef void DestructorSkippable_;
1887 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1888 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1889 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto > opset_import_;
1890 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto > metadata_props_;
1891 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TrainingInfoProto > training_info_;
1892 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::FunctionProto > functions_;
1893 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_name_;
1894 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_version_;
1895 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
1896 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
1897 ::onnx_torch::GraphProto* graph_;
1898 ::PROTOBUF_NAMESPACE_ID::int64 ir_version_;
1899 ::PROTOBUF_NAMESPACE_ID::int64 model_version_;
1900 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
1901};
1902// -------------------------------------------------------------------
1903
1904class ONNX_API StringStringEntryProto PROTOBUF_FINAL :
1905 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.StringStringEntryProto) */ {
1906 public:
1907 inline StringStringEntryProto() : StringStringEntryProto(nullptr) {}
1908 virtual ~StringStringEntryProto();
1909
1910 StringStringEntryProto(const StringStringEntryProto& from);
1911 StringStringEntryProto(StringStringEntryProto&& from) noexcept;
1912
1913 inline StringStringEntryProto& operator=(const StringStringEntryProto& from) {
1914 CopyFrom(from);
1915 return *this;
1916 }
1917 inline StringStringEntryProto& operator=(StringStringEntryProto&& from) noexcept {
1918 if (GetArena() == from.GetArena()) {
1919 if (this != &from) InternalSwap(&from);
1920 } else {
1921 CopyFrom(from);
1922 }
1923 return *this;
1924 }
1925
1926 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1927 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1928 }
1929 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1930 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1931 }
1932
1933 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1934 return GetDescriptor();
1935 }
1936 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1937 return GetMetadataStatic().descriptor;
1938 }
1939 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1940 return GetMetadataStatic().reflection;
1941 }
1942 static const StringStringEntryProto& default_instance();
1943
1944 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1945 static inline const StringStringEntryProto* internal_default_instance() {
1946 return reinterpret_cast<const StringStringEntryProto*>(
1947 &_StringStringEntryProto_default_instance_);
1948 }
1949 static constexpr int kIndexInFileMessages =
1950 5;
1951
1952 friend void swap(StringStringEntryProto& a, StringStringEntryProto& b) {
1953 a.Swap(&b);
1954 }
1955 inline void Swap(StringStringEntryProto* other) {
1956 if (other == this) return;
1957 if (GetArena() == other->GetArena()) {
1958 InternalSwap(other);
1959 } else {
1960 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1961 }
1962 }
1963 void UnsafeArenaSwap(StringStringEntryProto* other) {
1964 if (other == this) return;
1965 GOOGLE_DCHECK(GetArena() == other->GetArena());
1966 InternalSwap(other);
1967 }
1968
1969 // implements Message ----------------------------------------------
1970
1971 inline StringStringEntryProto* New() const final {
1972 return CreateMaybeMessage<StringStringEntryProto>(nullptr);
1973 }
1974
1975 StringStringEntryProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1976 return CreateMaybeMessage<StringStringEntryProto>(arena);
1977 }
1978 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1979 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1980 void CopyFrom(const StringStringEntryProto& from);
1981 void MergeFrom(const StringStringEntryProto& from);
1982 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1983 bool IsInitialized() const final;
1984
1985 size_t ByteSizeLong() const final;
1986 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1987 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1988 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1989 int GetCachedSize() const final { return _cached_size_.Get(); }
1990
1991 private:
1992 inline void SharedCtor();
1993 inline void SharedDtor();
1994 void SetCachedSize(int size) const final;
1995 void InternalSwap(StringStringEntryProto* other);
1996 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1997 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1998 return "onnx_torch.StringStringEntryProto";
1999 }
2000 protected:
2001 explicit StringStringEntryProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2002 private:
2003 static void ArenaDtor(void* object);
2004 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2005 public:
2006
2007 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2008 private:
2009 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
2010 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
2011 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
2012 }
2013
2014 public:
2015
2016 // nested types ----------------------------------------------------
2017
2018 // accessors -------------------------------------------------------
2019
2020 enum : int {
2021 kKeyFieldNumber = 1,
2022 kValueFieldNumber = 2,
2023 };
2024 // optional string key = 1;
2025 bool has_key() const;
2026 private:
2027 bool _internal_has_key() const;
2028 public:
2029 void clear_key();
2030 const std::string& key() const;
2031 void set_key(const std::string& value);
2032 void set_key(std::string&& value);
2033 void set_key(const char* value);
2034 void set_key(const char* value, size_t size);
2035 std::string* mutable_key();
2036 std::string* release_key();
2037 void set_allocated_key(std::string* key);
2038 private:
2039 const std::string& _internal_key() const;
2040 void _internal_set_key(const std::string& value);
2041 std::string* _internal_mutable_key();
2042 public:
2043
2044 // optional string value = 2;
2045 bool has_value() const;
2046 private:
2047 bool _internal_has_value() const;
2048 public:
2049 void clear_value();
2050 const std::string& value() const;
2051 void set_value(const std::string& value);
2052 void set_value(std::string&& value);
2053 void set_value(const char* value);
2054 void set_value(const char* value, size_t size);
2055 std::string* mutable_value();
2056 std::string* release_value();
2057 void set_allocated_value(std::string* value);
2058 private:
2059 const std::string& _internal_value() const;
2060 void _internal_set_value(const std::string& value);
2061 std::string* _internal_mutable_value();
2062 public:
2063
2064 // @@protoc_insertion_point(class_scope:onnx_torch.StringStringEntryProto)
2065 private:
2066 class _Internal;
2067
2068 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2069 typedef void InternalArenaConstructable_;
2070 typedef void DestructorSkippable_;
2071 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2072 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2073 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
2074 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
2075 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
2076};
2077// -------------------------------------------------------------------
2078
2079class ONNX_API TensorAnnotation PROTOBUF_FINAL :
2080 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TensorAnnotation) */ {
2081 public:
2082 inline TensorAnnotation() : TensorAnnotation(nullptr) {}
2083 virtual ~TensorAnnotation();
2084
2085 TensorAnnotation(const TensorAnnotation& from);
2086 TensorAnnotation(TensorAnnotation&& from) noexcept;
2087
2088 inline TensorAnnotation& operator=(const TensorAnnotation& from) {
2089 CopyFrom(from);
2090 return *this;
2091 }
2092 inline TensorAnnotation& operator=(TensorAnnotation&& from) noexcept {
2093 if (GetArena() == from.GetArena()) {
2094 if (this != &from) InternalSwap(&from);
2095 } else {
2096 CopyFrom(from);
2097 }
2098 return *this;
2099 }
2100
2101 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2103 }
2104 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2106 }
2107
2108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2109 return GetDescriptor();
2110 }
2111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2112 return GetMetadataStatic().descriptor;
2113 }
2114 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2115 return GetMetadataStatic().reflection;
2116 }
2117 static const TensorAnnotation& default_instance();
2118
2119 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2120 static inline const TensorAnnotation* internal_default_instance() {
2121 return reinterpret_cast<const TensorAnnotation*>(
2122 &_TensorAnnotation_default_instance_);
2123 }
2124 static constexpr int kIndexInFileMessages =
2125 6;
2126
2127 friend void swap(TensorAnnotation& a, TensorAnnotation& b) {
2128 a.Swap(&b);
2129 }
2130 inline void Swap(TensorAnnotation* other) {
2131 if (other == this) return;
2132 if (GetArena() == other->GetArena()) {
2133 InternalSwap(other);
2134 } else {
2135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2136 }
2137 }
2138 void UnsafeArenaSwap(TensorAnnotation* other) {
2139 if (other == this) return;
2140 GOOGLE_DCHECK(GetArena() == other->GetArena());
2141 InternalSwap(other);
2142 }
2143
2144 // implements Message ----------------------------------------------
2145
2146 inline TensorAnnotation* New() const final {
2147 return CreateMaybeMessage<TensorAnnotation>(nullptr);
2148 }
2149
2150 TensorAnnotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2151 return CreateMaybeMessage<TensorAnnotation>(arena);
2152 }
2153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2155 void CopyFrom(const TensorAnnotation& from);
2156 void MergeFrom(const TensorAnnotation& from);
2157 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2158 bool IsInitialized() const final;
2159
2160 size_t ByteSizeLong() const final;
2161 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
2163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2164 int GetCachedSize() const final { return _cached_size_.Get(); }
2165
2166 private:
2167 inline void SharedCtor();
2168 inline void SharedDtor();
2169 void SetCachedSize(int size) const final;
2170 void InternalSwap(TensorAnnotation* other);
2171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2173 return "onnx_torch.TensorAnnotation";
2174 }
2175 protected:
2176 explicit TensorAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2177 private:
2178 static void ArenaDtor(void* object);
2179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2180 public:
2181
2182 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2183 private:
2184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
2185 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
2186 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
2187 }
2188
2189 public:
2190
2191 // nested types ----------------------------------------------------
2192
2193 // accessors -------------------------------------------------------
2194
2195 enum : int {
2196 kQuantParameterTensorNamesFieldNumber = 2,
2197 kTensorNameFieldNumber = 1,
2198 };
2199 // repeated .onnx_torch.StringStringEntryProto quant_parameter_tensor_names = 2;
2200 int quant_parameter_tensor_names_size() const;
2201 private:
2202 int _internal_quant_parameter_tensor_names_size() const;
2203 public:
2204 void clear_quant_parameter_tensor_names();
2205 ::onnx_torch::StringStringEntryProto* mutable_quant_parameter_tensor_names(int index);
2206 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
2207 mutable_quant_parameter_tensor_names();
2208 private:
2209 const ::onnx_torch::StringStringEntryProto& _internal_quant_parameter_tensor_names(int index) const;
2210 ::onnx_torch::StringStringEntryProto* _internal_add_quant_parameter_tensor_names();
2211 public:
2212 const ::onnx_torch::StringStringEntryProto& quant_parameter_tensor_names(int index) const;
2213 ::onnx_torch::StringStringEntryProto* add_quant_parameter_tensor_names();
2214 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
2215 quant_parameter_tensor_names() const;
2216
2217 // optional string tensor_name = 1;
2218 bool has_tensor_name() const;
2219 private:
2220 bool _internal_has_tensor_name() const;
2221 public:
2222 void clear_tensor_name();
2223 const std::string& tensor_name() const;
2224 void set_tensor_name(const std::string& value);
2225 void set_tensor_name(std::string&& value);
2226 void set_tensor_name(const char* value);
2227 void set_tensor_name(const char* value, size_t size);
2228 std::string* mutable_tensor_name();
2229 std::string* release_tensor_name();
2230 void set_allocated_tensor_name(std::string* tensor_name);
2231 private:
2232 const std::string& _internal_tensor_name() const;
2233 void _internal_set_tensor_name(const std::string& value);
2234 std::string* _internal_mutable_tensor_name();
2235 public:
2236
2237 // @@protoc_insertion_point(class_scope:onnx_torch.TensorAnnotation)
2238 private:
2239 class _Internal;
2240
2241 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2242 typedef void InternalArenaConstructable_;
2243 typedef void DestructorSkippable_;
2244 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2245 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2246 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto > quant_parameter_tensor_names_;
2247 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tensor_name_;
2248 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
2249};
2250// -------------------------------------------------------------------
2251
2252class ONNX_API GraphProto PROTOBUF_FINAL :
2253 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.GraphProto) */ {
2254 public:
2255 inline GraphProto() : GraphProto(nullptr) {}
2256 virtual ~GraphProto();
2257
2258 GraphProto(const GraphProto& from);
2259 GraphProto(GraphProto&& from) noexcept;
2260
2261 inline GraphProto& operator=(const GraphProto& from) {
2262 CopyFrom(from);
2263 return *this;
2264 }
2265 inline GraphProto& operator=(GraphProto&& from) noexcept {
2266 if (GetArena() == from.GetArena()) {
2267 if (this != &from) InternalSwap(&from);
2268 } else {
2269 CopyFrom(from);
2270 }
2271 return *this;
2272 }
2273
2274 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2275 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2276 }
2277 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2278 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2279 }
2280
2281 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2282 return GetDescriptor();
2283 }
2284 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2285 return GetMetadataStatic().descriptor;
2286 }
2287 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2288 return GetMetadataStatic().reflection;
2289 }
2290 static const GraphProto& default_instance();
2291
2292 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2293 static inline const GraphProto* internal_default_instance() {
2294 return reinterpret_cast<const GraphProto*>(
2295 &_GraphProto_default_instance_);
2296 }
2297 static constexpr int kIndexInFileMessages =
2298 7;
2299
2300 friend void swap(GraphProto& a, GraphProto& b) {
2301 a.Swap(&b);
2302 }
2303 inline void Swap(GraphProto* other) {
2304 if (other == this) return;
2305 if (GetArena() == other->GetArena()) {
2306 InternalSwap(other);
2307 } else {
2308 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2309 }
2310 }
2311 void UnsafeArenaSwap(GraphProto* other) {
2312 if (other == this) return;
2313 GOOGLE_DCHECK(GetArena() == other->GetArena());
2314 InternalSwap(other);
2315 }
2316
2317 // implements Message ----------------------------------------------
2318
2319 inline GraphProto* New() const final {
2320 return CreateMaybeMessage<GraphProto>(nullptr);
2321 }
2322
2323 GraphProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2324 return CreateMaybeMessage<GraphProto>(arena);
2325 }
2326 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2327 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2328 void CopyFrom(const GraphProto& from);
2329 void MergeFrom(const GraphProto& from);
2330 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2331 bool IsInitialized() const final;
2332
2333 size_t ByteSizeLong() const final;
2334 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2335 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
2336 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2337 int GetCachedSize() const final { return _cached_size_.Get(); }
2338
2339 private:
2340 inline void SharedCtor();
2341 inline void SharedDtor();
2342 void SetCachedSize(int size) const final;
2343 void InternalSwap(GraphProto* other);
2344 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2345 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2346 return "onnx_torch.GraphProto";
2347 }
2348 protected:
2349 explicit GraphProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2350 private:
2351 static void ArenaDtor(void* object);
2352 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2353 public:
2354
2355 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2356 private:
2357 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
2358 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
2359 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
2360 }
2361
2362 public:
2363
2364 // nested types ----------------------------------------------------
2365
2366 // accessors -------------------------------------------------------
2367
2368 enum : int {
2369 kNodeFieldNumber = 1,
2370 kInitializerFieldNumber = 5,
2371 kInputFieldNumber = 11,
2372 kOutputFieldNumber = 12,
2373 kValueInfoFieldNumber = 13,
2374 kQuantizationAnnotationFieldNumber = 14,
2375 kSparseInitializerFieldNumber = 15,
2376 kNameFieldNumber = 2,
2377 kDocStringFieldNumber = 10,
2378 };
2379 // repeated .onnx_torch.NodeProto node = 1;
2380 int node_size() const;
2381 private:
2382 int _internal_node_size() const;
2383 public:
2384 void clear_node();
2385 ::onnx_torch::NodeProto* mutable_node(int index);
2386 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >*
2387 mutable_node();
2388 private:
2389 const ::onnx_torch::NodeProto& _internal_node(int index) const;
2390 ::onnx_torch::NodeProto* _internal_add_node();
2391 public:
2392 const ::onnx_torch::NodeProto& node(int index) const;
2393 ::onnx_torch::NodeProto* add_node();
2394 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >&
2395 node() const;
2396
2397 // repeated .onnx_torch.TensorProto initializer = 5;
2398 int initializer_size() const;
2399 private:
2400 int _internal_initializer_size() const;
2401 public:
2402 void clear_initializer();
2403 ::onnx_torch::TensorProto* mutable_initializer(int index);
2404 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >*
2405 mutable_initializer();
2406 private:
2407 const ::onnx_torch::TensorProto& _internal_initializer(int index) const;
2408 ::onnx_torch::TensorProto* _internal_add_initializer();
2409 public:
2410 const ::onnx_torch::TensorProto& initializer(int index) const;
2411 ::onnx_torch::TensorProto* add_initializer();
2412 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >&
2413 initializer() const;
2414
2415 // repeated .onnx_torch.ValueInfoProto input = 11;
2416 int input_size() const;
2417 private:
2418 int _internal_input_size() const;
2419 public:
2420 void clear_input();
2421 ::onnx_torch::ValueInfoProto* mutable_input(int index);
2422 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
2423 mutable_input();
2424 private:
2425 const ::onnx_torch::ValueInfoProto& _internal_input(int index) const;
2426 ::onnx_torch::ValueInfoProto* _internal_add_input();
2427 public:
2428 const ::onnx_torch::ValueInfoProto& input(int index) const;
2429 ::onnx_torch::ValueInfoProto* add_input();
2430 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
2431 input() const;
2432
2433 // repeated .onnx_torch.ValueInfoProto output = 12;
2434 int output_size() const;
2435 private:
2436 int _internal_output_size() const;
2437 public:
2438 void clear_output();
2439 ::onnx_torch::ValueInfoProto* mutable_output(int index);
2440 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
2441 mutable_output();
2442 private:
2443 const ::onnx_torch::ValueInfoProto& _internal_output(int index) const;
2444 ::onnx_torch::ValueInfoProto* _internal_add_output();
2445 public:
2446 const ::onnx_torch::ValueInfoProto& output(int index) const;
2447 ::onnx_torch::ValueInfoProto* add_output();
2448 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
2449 output() const;
2450
2451 // repeated .onnx_torch.ValueInfoProto value_info = 13;
2452 int value_info_size() const;
2453 private:
2454 int _internal_value_info_size() const;
2455 public:
2456 void clear_value_info();
2457 ::onnx_torch::ValueInfoProto* mutable_value_info(int index);
2458 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
2459 mutable_value_info();
2460 private:
2461 const ::onnx_torch::ValueInfoProto& _internal_value_info(int index) const;
2462 ::onnx_torch::ValueInfoProto* _internal_add_value_info();
2463 public:
2464 const ::onnx_torch::ValueInfoProto& value_info(int index) const;
2465 ::onnx_torch::ValueInfoProto* add_value_info();
2466 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
2467 value_info() const;
2468
2469 // repeated .onnx_torch.TensorAnnotation quantization_annotation = 14;
2470 int quantization_annotation_size() const;
2471 private:
2472 int _internal_quantization_annotation_size() const;
2473 public:
2474 void clear_quantization_annotation();
2475 ::onnx_torch::TensorAnnotation* mutable_quantization_annotation(int index);
2476 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorAnnotation >*
2477 mutable_quantization_annotation();
2478 private:
2479 const ::onnx_torch::TensorAnnotation& _internal_quantization_annotation(int index) const;
2480 ::onnx_torch::TensorAnnotation* _internal_add_quantization_annotation();
2481 public:
2482 const ::onnx_torch::TensorAnnotation& quantization_annotation(int index) const;
2483 ::onnx_torch::TensorAnnotation* add_quantization_annotation();
2484 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorAnnotation >&
2485 quantization_annotation() const;
2486
2487 // repeated .onnx_torch.SparseTensorProto sparse_initializer = 15;
2488 int sparse_initializer_size() const;
2489 private:
2490 int _internal_sparse_initializer_size() const;
2491 public:
2492 void clear_sparse_initializer();
2493 ::onnx_torch::SparseTensorProto* mutable_sparse_initializer(int index);
2494 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >*
2495 mutable_sparse_initializer();
2496 private:
2497 const ::onnx_torch::SparseTensorProto& _internal_sparse_initializer(int index) const;
2498 ::onnx_torch::SparseTensorProto* _internal_add_sparse_initializer();
2499 public:
2500 const ::onnx_torch::SparseTensorProto& sparse_initializer(int index) const;
2501 ::onnx_torch::SparseTensorProto* add_sparse_initializer();
2502 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >&
2503 sparse_initializer() const;
2504
2505 // optional string name = 2;
2506 bool has_name() const;
2507 private:
2508 bool _internal_has_name() const;
2509 public:
2510 void clear_name();
2511 const std::string& name() const;
2512 void set_name(const std::string& value);
2513 void set_name(std::string&& value);
2514 void set_name(const char* value);
2515 void set_name(const char* value, size_t size);
2516 std::string* mutable_name();
2517 std::string* release_name();
2518 void set_allocated_name(std::string* name);
2519 private:
2520 const std::string& _internal_name() const;
2521 void _internal_set_name(const std::string& value);
2522 std::string* _internal_mutable_name();
2523 public:
2524
2525 // optional string doc_string = 10;
2526 bool has_doc_string() const;
2527 private:
2528 bool _internal_has_doc_string() const;
2529 public:
2530 void clear_doc_string();
2531 const std::string& doc_string() const;
2532 void set_doc_string(const std::string& value);
2533 void set_doc_string(std::string&& value);
2534 void set_doc_string(const char* value);
2535 void set_doc_string(const char* value, size_t size);
2536 std::string* mutable_doc_string();
2537 std::string* release_doc_string();
2538 void set_allocated_doc_string(std::string* doc_string);
2539 private:
2540 const std::string& _internal_doc_string() const;
2541 void _internal_set_doc_string(const std::string& value);
2542 std::string* _internal_mutable_doc_string();
2543 public:
2544
2545 // @@protoc_insertion_point(class_scope:onnx_torch.GraphProto)
2546 private:
2547 class _Internal;
2548
2549 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2550 typedef void InternalArenaConstructable_;
2551 typedef void DestructorSkippable_;
2552 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2553 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2554 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto > node_;
2555 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto > initializer_;
2556 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto > input_;
2557 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto > output_;
2558 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto > value_info_;
2559 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorAnnotation > quantization_annotation_;
2560 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto > sparse_initializer_;
2561 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
2562 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
2563 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
2564};
2565// -------------------------------------------------------------------
2566
2567class ONNX_API TensorProto_Segment PROTOBUF_FINAL :
2568 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TensorProto.Segment) */ {
2569 public:
2570 inline TensorProto_Segment() : TensorProto_Segment(nullptr) {}
2571 virtual ~TensorProto_Segment();
2572
2573 TensorProto_Segment(const TensorProto_Segment& from);
2574 TensorProto_Segment(TensorProto_Segment&& from) noexcept;
2575
2576 inline TensorProto_Segment& operator=(const TensorProto_Segment& from) {
2577 CopyFrom(from);
2578 return *this;
2579 }
2580 inline TensorProto_Segment& operator=(TensorProto_Segment&& from) noexcept {
2581 if (GetArena() == from.GetArena()) {
2582 if (this != &from) InternalSwap(&from);
2583 } else {
2584 CopyFrom(from);
2585 }
2586 return *this;
2587 }
2588
2589 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2590 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2591 }
2592 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2593 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2594 }
2595
2596 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2597 return GetDescriptor();
2598 }
2599 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2600 return GetMetadataStatic().descriptor;
2601 }
2602 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2603 return GetMetadataStatic().reflection;
2604 }
2605 static const TensorProto_Segment& default_instance();
2606
2607 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2608 static inline const TensorProto_Segment* internal_default_instance() {
2609 return reinterpret_cast<const TensorProto_Segment*>(
2610 &_TensorProto_Segment_default_instance_);
2611 }
2612 static constexpr int kIndexInFileMessages =
2613 8;
2614
2615 friend void swap(TensorProto_Segment& a, TensorProto_Segment& b) {
2616 a.Swap(&b);
2617 }
2618 inline void Swap(TensorProto_Segment* other) {
2619 if (other == this) return;
2620 if (GetArena() == other->GetArena()) {
2621 InternalSwap(other);
2622 } else {
2623 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2624 }
2625 }
2626 void UnsafeArenaSwap(TensorProto_Segment* other) {
2627 if (other == this) return;
2628 GOOGLE_DCHECK(GetArena() == other->GetArena());
2629 InternalSwap(other);
2630 }
2631
2632 // implements Message ----------------------------------------------
2633
2634 inline TensorProto_Segment* New() const final {
2635 return CreateMaybeMessage<TensorProto_Segment>(nullptr);
2636 }
2637
2638 TensorProto_Segment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2639 return CreateMaybeMessage<TensorProto_Segment>(arena);
2640 }
2641 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2642 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2643 void CopyFrom(const TensorProto_Segment& from);
2644 void MergeFrom(const TensorProto_Segment& from);
2645 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2646 bool IsInitialized() const final;
2647
2648 size_t ByteSizeLong() const final;
2649 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2650 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
2651 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2652 int GetCachedSize() const final { return _cached_size_.Get(); }
2653
2654 private:
2655 inline void SharedCtor();
2656 inline void SharedDtor();
2657 void SetCachedSize(int size) const final;
2658 void InternalSwap(TensorProto_Segment* other);
2659 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2660 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2661 return "onnx_torch.TensorProto.Segment";
2662 }
2663 protected:
2664 explicit TensorProto_Segment(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2665 private:
2666 static void ArenaDtor(void* object);
2667 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2668 public:
2669
2670 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2671 private:
2672 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
2673 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
2674 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
2675 }
2676
2677 public:
2678
2679 // nested types ----------------------------------------------------
2680
2681 // accessors -------------------------------------------------------
2682
2683 enum : int {
2684 kBeginFieldNumber = 1,
2685 kEndFieldNumber = 2,
2686 };
2687 // optional int64 begin = 1;
2688 bool has_begin() const;
2689 private:
2690 bool _internal_has_begin() const;
2691 public:
2692 void clear_begin();
2693 ::PROTOBUF_NAMESPACE_ID::int64 begin() const;
2694 void set_begin(::PROTOBUF_NAMESPACE_ID::int64 value);
2695 private:
2696 ::PROTOBUF_NAMESPACE_ID::int64 _internal_begin() const;
2697 void _internal_set_begin(::PROTOBUF_NAMESPACE_ID::int64 value);
2698 public:
2699
2700 // optional int64 end = 2;
2701 bool has_end() const;
2702 private:
2703 bool _internal_has_end() const;
2704 public:
2705 void clear_end();
2706 ::PROTOBUF_NAMESPACE_ID::int64 end() const;
2707 void set_end(::PROTOBUF_NAMESPACE_ID::int64 value);
2708 private:
2709 ::PROTOBUF_NAMESPACE_ID::int64 _internal_end() const;
2710 void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int64 value);
2711 public:
2712
2713 // @@protoc_insertion_point(class_scope:onnx_torch.TensorProto.Segment)
2714 private:
2715 class _Internal;
2716
2717 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2718 typedef void InternalArenaConstructable_;
2719 typedef void DestructorSkippable_;
2720 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2721 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2722 ::PROTOBUF_NAMESPACE_ID::int64 begin_;
2723 ::PROTOBUF_NAMESPACE_ID::int64 end_;
2724 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
2725};
2726// -------------------------------------------------------------------
2727
2728class ONNX_API TensorProto PROTOBUF_FINAL :
2729 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TensorProto) */ {
2730 public:
2731 inline TensorProto() : TensorProto(nullptr) {}
2732 virtual ~TensorProto();
2733
2734 TensorProto(const TensorProto& from);
2735 TensorProto(TensorProto&& from) noexcept;
2736
2737 inline TensorProto& operator=(const TensorProto& from) {
2738 CopyFrom(from);
2739 return *this;
2740 }
2741 inline TensorProto& operator=(TensorProto&& from) noexcept {
2742 if (GetArena() == from.GetArena()) {
2743 if (this != &from) InternalSwap(&from);
2744 } else {
2745 CopyFrom(from);
2746 }
2747 return *this;
2748 }
2749
2750 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
2751 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
2752 }
2753 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
2754 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2755 }
2756
2757 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2758 return GetDescriptor();
2759 }
2760 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2761 return GetMetadataStatic().descriptor;
2762 }
2763 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2764 return GetMetadataStatic().reflection;
2765 }
2766 static const TensorProto& default_instance();
2767
2768 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2769 static inline const TensorProto* internal_default_instance() {
2770 return reinterpret_cast<const TensorProto*>(
2771 &_TensorProto_default_instance_);
2772 }
2773 static constexpr int kIndexInFileMessages =
2774 9;
2775
2776 friend void swap(TensorProto& a, TensorProto& b) {
2777 a.Swap(&b);
2778 }
2779 inline void Swap(TensorProto* other) {
2780 if (other == this) return;
2781 if (GetArena() == other->GetArena()) {
2782 InternalSwap(other);
2783 } else {
2784 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2785 }
2786 }
2787 void UnsafeArenaSwap(TensorProto* other) {
2788 if (other == this) return;
2789 GOOGLE_DCHECK(GetArena() == other->GetArena());
2790 InternalSwap(other);
2791 }
2792
2793 // implements Message ----------------------------------------------
2794
2795 inline TensorProto* New() const final {
2796 return CreateMaybeMessage<TensorProto>(nullptr);
2797 }
2798
2799 TensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2800 return CreateMaybeMessage<TensorProto>(arena);
2801 }
2802 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2803 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
2804 void CopyFrom(const TensorProto& from);
2805 void MergeFrom(const TensorProto& from);
2806 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2807 bool IsInitialized() const final;
2808
2809 size_t ByteSizeLong() const final;
2810 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2811 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
2812 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2813 int GetCachedSize() const final { return _cached_size_.Get(); }
2814
2815 private:
2816 inline void SharedCtor();
2817 inline void SharedDtor();
2818 void SetCachedSize(int size) const final;
2819 void InternalSwap(TensorProto* other);
2820 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2821 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2822 return "onnx_torch.TensorProto";
2823 }
2824 protected:
2825 explicit TensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2826 private:
2827 static void ArenaDtor(void* object);
2828 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
2829 public:
2830
2831 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2832 private:
2833 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
2834 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
2835 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
2836 }
2837
2838 public:
2839
2840 // nested types ----------------------------------------------------
2841
2842 typedef TensorProto_Segment Segment;
2843
2844 typedef TensorProto_DataType DataType;
2845 static constexpr DataType UNDEFINED =
2846 TensorProto_DataType_UNDEFINED;
2847 static constexpr DataType FLOAT =
2848 TensorProto_DataType_FLOAT;
2849 static constexpr DataType UINT8 =
2850 TensorProto_DataType_UINT8;
2851 static constexpr DataType INT8 =
2852 TensorProto_DataType_INT8;
2853 static constexpr DataType UINT16 =
2854 TensorProto_DataType_UINT16;
2855 static constexpr DataType INT16 =
2856 TensorProto_DataType_INT16;
2857 static constexpr DataType INT32 =
2858 TensorProto_DataType_INT32;
2859 static constexpr DataType INT64 =
2860 TensorProto_DataType_INT64;
2861 static constexpr DataType STRING =
2862 TensorProto_DataType_STRING;
2863 static constexpr DataType BOOL =
2864 TensorProto_DataType_BOOL;
2865 static constexpr DataType FLOAT16 =
2866 TensorProto_DataType_FLOAT16;
2867 static constexpr DataType DOUBLE =
2868 TensorProto_DataType_DOUBLE;
2869 static constexpr DataType UINT32 =
2870 TensorProto_DataType_UINT32;
2871 static constexpr DataType UINT64 =
2872 TensorProto_DataType_UINT64;
2873 static constexpr DataType COMPLEX64 =
2874 TensorProto_DataType_COMPLEX64;
2875 static constexpr DataType COMPLEX128 =
2876 TensorProto_DataType_COMPLEX128;
2877 static constexpr DataType BFLOAT16 =
2878 TensorProto_DataType_BFLOAT16;
2879 static inline bool DataType_IsValid(int value) {
2880 return TensorProto_DataType_IsValid(value);
2881 }
2882 static constexpr DataType DataType_MIN =
2883 TensorProto_DataType_DataType_MIN;
2884 static constexpr DataType DataType_MAX =
2885 TensorProto_DataType_DataType_MAX;
2886 static constexpr int DataType_ARRAYSIZE =
2887 TensorProto_DataType_DataType_ARRAYSIZE;
2888 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2889 DataType_descriptor() {
2890 return TensorProto_DataType_descriptor();
2891 }
2892 template<typename T>
2893 static inline const std::string& DataType_Name(T enum_t_value) {
2894 static_assert(::std::is_same<T, DataType>::value ||
2895 ::std::is_integral<T>::value,
2896 "Incorrect type passed to function DataType_Name.");
2897 return TensorProto_DataType_Name(enum_t_value);
2898 }
2899 static inline bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2900 DataType* value) {
2901 return TensorProto_DataType_Parse(name, value);
2902 }
2903
2904 typedef TensorProto_DataLocation DataLocation;
2905 static constexpr DataLocation DEFAULT =
2906 TensorProto_DataLocation_DEFAULT;
2907 static constexpr DataLocation EXTERNAL =
2908 TensorProto_DataLocation_EXTERNAL;
2909 static inline bool DataLocation_IsValid(int value) {
2910 return TensorProto_DataLocation_IsValid(value);
2911 }
2912 static constexpr DataLocation DataLocation_MIN =
2913 TensorProto_DataLocation_DataLocation_MIN;
2914 static constexpr DataLocation DataLocation_MAX =
2915 TensorProto_DataLocation_DataLocation_MAX;
2916 static constexpr int DataLocation_ARRAYSIZE =
2917 TensorProto_DataLocation_DataLocation_ARRAYSIZE;
2918 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2919 DataLocation_descriptor() {
2920 return TensorProto_DataLocation_descriptor();
2921 }
2922 template<typename T>
2923 static inline const std::string& DataLocation_Name(T enum_t_value) {
2924 static_assert(::std::is_same<T, DataLocation>::value ||
2925 ::std::is_integral<T>::value,
2926 "Incorrect type passed to function DataLocation_Name.");
2927 return TensorProto_DataLocation_Name(enum_t_value);
2928 }
2929 static inline bool DataLocation_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2930 DataLocation* value) {
2931 return TensorProto_DataLocation_Parse(name, value);
2932 }
2933
2934 // accessors -------------------------------------------------------
2935
2936 enum : int {
2937 kDimsFieldNumber = 1,
2938 kFloatDataFieldNumber = 4,
2939 kInt32DataFieldNumber = 5,
2940 kStringDataFieldNumber = 6,
2941 kInt64DataFieldNumber = 7,
2942 kDoubleDataFieldNumber = 10,
2943 kUint64DataFieldNumber = 11,
2944 kExternalDataFieldNumber = 13,
2945 kNameFieldNumber = 8,
2946 kRawDataFieldNumber = 9,
2947 kDocStringFieldNumber = 12,
2948 kSegmentFieldNumber = 3,
2949 kDataTypeFieldNumber = 2,
2950 kDataLocationFieldNumber = 14,
2951 };
2952 // repeated int64 dims = 1;
2953 int dims_size() const;
2954 private:
2955 int _internal_dims_size() const;
2956 public:
2957 void clear_dims();
2958 private:
2959 ::PROTOBUF_NAMESPACE_ID::int64 _internal_dims(int index) const;
2960 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
2961 _internal_dims() const;
2962 void _internal_add_dims(::PROTOBUF_NAMESPACE_ID::int64 value);
2963 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
2964 _internal_mutable_dims();
2965 public:
2966 ::PROTOBUF_NAMESPACE_ID::int64 dims(int index) const;
2967 void set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
2968 void add_dims(::PROTOBUF_NAMESPACE_ID::int64 value);
2969 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
2970 dims() const;
2971 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
2972 mutable_dims();
2973
2974 // repeated float float_data = 4 [packed = true];
2975 int float_data_size() const;
2976 private:
2977 int _internal_float_data_size() const;
2978 public:
2979 void clear_float_data();
2980 private:
2981 float _internal_float_data(int index) const;
2982 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
2983 _internal_float_data() const;
2984 void _internal_add_float_data(float value);
2985 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
2986 _internal_mutable_float_data();
2987 public:
2988 float float_data(int index) const;
2989 void set_float_data(int index, float value);
2990 void add_float_data(float value);
2991 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
2992 float_data() const;
2993 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
2994 mutable_float_data();
2995
2996 // repeated int32 int32_data = 5 [packed = true];
2997 int int32_data_size() const;
2998 private:
2999 int _internal_int32_data_size() const;
3000 public:
3001 void clear_int32_data();
3002 private:
3003 ::PROTOBUF_NAMESPACE_ID::int32 _internal_int32_data(int index) const;
3004 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
3005 _internal_int32_data() const;
3006 void _internal_add_int32_data(::PROTOBUF_NAMESPACE_ID::int32 value);
3007 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
3008 _internal_mutable_int32_data();
3009 public:
3010 ::PROTOBUF_NAMESPACE_ID::int32 int32_data(int index) const;
3011 void set_int32_data(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
3012 void add_int32_data(::PROTOBUF_NAMESPACE_ID::int32 value);
3013 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
3014 int32_data() const;
3015 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
3016 mutable_int32_data();
3017
3018 // repeated bytes string_data = 6;
3019 int string_data_size() const;
3020 private:
3021 int _internal_string_data_size() const;
3022 public:
3023 void clear_string_data();
3024 const std::string& string_data(int index) const;
3025 std::string* mutable_string_data(int index);
3026 void set_string_data(int index, const std::string& value);
3027 void set_string_data(int index, std::string&& value);
3028 void set_string_data(int index, const char* value);
3029 void set_string_data(int index, const void* value, size_t size);
3030 std::string* add_string_data();
3031 void add_string_data(const std::string& value);
3032 void add_string_data(std::string&& value);
3033 void add_string_data(const char* value);
3034 void add_string_data(const void* value, size_t size);
3035 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& string_data() const;
3036 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_string_data();
3037 private:
3038 const std::string& _internal_string_data(int index) const;
3039 std::string* _internal_add_string_data();
3040 public:
3041
3042 // repeated int64 int64_data = 7 [packed = true];
3043 int int64_data_size() const;
3044 private:
3045 int _internal_int64_data_size() const;
3046 public:
3047 void clear_int64_data();
3048 private:
3049 ::PROTOBUF_NAMESPACE_ID::int64 _internal_int64_data(int index) const;
3050 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
3051 _internal_int64_data() const;
3052 void _internal_add_int64_data(::PROTOBUF_NAMESPACE_ID::int64 value);
3053 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
3054 _internal_mutable_int64_data();
3055 public:
3056 ::PROTOBUF_NAMESPACE_ID::int64 int64_data(int index) const;
3057 void set_int64_data(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
3058 void add_int64_data(::PROTOBUF_NAMESPACE_ID::int64 value);
3059 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
3060 int64_data() const;
3061 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
3062 mutable_int64_data();
3063
3064 // repeated double double_data = 10 [packed = true];
3065 int double_data_size() const;
3066 private:
3067 int _internal_double_data_size() const;
3068 public:
3069 void clear_double_data();
3070 private:
3071 double _internal_double_data(int index) const;
3072 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
3073 _internal_double_data() const;
3074 void _internal_add_double_data(double value);
3075 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
3076 _internal_mutable_double_data();
3077 public:
3078 double double_data(int index) const;
3079 void set_double_data(int index, double value);
3080 void add_double_data(double value);
3081 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
3082 double_data() const;
3083 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
3084 mutable_double_data();
3085
3086 // repeated uint64 uint64_data = 11 [packed = true];
3087 int uint64_data_size() const;
3088 private:
3089 int _internal_uint64_data_size() const;
3090 public:
3091 void clear_uint64_data();
3092 private:
3093 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_uint64_data(int index) const;
3094 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >&
3095 _internal_uint64_data() const;
3096 void _internal_add_uint64_data(::PROTOBUF_NAMESPACE_ID::uint64 value);
3097 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >*
3098 _internal_mutable_uint64_data();
3099 public:
3100 ::PROTOBUF_NAMESPACE_ID::uint64 uint64_data(int index) const;
3101 void set_uint64_data(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value);
3102 void add_uint64_data(::PROTOBUF_NAMESPACE_ID::uint64 value);
3103 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >&
3104 uint64_data() const;
3105 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >*
3106 mutable_uint64_data();
3107
3108 // repeated .onnx_torch.StringStringEntryProto external_data = 13;
3109 int external_data_size() const;
3110 private:
3111 int _internal_external_data_size() const;
3112 public:
3113 void clear_external_data();
3114 ::onnx_torch::StringStringEntryProto* mutable_external_data(int index);
3115 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
3116 mutable_external_data();
3117 private:
3118 const ::onnx_torch::StringStringEntryProto& _internal_external_data(int index) const;
3119 ::onnx_torch::StringStringEntryProto* _internal_add_external_data();
3120 public:
3121 const ::onnx_torch::StringStringEntryProto& external_data(int index) const;
3122 ::onnx_torch::StringStringEntryProto* add_external_data();
3123 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
3124 external_data() const;
3125
3126 // optional string name = 8;
3127 bool has_name() const;
3128 private:
3129 bool _internal_has_name() const;
3130 public:
3131 void clear_name();
3132 const std::string& name() const;
3133 void set_name(const std::string& value);
3134 void set_name(std::string&& value);
3135 void set_name(const char* value);
3136 void set_name(const char* value, size_t size);
3137 std::string* mutable_name();
3138 std::string* release_name();
3139 void set_allocated_name(std::string* name);
3140 private:
3141 const std::string& _internal_name() const;
3142 void _internal_set_name(const std::string& value);
3143 std::string* _internal_mutable_name();
3144 public:
3145
3146 // optional bytes raw_data = 9;
3147 bool has_raw_data() const;
3148 private:
3149 bool _internal_has_raw_data() const;
3150 public:
3151 void clear_raw_data();
3152 const std::string& raw_data() const;
3153 void set_raw_data(const std::string& value);
3154 void set_raw_data(std::string&& value);
3155 void set_raw_data(const char* value);
3156 void set_raw_data(const void* value, size_t size);
3157 std::string* mutable_raw_data();
3158 std::string* release_raw_data();
3159 void set_allocated_raw_data(std::string* raw_data);
3160 private:
3161 const std::string& _internal_raw_data() const;
3162 void _internal_set_raw_data(const std::string& value);
3163 std::string* _internal_mutable_raw_data();
3164 public:
3165
3166 // optional string doc_string = 12;
3167 bool has_doc_string() const;
3168 private:
3169 bool _internal_has_doc_string() const;
3170 public:
3171 void clear_doc_string();
3172 const std::string& doc_string() const;
3173 void set_doc_string(const std::string& value);
3174 void set_doc_string(std::string&& value);
3175 void set_doc_string(const char* value);
3176 void set_doc_string(const char* value, size_t size);
3177 std::string* mutable_doc_string();
3178 std::string* release_doc_string();
3179 void set_allocated_doc_string(std::string* doc_string);
3180 private:
3181 const std::string& _internal_doc_string() const;
3182 void _internal_set_doc_string(const std::string& value);
3183 std::string* _internal_mutable_doc_string();
3184 public:
3185
3186 // optional .onnx_torch.TensorProto.Segment segment = 3;
3187 bool has_segment() const;
3188 private:
3189 bool _internal_has_segment() const;
3190 public:
3191 void clear_segment();
3192 const ::onnx_torch::TensorProto_Segment& segment() const;
3193 ::onnx_torch::TensorProto_Segment* release_segment();
3194 ::onnx_torch::TensorProto_Segment* mutable_segment();
3195 void set_allocated_segment(::onnx_torch::TensorProto_Segment* segment);
3196 private:
3197 const ::onnx_torch::TensorProto_Segment& _internal_segment() const;
3198 ::onnx_torch::TensorProto_Segment* _internal_mutable_segment();
3199 public:
3200 void unsafe_arena_set_allocated_segment(
3201 ::onnx_torch::TensorProto_Segment* segment);
3202 ::onnx_torch::TensorProto_Segment* unsafe_arena_release_segment();
3203
3204 // optional int32 data_type = 2;
3205 bool has_data_type() const;
3206 private:
3207 bool _internal_has_data_type() const;
3208 public:
3209 void clear_data_type();
3210 ::PROTOBUF_NAMESPACE_ID::int32 data_type() const;
3211 void set_data_type(::PROTOBUF_NAMESPACE_ID::int32 value);
3212 private:
3213 ::PROTOBUF_NAMESPACE_ID::int32 _internal_data_type() const;
3214 void _internal_set_data_type(::PROTOBUF_NAMESPACE_ID::int32 value);
3215 public:
3216
3217 // optional .onnx_torch.TensorProto.DataLocation data_location = 14;
3218 bool has_data_location() const;
3219 private:
3220 bool _internal_has_data_location() const;
3221 public:
3222 void clear_data_location();
3223 ::onnx_torch::TensorProto_DataLocation data_location() const;
3224 void set_data_location(::onnx_torch::TensorProto_DataLocation value);
3225 private:
3226 ::onnx_torch::TensorProto_DataLocation _internal_data_location() const;
3227 void _internal_set_data_location(::onnx_torch::TensorProto_DataLocation value);
3228 public:
3229
3230 // @@protoc_insertion_point(class_scope:onnx_torch.TensorProto)
3231 private:
3232 class _Internal;
3233
3234 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3235 typedef void InternalArenaConstructable_;
3236 typedef void DestructorSkippable_;
3237 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3238 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3239 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > dims_;
3240 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_;
3241 mutable std::atomic<int> _float_data_cached_byte_size_;
3242 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > int32_data_;
3243 mutable std::atomic<int> _int32_data_cached_byte_size_;
3244 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> string_data_;
3245 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > int64_data_;
3246 mutable std::atomic<int> _int64_data_cached_byte_size_;
3247 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_data_;
3248 mutable std::atomic<int> _double_data_cached_byte_size_;
3249 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 > uint64_data_;
3250 mutable std::atomic<int> _uint64_data_cached_byte_size_;
3251 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto > external_data_;
3252 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
3253 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_data_;
3254 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
3255 ::onnx_torch::TensorProto_Segment* segment_;
3256 ::PROTOBUF_NAMESPACE_ID::int32 data_type_;
3257 int data_location_;
3258 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
3259};
3260// -------------------------------------------------------------------
3261
3262class ONNX_API SparseTensorProto PROTOBUF_FINAL :
3263 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.SparseTensorProto) */ {
3264 public:
3265 inline SparseTensorProto() : SparseTensorProto(nullptr) {}
3266 virtual ~SparseTensorProto();
3267
3268 SparseTensorProto(const SparseTensorProto& from);
3269 SparseTensorProto(SparseTensorProto&& from) noexcept;
3270
3271 inline SparseTensorProto& operator=(const SparseTensorProto& from) {
3272 CopyFrom(from);
3273 return *this;
3274 }
3275 inline SparseTensorProto& operator=(SparseTensorProto&& from) noexcept {
3276 if (GetArena() == from.GetArena()) {
3277 if (this != &from) InternalSwap(&from);
3278 } else {
3279 CopyFrom(from);
3280 }
3281 return *this;
3282 }
3283
3284 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3285 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3286 }
3287 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3288 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3289 }
3290
3291 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3292 return GetDescriptor();
3293 }
3294 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3295 return GetMetadataStatic().descriptor;
3296 }
3297 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3298 return GetMetadataStatic().reflection;
3299 }
3300 static const SparseTensorProto& default_instance();
3301
3302 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
3303 static inline const SparseTensorProto* internal_default_instance() {
3304 return reinterpret_cast<const SparseTensorProto*>(
3305 &_SparseTensorProto_default_instance_);
3306 }
3307 static constexpr int kIndexInFileMessages =
3308 10;
3309
3310 friend void swap(SparseTensorProto& a, SparseTensorProto& b) {
3311 a.Swap(&b);
3312 }
3313 inline void Swap(SparseTensorProto* other) {
3314 if (other == this) return;
3315 if (GetArena() == other->GetArena()) {
3316 InternalSwap(other);
3317 } else {
3318 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3319 }
3320 }
3321 void UnsafeArenaSwap(SparseTensorProto* other) {
3322 if (other == this) return;
3323 GOOGLE_DCHECK(GetArena() == other->GetArena());
3324 InternalSwap(other);
3325 }
3326
3327 // implements Message ----------------------------------------------
3328
3329 inline SparseTensorProto* New() const final {
3330 return CreateMaybeMessage<SparseTensorProto>(nullptr);
3331 }
3332
3333 SparseTensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3334 return CreateMaybeMessage<SparseTensorProto>(arena);
3335 }
3336 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3337 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3338 void CopyFrom(const SparseTensorProto& from);
3339 void MergeFrom(const SparseTensorProto& from);
3340 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3341 bool IsInitialized() const final;
3342
3343 size_t ByteSizeLong() const final;
3344 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3345 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
3346 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3347 int GetCachedSize() const final { return _cached_size_.Get(); }
3348
3349 private:
3350 inline void SharedCtor();
3351 inline void SharedDtor();
3352 void SetCachedSize(int size) const final;
3353 void InternalSwap(SparseTensorProto* other);
3354 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3355 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3356 return "onnx_torch.SparseTensorProto";
3357 }
3358 protected:
3359 explicit SparseTensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3360 private:
3361 static void ArenaDtor(void* object);
3362 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3363 public:
3364
3365 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3366 private:
3367 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
3368 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
3369 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
3370 }
3371
3372 public:
3373
3374 // nested types ----------------------------------------------------
3375
3376 // accessors -------------------------------------------------------
3377
3378 enum : int {
3379 kDimsFieldNumber = 3,
3380 kValuesFieldNumber = 1,
3381 kIndicesFieldNumber = 2,
3382 };
3383 // repeated int64 dims = 3;
3384 int dims_size() const;
3385 private:
3386 int _internal_dims_size() const;
3387 public:
3388 void clear_dims();
3389 private:
3390 ::PROTOBUF_NAMESPACE_ID::int64 _internal_dims(int index) const;
3391 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
3392 _internal_dims() const;
3393 void _internal_add_dims(::PROTOBUF_NAMESPACE_ID::int64 value);
3394 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
3395 _internal_mutable_dims();
3396 public:
3397 ::PROTOBUF_NAMESPACE_ID::int64 dims(int index) const;
3398 void set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
3399 void add_dims(::PROTOBUF_NAMESPACE_ID::int64 value);
3400 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
3401 dims() const;
3402 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
3403 mutable_dims();
3404
3405 // optional .onnx_torch.TensorProto values = 1;
3406 bool has_values() const;
3407 private:
3408 bool _internal_has_values() const;
3409 public:
3410 void clear_values();
3411 const ::onnx_torch::TensorProto& values() const;
3412 ::onnx_torch::TensorProto* release_values();
3413 ::onnx_torch::TensorProto* mutable_values();
3414 void set_allocated_values(::onnx_torch::TensorProto* values);
3415 private:
3416 const ::onnx_torch::TensorProto& _internal_values() const;
3417 ::onnx_torch::TensorProto* _internal_mutable_values();
3418 public:
3419 void unsafe_arena_set_allocated_values(
3420 ::onnx_torch::TensorProto* values);
3421 ::onnx_torch::TensorProto* unsafe_arena_release_values();
3422
3423 // optional .onnx_torch.TensorProto indices = 2;
3424 bool has_indices() const;
3425 private:
3426 bool _internal_has_indices() const;
3427 public:
3428 void clear_indices();
3429 const ::onnx_torch::TensorProto& indices() const;
3430 ::onnx_torch::TensorProto* release_indices();
3431 ::onnx_torch::TensorProto* mutable_indices();
3432 void set_allocated_indices(::onnx_torch::TensorProto* indices);
3433 private:
3434 const ::onnx_torch::TensorProto& _internal_indices() const;
3435 ::onnx_torch::TensorProto* _internal_mutable_indices();
3436 public:
3437 void unsafe_arena_set_allocated_indices(
3438 ::onnx_torch::TensorProto* indices);
3439 ::onnx_torch::TensorProto* unsafe_arena_release_indices();
3440
3441 // @@protoc_insertion_point(class_scope:onnx_torch.SparseTensorProto)
3442 private:
3443 class _Internal;
3444
3445 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3446 typedef void InternalArenaConstructable_;
3447 typedef void DestructorSkippable_;
3448 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3449 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3450 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > dims_;
3451 ::onnx_torch::TensorProto* values_;
3452 ::onnx_torch::TensorProto* indices_;
3453 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
3454};
3455// -------------------------------------------------------------------
3456
3457class ONNX_API TensorShapeProto_Dimension PROTOBUF_FINAL :
3458 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TensorShapeProto.Dimension) */ {
3459 public:
3460 inline TensorShapeProto_Dimension() : TensorShapeProto_Dimension(nullptr) {}
3461 virtual ~TensorShapeProto_Dimension();
3462
3463 TensorShapeProto_Dimension(const TensorShapeProto_Dimension& from);
3464 TensorShapeProto_Dimension(TensorShapeProto_Dimension&& from) noexcept;
3465
3466 inline TensorShapeProto_Dimension& operator=(const TensorShapeProto_Dimension& from) {
3467 CopyFrom(from);
3468 return *this;
3469 }
3470 inline TensorShapeProto_Dimension& operator=(TensorShapeProto_Dimension&& from) noexcept {
3471 if (GetArena() == from.GetArena()) {
3472 if (this != &from) InternalSwap(&from);
3473 } else {
3474 CopyFrom(from);
3475 }
3476 return *this;
3477 }
3478
3479 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3480 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3481 }
3482 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3483 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3484 }
3485
3486 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3487 return GetDescriptor();
3488 }
3489 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3490 return GetMetadataStatic().descriptor;
3491 }
3492 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3493 return GetMetadataStatic().reflection;
3494 }
3495 static const TensorShapeProto_Dimension& default_instance();
3496
3497 enum ValueCase {
3498 kDimValue = 1,
3499 kDimParam = 2,
3500 VALUE_NOT_SET = 0,
3501 };
3502
3503 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
3504 static inline const TensorShapeProto_Dimension* internal_default_instance() {
3505 return reinterpret_cast<const TensorShapeProto_Dimension*>(
3506 &_TensorShapeProto_Dimension_default_instance_);
3507 }
3508 static constexpr int kIndexInFileMessages =
3509 11;
3510
3511 friend void swap(TensorShapeProto_Dimension& a, TensorShapeProto_Dimension& b) {
3512 a.Swap(&b);
3513 }
3514 inline void Swap(TensorShapeProto_Dimension* other) {
3515 if (other == this) return;
3516 if (GetArena() == other->GetArena()) {
3517 InternalSwap(other);
3518 } else {
3519 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3520 }
3521 }
3522 void UnsafeArenaSwap(TensorShapeProto_Dimension* other) {
3523 if (other == this) return;
3524 GOOGLE_DCHECK(GetArena() == other->GetArena());
3525 InternalSwap(other);
3526 }
3527
3528 // implements Message ----------------------------------------------
3529
3530 inline TensorShapeProto_Dimension* New() const final {
3531 return CreateMaybeMessage<TensorShapeProto_Dimension>(nullptr);
3532 }
3533
3534 TensorShapeProto_Dimension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3535 return CreateMaybeMessage<TensorShapeProto_Dimension>(arena);
3536 }
3537 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3538 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3539 void CopyFrom(const TensorShapeProto_Dimension& from);
3540 void MergeFrom(const TensorShapeProto_Dimension& from);
3541 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3542 bool IsInitialized() const final;
3543
3544 size_t ByteSizeLong() const final;
3545 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3546 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
3547 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3548 int GetCachedSize() const final { return _cached_size_.Get(); }
3549
3550 private:
3551 inline void SharedCtor();
3552 inline void SharedDtor();
3553 void SetCachedSize(int size) const final;
3554 void InternalSwap(TensorShapeProto_Dimension* other);
3555 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3556 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3557 return "onnx_torch.TensorShapeProto.Dimension";
3558 }
3559 protected:
3560 explicit TensorShapeProto_Dimension(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3561 private:
3562 static void ArenaDtor(void* object);
3563 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3564 public:
3565
3566 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3567 private:
3568 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
3569 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
3570 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
3571 }
3572
3573 public:
3574
3575 // nested types ----------------------------------------------------
3576
3577 // accessors -------------------------------------------------------
3578
3579 enum : int {
3580 kDenotationFieldNumber = 3,
3581 kDimValueFieldNumber = 1,
3582 kDimParamFieldNumber = 2,
3583 };
3584 // optional string denotation = 3;
3585 bool has_denotation() const;
3586 private:
3587 bool _internal_has_denotation() const;
3588 public:
3589 void clear_denotation();
3590 const std::string& denotation() const;
3591 void set_denotation(const std::string& value);
3592 void set_denotation(std::string&& value);
3593 void set_denotation(const char* value);
3594 void set_denotation(const char* value, size_t size);
3595 std::string* mutable_denotation();
3596 std::string* release_denotation();
3597 void set_allocated_denotation(std::string* denotation);
3598 private:
3599 const std::string& _internal_denotation() const;
3600 void _internal_set_denotation(const std::string& value);
3601 std::string* _internal_mutable_denotation();
3602 public:
3603
3604 // int64 dim_value = 1;
3605 bool has_dim_value() const;
3606 private:
3607 bool _internal_has_dim_value() const;
3608 public:
3609 void clear_dim_value();
3610 ::PROTOBUF_NAMESPACE_ID::int64 dim_value() const;
3611 void set_dim_value(::PROTOBUF_NAMESPACE_ID::int64 value);
3612 private:
3613 ::PROTOBUF_NAMESPACE_ID::int64 _internal_dim_value() const;
3614 void _internal_set_dim_value(::PROTOBUF_NAMESPACE_ID::int64 value);
3615 public:
3616
3617 // string dim_param = 2;
3618 bool has_dim_param() const;
3619 private:
3620 bool _internal_has_dim_param() const;
3621 public:
3622 void clear_dim_param();
3623 const std::string& dim_param() const;
3624 void set_dim_param(const std::string& value);
3625 void set_dim_param(std::string&& value);
3626 void set_dim_param(const char* value);
3627 void set_dim_param(const char* value, size_t size);
3628 std::string* mutable_dim_param();
3629 std::string* release_dim_param();
3630 void set_allocated_dim_param(std::string* dim_param);
3631 private:
3632 const std::string& _internal_dim_param() const;
3633 void _internal_set_dim_param(const std::string& value);
3634 std::string* _internal_mutable_dim_param();
3635 public:
3636
3637 void clear_value();
3638 ValueCase value_case() const;
3639 // @@protoc_insertion_point(class_scope:onnx_torch.TensorShapeProto.Dimension)
3640 private:
3641 class _Internal;
3642 void set_has_dim_value();
3643 void set_has_dim_param();
3644
3645 inline bool has_value() const;
3646 inline void clear_has_value();
3647
3648 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3649 typedef void InternalArenaConstructable_;
3650 typedef void DestructorSkippable_;
3651 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3652 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3653 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
3654 union ValueUnion {
3655 ValueUnion() {}
3656 ::PROTOBUF_NAMESPACE_ID::int64 dim_value_;
3657 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dim_param_;
3658 } value_;
3659 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
3660
3661 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
3662};
3663// -------------------------------------------------------------------
3664
3665class ONNX_API TensorShapeProto PROTOBUF_FINAL :
3666 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TensorShapeProto) */ {
3667 public:
3668 inline TensorShapeProto() : TensorShapeProto(nullptr) {}
3669 virtual ~TensorShapeProto();
3670
3671 TensorShapeProto(const TensorShapeProto& from);
3672 TensorShapeProto(TensorShapeProto&& from) noexcept;
3673
3674 inline TensorShapeProto& operator=(const TensorShapeProto& from) {
3675 CopyFrom(from);
3676 return *this;
3677 }
3678 inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {
3679 if (GetArena() == from.GetArena()) {
3680 if (this != &from) InternalSwap(&from);
3681 } else {
3682 CopyFrom(from);
3683 }
3684 return *this;
3685 }
3686
3687 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3688 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3689 }
3690 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3691 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3692 }
3693
3694 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3695 return GetDescriptor();
3696 }
3697 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3698 return GetMetadataStatic().descriptor;
3699 }
3700 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3701 return GetMetadataStatic().reflection;
3702 }
3703 static const TensorShapeProto& default_instance();
3704
3705 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
3706 static inline const TensorShapeProto* internal_default_instance() {
3707 return reinterpret_cast<const TensorShapeProto*>(
3708 &_TensorShapeProto_default_instance_);
3709 }
3710 static constexpr int kIndexInFileMessages =
3711 12;
3712
3713 friend void swap(TensorShapeProto& a, TensorShapeProto& b) {
3714 a.Swap(&b);
3715 }
3716 inline void Swap(TensorShapeProto* other) {
3717 if (other == this) return;
3718 if (GetArena() == other->GetArena()) {
3719 InternalSwap(other);
3720 } else {
3721 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3722 }
3723 }
3724 void UnsafeArenaSwap(TensorShapeProto* other) {
3725 if (other == this) return;
3726 GOOGLE_DCHECK(GetArena() == other->GetArena());
3727 InternalSwap(other);
3728 }
3729
3730 // implements Message ----------------------------------------------
3731
3732 inline TensorShapeProto* New() const final {
3733 return CreateMaybeMessage<TensorShapeProto>(nullptr);
3734 }
3735
3736 TensorShapeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3737 return CreateMaybeMessage<TensorShapeProto>(arena);
3738 }
3739 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3740 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3741 void CopyFrom(const TensorShapeProto& from);
3742 void MergeFrom(const TensorShapeProto& from);
3743 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3744 bool IsInitialized() const final;
3745
3746 size_t ByteSizeLong() const final;
3747 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3748 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
3749 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3750 int GetCachedSize() const final { return _cached_size_.Get(); }
3751
3752 private:
3753 inline void SharedCtor();
3754 inline void SharedDtor();
3755 void SetCachedSize(int size) const final;
3756 void InternalSwap(TensorShapeProto* other);
3757 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3758 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3759 return "onnx_torch.TensorShapeProto";
3760 }
3761 protected:
3762 explicit TensorShapeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3763 private:
3764 static void ArenaDtor(void* object);
3765 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3766 public:
3767
3768 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3769 private:
3770 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
3771 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
3772 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
3773 }
3774
3775 public:
3776
3777 // nested types ----------------------------------------------------
3778
3779 typedef TensorShapeProto_Dimension Dimension;
3780
3781 // accessors -------------------------------------------------------
3782
3783 enum : int {
3784 kDimFieldNumber = 1,
3785 };
3786 // repeated .onnx_torch.TensorShapeProto.Dimension dim = 1;
3787 int dim_size() const;
3788 private:
3789 int _internal_dim_size() const;
3790 public:
3791 void clear_dim();
3792 ::onnx_torch::TensorShapeProto_Dimension* mutable_dim(int index);
3793 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorShapeProto_Dimension >*
3794 mutable_dim();
3795 private:
3796 const ::onnx_torch::TensorShapeProto_Dimension& _internal_dim(int index) const;
3797 ::onnx_torch::TensorShapeProto_Dimension* _internal_add_dim();
3798 public:
3799 const ::onnx_torch::TensorShapeProto_Dimension& dim(int index) const;
3800 ::onnx_torch::TensorShapeProto_Dimension* add_dim();
3801 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorShapeProto_Dimension >&
3802 dim() const;
3803
3804 // @@protoc_insertion_point(class_scope:onnx_torch.TensorShapeProto)
3805 private:
3806 class _Internal;
3807
3808 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3809 typedef void InternalArenaConstructable_;
3810 typedef void DestructorSkippable_;
3811 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorShapeProto_Dimension > dim_;
3812 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3813 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
3814};
3815// -------------------------------------------------------------------
3816
3817class ONNX_API TypeProto_Tensor PROTOBUF_FINAL :
3818 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.Tensor) */ {
3819 public:
3820 inline TypeProto_Tensor() : TypeProto_Tensor(nullptr) {}
3821 virtual ~TypeProto_Tensor();
3822
3823 TypeProto_Tensor(const TypeProto_Tensor& from);
3824 TypeProto_Tensor(TypeProto_Tensor&& from) noexcept;
3825
3826 inline TypeProto_Tensor& operator=(const TypeProto_Tensor& from) {
3827 CopyFrom(from);
3828 return *this;
3829 }
3830 inline TypeProto_Tensor& operator=(TypeProto_Tensor&& from) noexcept {
3831 if (GetArena() == from.GetArena()) {
3832 if (this != &from) InternalSwap(&from);
3833 } else {
3834 CopyFrom(from);
3835 }
3836 return *this;
3837 }
3838
3839 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
3840 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
3841 }
3842 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
3843 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3844 }
3845
3846 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3847 return GetDescriptor();
3848 }
3849 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3850 return GetMetadataStatic().descriptor;
3851 }
3852 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3853 return GetMetadataStatic().reflection;
3854 }
3855 static const TypeProto_Tensor& default_instance();
3856
3857 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
3858 static inline const TypeProto_Tensor* internal_default_instance() {
3859 return reinterpret_cast<const TypeProto_Tensor*>(
3860 &_TypeProto_Tensor_default_instance_);
3861 }
3862 static constexpr int kIndexInFileMessages =
3863 13;
3864
3865 friend void swap(TypeProto_Tensor& a, TypeProto_Tensor& b) {
3866 a.Swap(&b);
3867 }
3868 inline void Swap(TypeProto_Tensor* other) {
3869 if (other == this) return;
3870 if (GetArena() == other->GetArena()) {
3871 InternalSwap(other);
3872 } else {
3873 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3874 }
3875 }
3876 void UnsafeArenaSwap(TypeProto_Tensor* other) {
3877 if (other == this) return;
3878 GOOGLE_DCHECK(GetArena() == other->GetArena());
3879 InternalSwap(other);
3880 }
3881
3882 // implements Message ----------------------------------------------
3883
3884 inline TypeProto_Tensor* New() const final {
3885 return CreateMaybeMessage<TypeProto_Tensor>(nullptr);
3886 }
3887
3888 TypeProto_Tensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3889 return CreateMaybeMessage<TypeProto_Tensor>(arena);
3890 }
3891 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3892 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
3893 void CopyFrom(const TypeProto_Tensor& from);
3894 void MergeFrom(const TypeProto_Tensor& from);
3895 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3896 bool IsInitialized() const final;
3897
3898 size_t ByteSizeLong() const final;
3899 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3900 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
3901 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3902 int GetCachedSize() const final { return _cached_size_.Get(); }
3903
3904 private:
3905 inline void SharedCtor();
3906 inline void SharedDtor();
3907 void SetCachedSize(int size) const final;
3908 void InternalSwap(TypeProto_Tensor* other);
3909 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3910 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3911 return "onnx_torch.TypeProto.Tensor";
3912 }
3913 protected:
3914 explicit TypeProto_Tensor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3915 private:
3916 static void ArenaDtor(void* object);
3917 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
3918 public:
3919
3920 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3921 private:
3922 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
3923 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
3924 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
3925 }
3926
3927 public:
3928
3929 // nested types ----------------------------------------------------
3930
3931 // accessors -------------------------------------------------------
3932
3933 enum : int {
3934 kShapeFieldNumber = 2,
3935 kElemTypeFieldNumber = 1,
3936 };
3937 // optional .onnx_torch.TensorShapeProto shape = 2;
3938 bool has_shape() const;
3939 private:
3940 bool _internal_has_shape() const;
3941 public:
3942 void clear_shape();
3943 const ::onnx_torch::TensorShapeProto& shape() const;
3944 ::onnx_torch::TensorShapeProto* release_shape();
3945 ::onnx_torch::TensorShapeProto* mutable_shape();
3946 void set_allocated_shape(::onnx_torch::TensorShapeProto* shape);
3947 private:
3948 const ::onnx_torch::TensorShapeProto& _internal_shape() const;
3949 ::onnx_torch::TensorShapeProto* _internal_mutable_shape();
3950 public:
3951 void unsafe_arena_set_allocated_shape(
3952 ::onnx_torch::TensorShapeProto* shape);
3953 ::onnx_torch::TensorShapeProto* unsafe_arena_release_shape();
3954
3955 // optional int32 elem_type = 1;
3956 bool has_elem_type() const;
3957 private:
3958 bool _internal_has_elem_type() const;
3959 public:
3960 void clear_elem_type();
3961 ::PROTOBUF_NAMESPACE_ID::int32 elem_type() const;
3962 void set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value);
3963 private:
3964 ::PROTOBUF_NAMESPACE_ID::int32 _internal_elem_type() const;
3965 void _internal_set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value);
3966 public:
3967
3968 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.Tensor)
3969 private:
3970 class _Internal;
3971
3972 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3973 typedef void InternalArenaConstructable_;
3974 typedef void DestructorSkippable_;
3975 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
3976 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3977 ::onnx_torch::TensorShapeProto* shape_;
3978 ::PROTOBUF_NAMESPACE_ID::int32 elem_type_;
3979 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
3980};
3981// -------------------------------------------------------------------
3982
3983class ONNX_API TypeProto_Sequence PROTOBUF_FINAL :
3984 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.Sequence) */ {
3985 public:
3986 inline TypeProto_Sequence() : TypeProto_Sequence(nullptr) {}
3987 virtual ~TypeProto_Sequence();
3988
3989 TypeProto_Sequence(const TypeProto_Sequence& from);
3990 TypeProto_Sequence(TypeProto_Sequence&& from) noexcept;
3991
3992 inline TypeProto_Sequence& operator=(const TypeProto_Sequence& from) {
3993 CopyFrom(from);
3994 return *this;
3995 }
3996 inline TypeProto_Sequence& operator=(TypeProto_Sequence&& from) noexcept {
3997 if (GetArena() == from.GetArena()) {
3998 if (this != &from) InternalSwap(&from);
3999 } else {
4000 CopyFrom(from);
4001 }
4002 return *this;
4003 }
4004
4005 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4006 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4007 }
4008 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4009 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4010 }
4011
4012 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4013 return GetDescriptor();
4014 }
4015 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4016 return GetMetadataStatic().descriptor;
4017 }
4018 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4019 return GetMetadataStatic().reflection;
4020 }
4021 static const TypeProto_Sequence& default_instance();
4022
4023 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4024 static inline const TypeProto_Sequence* internal_default_instance() {
4025 return reinterpret_cast<const TypeProto_Sequence*>(
4026 &_TypeProto_Sequence_default_instance_);
4027 }
4028 static constexpr int kIndexInFileMessages =
4029 14;
4030
4031 friend void swap(TypeProto_Sequence& a, TypeProto_Sequence& b) {
4032 a.Swap(&b);
4033 }
4034 inline void Swap(TypeProto_Sequence* other) {
4035 if (other == this) return;
4036 if (GetArena() == other->GetArena()) {
4037 InternalSwap(other);
4038 } else {
4039 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4040 }
4041 }
4042 void UnsafeArenaSwap(TypeProto_Sequence* other) {
4043 if (other == this) return;
4044 GOOGLE_DCHECK(GetArena() == other->GetArena());
4045 InternalSwap(other);
4046 }
4047
4048 // implements Message ----------------------------------------------
4049
4050 inline TypeProto_Sequence* New() const final {
4051 return CreateMaybeMessage<TypeProto_Sequence>(nullptr);
4052 }
4053
4054 TypeProto_Sequence* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4055 return CreateMaybeMessage<TypeProto_Sequence>(arena);
4056 }
4057 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4058 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4059 void CopyFrom(const TypeProto_Sequence& from);
4060 void MergeFrom(const TypeProto_Sequence& from);
4061 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4062 bool IsInitialized() const final;
4063
4064 size_t ByteSizeLong() const final;
4065 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4066 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4067 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4068 int GetCachedSize() const final { return _cached_size_.Get(); }
4069
4070 private:
4071 inline void SharedCtor();
4072 inline void SharedDtor();
4073 void SetCachedSize(int size) const final;
4074 void InternalSwap(TypeProto_Sequence* other);
4075 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4076 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4077 return "onnx_torch.TypeProto.Sequence";
4078 }
4079 protected:
4080 explicit TypeProto_Sequence(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4081 private:
4082 static void ArenaDtor(void* object);
4083 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4084 public:
4085
4086 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4087 private:
4088 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4089 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4090 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4091 }
4092
4093 public:
4094
4095 // nested types ----------------------------------------------------
4096
4097 // accessors -------------------------------------------------------
4098
4099 enum : int {
4100 kElemTypeFieldNumber = 1,
4101 };
4102 // optional .onnx_torch.TypeProto elem_type = 1;
4103 bool has_elem_type() const;
4104 private:
4105 bool _internal_has_elem_type() const;
4106 public:
4107 void clear_elem_type();
4108 const ::onnx_torch::TypeProto& elem_type() const;
4109 ::onnx_torch::TypeProto* release_elem_type();
4110 ::onnx_torch::TypeProto* mutable_elem_type();
4111 void set_allocated_elem_type(::onnx_torch::TypeProto* elem_type);
4112 private:
4113 const ::onnx_torch::TypeProto& _internal_elem_type() const;
4114 ::onnx_torch::TypeProto* _internal_mutable_elem_type();
4115 public:
4116 void unsafe_arena_set_allocated_elem_type(
4117 ::onnx_torch::TypeProto* elem_type);
4118 ::onnx_torch::TypeProto* unsafe_arena_release_elem_type();
4119
4120 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.Sequence)
4121 private:
4122 class _Internal;
4123
4124 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4125 typedef void InternalArenaConstructable_;
4126 typedef void DestructorSkippable_;
4127 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4128 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4129 ::onnx_torch::TypeProto* elem_type_;
4130 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
4131};
4132// -------------------------------------------------------------------
4133
4134class ONNX_API TypeProto_Map PROTOBUF_FINAL :
4135 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.Map) */ {
4136 public:
4137 inline TypeProto_Map() : TypeProto_Map(nullptr) {}
4138 virtual ~TypeProto_Map();
4139
4140 TypeProto_Map(const TypeProto_Map& from);
4141 TypeProto_Map(TypeProto_Map&& from) noexcept;
4142
4143 inline TypeProto_Map& operator=(const TypeProto_Map& from) {
4144 CopyFrom(from);
4145 return *this;
4146 }
4147 inline TypeProto_Map& operator=(TypeProto_Map&& from) noexcept {
4148 if (GetArena() == from.GetArena()) {
4149 if (this != &from) InternalSwap(&from);
4150 } else {
4151 CopyFrom(from);
4152 }
4153 return *this;
4154 }
4155
4156 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4157 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4158 }
4159 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4160 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4161 }
4162
4163 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4164 return GetDescriptor();
4165 }
4166 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4167 return GetMetadataStatic().descriptor;
4168 }
4169 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4170 return GetMetadataStatic().reflection;
4171 }
4172 static const TypeProto_Map& default_instance();
4173
4174 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4175 static inline const TypeProto_Map* internal_default_instance() {
4176 return reinterpret_cast<const TypeProto_Map*>(
4177 &_TypeProto_Map_default_instance_);
4178 }
4179 static constexpr int kIndexInFileMessages =
4180 15;
4181
4182 friend void swap(TypeProto_Map& a, TypeProto_Map& b) {
4183 a.Swap(&b);
4184 }
4185 inline void Swap(TypeProto_Map* other) {
4186 if (other == this) return;
4187 if (GetArena() == other->GetArena()) {
4188 InternalSwap(other);
4189 } else {
4190 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4191 }
4192 }
4193 void UnsafeArenaSwap(TypeProto_Map* other) {
4194 if (other == this) return;
4195 GOOGLE_DCHECK(GetArena() == other->GetArena());
4196 InternalSwap(other);
4197 }
4198
4199 // implements Message ----------------------------------------------
4200
4201 inline TypeProto_Map* New() const final {
4202 return CreateMaybeMessage<TypeProto_Map>(nullptr);
4203 }
4204
4205 TypeProto_Map* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4206 return CreateMaybeMessage<TypeProto_Map>(arena);
4207 }
4208 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4209 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4210 void CopyFrom(const TypeProto_Map& from);
4211 void MergeFrom(const TypeProto_Map& from);
4212 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4213 bool IsInitialized() const final;
4214
4215 size_t ByteSizeLong() const final;
4216 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4217 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4218 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4219 int GetCachedSize() const final { return _cached_size_.Get(); }
4220
4221 private:
4222 inline void SharedCtor();
4223 inline void SharedDtor();
4224 void SetCachedSize(int size) const final;
4225 void InternalSwap(TypeProto_Map* other);
4226 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4227 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4228 return "onnx_torch.TypeProto.Map";
4229 }
4230 protected:
4231 explicit TypeProto_Map(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4232 private:
4233 static void ArenaDtor(void* object);
4234 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4235 public:
4236
4237 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4238 private:
4239 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4240 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4241 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4242 }
4243
4244 public:
4245
4246 // nested types ----------------------------------------------------
4247
4248 // accessors -------------------------------------------------------
4249
4250 enum : int {
4251 kValueTypeFieldNumber = 2,
4252 kKeyTypeFieldNumber = 1,
4253 };
4254 // optional .onnx_torch.TypeProto value_type = 2;
4255 bool has_value_type() const;
4256 private:
4257 bool _internal_has_value_type() const;
4258 public:
4259 void clear_value_type();
4260 const ::onnx_torch::TypeProto& value_type() const;
4261 ::onnx_torch::TypeProto* release_value_type();
4262 ::onnx_torch::TypeProto* mutable_value_type();
4263 void set_allocated_value_type(::onnx_torch::TypeProto* value_type);
4264 private:
4265 const ::onnx_torch::TypeProto& _internal_value_type() const;
4266 ::onnx_torch::TypeProto* _internal_mutable_value_type();
4267 public:
4268 void unsafe_arena_set_allocated_value_type(
4269 ::onnx_torch::TypeProto* value_type);
4270 ::onnx_torch::TypeProto* unsafe_arena_release_value_type();
4271
4272 // optional int32 key_type = 1;
4273 bool has_key_type() const;
4274 private:
4275 bool _internal_has_key_type() const;
4276 public:
4277 void clear_key_type();
4278 ::PROTOBUF_NAMESPACE_ID::int32 key_type() const;
4279 void set_key_type(::PROTOBUF_NAMESPACE_ID::int32 value);
4280 private:
4281 ::PROTOBUF_NAMESPACE_ID::int32 _internal_key_type() const;
4282 void _internal_set_key_type(::PROTOBUF_NAMESPACE_ID::int32 value);
4283 public:
4284
4285 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.Map)
4286 private:
4287 class _Internal;
4288
4289 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4290 typedef void InternalArenaConstructable_;
4291 typedef void DestructorSkippable_;
4292 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4293 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4294 ::onnx_torch::TypeProto* value_type_;
4295 ::PROTOBUF_NAMESPACE_ID::int32 key_type_;
4296 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
4297};
4298// -------------------------------------------------------------------
4299
4300class ONNX_API TypeProto_Optional PROTOBUF_FINAL :
4301 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.Optional) */ {
4302 public:
4303 inline TypeProto_Optional() : TypeProto_Optional(nullptr) {}
4304 virtual ~TypeProto_Optional();
4305
4306 TypeProto_Optional(const TypeProto_Optional& from);
4307 TypeProto_Optional(TypeProto_Optional&& from) noexcept;
4308
4309 inline TypeProto_Optional& operator=(const TypeProto_Optional& from) {
4310 CopyFrom(from);
4311 return *this;
4312 }
4313 inline TypeProto_Optional& operator=(TypeProto_Optional&& from) noexcept {
4314 if (GetArena() == from.GetArena()) {
4315 if (this != &from) InternalSwap(&from);
4316 } else {
4317 CopyFrom(from);
4318 }
4319 return *this;
4320 }
4321
4322 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4323 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4324 }
4325 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4326 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4327 }
4328
4329 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4330 return GetDescriptor();
4331 }
4332 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4333 return GetMetadataStatic().descriptor;
4334 }
4335 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4336 return GetMetadataStatic().reflection;
4337 }
4338 static const TypeProto_Optional& default_instance();
4339
4340 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4341 static inline const TypeProto_Optional* internal_default_instance() {
4342 return reinterpret_cast<const TypeProto_Optional*>(
4343 &_TypeProto_Optional_default_instance_);
4344 }
4345 static constexpr int kIndexInFileMessages =
4346 16;
4347
4348 friend void swap(TypeProto_Optional& a, TypeProto_Optional& b) {
4349 a.Swap(&b);
4350 }
4351 inline void Swap(TypeProto_Optional* other) {
4352 if (other == this) return;
4353 if (GetArena() == other->GetArena()) {
4354 InternalSwap(other);
4355 } else {
4356 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4357 }
4358 }
4359 void UnsafeArenaSwap(TypeProto_Optional* other) {
4360 if (other == this) return;
4361 GOOGLE_DCHECK(GetArena() == other->GetArena());
4362 InternalSwap(other);
4363 }
4364
4365 // implements Message ----------------------------------------------
4366
4367 inline TypeProto_Optional* New() const final {
4368 return CreateMaybeMessage<TypeProto_Optional>(nullptr);
4369 }
4370
4371 TypeProto_Optional* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4372 return CreateMaybeMessage<TypeProto_Optional>(arena);
4373 }
4374 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4375 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4376 void CopyFrom(const TypeProto_Optional& from);
4377 void MergeFrom(const TypeProto_Optional& from);
4378 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4379 bool IsInitialized() const final;
4380
4381 size_t ByteSizeLong() const final;
4382 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4383 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4384 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4385 int GetCachedSize() const final { return _cached_size_.Get(); }
4386
4387 private:
4388 inline void SharedCtor();
4389 inline void SharedDtor();
4390 void SetCachedSize(int size) const final;
4391 void InternalSwap(TypeProto_Optional* other);
4392 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4393 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4394 return "onnx_torch.TypeProto.Optional";
4395 }
4396 protected:
4397 explicit TypeProto_Optional(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4398 private:
4399 static void ArenaDtor(void* object);
4400 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4401 public:
4402
4403 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4404 private:
4405 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4406 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4407 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4408 }
4409
4410 public:
4411
4412 // nested types ----------------------------------------------------
4413
4414 // accessors -------------------------------------------------------
4415
4416 enum : int {
4417 kElemTypeFieldNumber = 1,
4418 };
4419 // optional .onnx_torch.TypeProto elem_type = 1;
4420 bool has_elem_type() const;
4421 private:
4422 bool _internal_has_elem_type() const;
4423 public:
4424 void clear_elem_type();
4425 const ::onnx_torch::TypeProto& elem_type() const;
4426 ::onnx_torch::TypeProto* release_elem_type();
4427 ::onnx_torch::TypeProto* mutable_elem_type();
4428 void set_allocated_elem_type(::onnx_torch::TypeProto* elem_type);
4429 private:
4430 const ::onnx_torch::TypeProto& _internal_elem_type() const;
4431 ::onnx_torch::TypeProto* _internal_mutable_elem_type();
4432 public:
4433 void unsafe_arena_set_allocated_elem_type(
4434 ::onnx_torch::TypeProto* elem_type);
4435 ::onnx_torch::TypeProto* unsafe_arena_release_elem_type();
4436
4437 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.Optional)
4438 private:
4439 class _Internal;
4440
4441 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4442 typedef void InternalArenaConstructable_;
4443 typedef void DestructorSkippable_;
4444 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4445 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4446 ::onnx_torch::TypeProto* elem_type_;
4447 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
4448};
4449// -------------------------------------------------------------------
4450
4451class ONNX_API TypeProto_SparseTensor PROTOBUF_FINAL :
4452 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.SparseTensor) */ {
4453 public:
4454 inline TypeProto_SparseTensor() : TypeProto_SparseTensor(nullptr) {}
4455 virtual ~TypeProto_SparseTensor();
4456
4457 TypeProto_SparseTensor(const TypeProto_SparseTensor& from);
4458 TypeProto_SparseTensor(TypeProto_SparseTensor&& from) noexcept;
4459
4460 inline TypeProto_SparseTensor& operator=(const TypeProto_SparseTensor& from) {
4461 CopyFrom(from);
4462 return *this;
4463 }
4464 inline TypeProto_SparseTensor& operator=(TypeProto_SparseTensor&& from) noexcept {
4465 if (GetArena() == from.GetArena()) {
4466 if (this != &from) InternalSwap(&from);
4467 } else {
4468 CopyFrom(from);
4469 }
4470 return *this;
4471 }
4472
4473 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4474 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4475 }
4476 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4477 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4478 }
4479
4480 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4481 return GetDescriptor();
4482 }
4483 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4484 return GetMetadataStatic().descriptor;
4485 }
4486 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4487 return GetMetadataStatic().reflection;
4488 }
4489 static const TypeProto_SparseTensor& default_instance();
4490
4491 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4492 static inline const TypeProto_SparseTensor* internal_default_instance() {
4493 return reinterpret_cast<const TypeProto_SparseTensor*>(
4494 &_TypeProto_SparseTensor_default_instance_);
4495 }
4496 static constexpr int kIndexInFileMessages =
4497 17;
4498
4499 friend void swap(TypeProto_SparseTensor& a, TypeProto_SparseTensor& b) {
4500 a.Swap(&b);
4501 }
4502 inline void Swap(TypeProto_SparseTensor* other) {
4503 if (other == this) return;
4504 if (GetArena() == other->GetArena()) {
4505 InternalSwap(other);
4506 } else {
4507 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4508 }
4509 }
4510 void UnsafeArenaSwap(TypeProto_SparseTensor* other) {
4511 if (other == this) return;
4512 GOOGLE_DCHECK(GetArena() == other->GetArena());
4513 InternalSwap(other);
4514 }
4515
4516 // implements Message ----------------------------------------------
4517
4518 inline TypeProto_SparseTensor* New() const final {
4519 return CreateMaybeMessage<TypeProto_SparseTensor>(nullptr);
4520 }
4521
4522 TypeProto_SparseTensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4523 return CreateMaybeMessage<TypeProto_SparseTensor>(arena);
4524 }
4525 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4526 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4527 void CopyFrom(const TypeProto_SparseTensor& from);
4528 void MergeFrom(const TypeProto_SparseTensor& from);
4529 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4530 bool IsInitialized() const final;
4531
4532 size_t ByteSizeLong() const final;
4533 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4534 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4535 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4536 int GetCachedSize() const final { return _cached_size_.Get(); }
4537
4538 private:
4539 inline void SharedCtor();
4540 inline void SharedDtor();
4541 void SetCachedSize(int size) const final;
4542 void InternalSwap(TypeProto_SparseTensor* other);
4543 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4544 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4545 return "onnx_torch.TypeProto.SparseTensor";
4546 }
4547 protected:
4548 explicit TypeProto_SparseTensor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4549 private:
4550 static void ArenaDtor(void* object);
4551 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4552 public:
4553
4554 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4555 private:
4556 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4557 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4558 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4559 }
4560
4561 public:
4562
4563 // nested types ----------------------------------------------------
4564
4565 // accessors -------------------------------------------------------
4566
4567 enum : int {
4568 kShapeFieldNumber = 2,
4569 kElemTypeFieldNumber = 1,
4570 };
4571 // optional .onnx_torch.TensorShapeProto shape = 2;
4572 bool has_shape() const;
4573 private:
4574 bool _internal_has_shape() const;
4575 public:
4576 void clear_shape();
4577 const ::onnx_torch::TensorShapeProto& shape() const;
4578 ::onnx_torch::TensorShapeProto* release_shape();
4579 ::onnx_torch::TensorShapeProto* mutable_shape();
4580 void set_allocated_shape(::onnx_torch::TensorShapeProto* shape);
4581 private:
4582 const ::onnx_torch::TensorShapeProto& _internal_shape() const;
4583 ::onnx_torch::TensorShapeProto* _internal_mutable_shape();
4584 public:
4585 void unsafe_arena_set_allocated_shape(
4586 ::onnx_torch::TensorShapeProto* shape);
4587 ::onnx_torch::TensorShapeProto* unsafe_arena_release_shape();
4588
4589 // optional int32 elem_type = 1;
4590 bool has_elem_type() const;
4591 private:
4592 bool _internal_has_elem_type() const;
4593 public:
4594 void clear_elem_type();
4595 ::PROTOBUF_NAMESPACE_ID::int32 elem_type() const;
4596 void set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value);
4597 private:
4598 ::PROTOBUF_NAMESPACE_ID::int32 _internal_elem_type() const;
4599 void _internal_set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value);
4600 public:
4601
4602 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.SparseTensor)
4603 private:
4604 class _Internal;
4605
4606 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4607 typedef void InternalArenaConstructable_;
4608 typedef void DestructorSkippable_;
4609 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4610 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4611 ::onnx_torch::TensorShapeProto* shape_;
4612 ::PROTOBUF_NAMESPACE_ID::int32 elem_type_;
4613 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
4614};
4615// -------------------------------------------------------------------
4616
4617class ONNX_API TypeProto_Opaque PROTOBUF_FINAL :
4618 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto.Opaque) */ {
4619 public:
4620 inline TypeProto_Opaque() : TypeProto_Opaque(nullptr) {}
4621 virtual ~TypeProto_Opaque();
4622
4623 TypeProto_Opaque(const TypeProto_Opaque& from);
4624 TypeProto_Opaque(TypeProto_Opaque&& from) noexcept;
4625
4626 inline TypeProto_Opaque& operator=(const TypeProto_Opaque& from) {
4627 CopyFrom(from);
4628 return *this;
4629 }
4630 inline TypeProto_Opaque& operator=(TypeProto_Opaque&& from) noexcept {
4631 if (GetArena() == from.GetArena()) {
4632 if (this != &from) InternalSwap(&from);
4633 } else {
4634 CopyFrom(from);
4635 }
4636 return *this;
4637 }
4638
4639 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4640 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4641 }
4642 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4643 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4644 }
4645
4646 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4647 return GetDescriptor();
4648 }
4649 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4650 return GetMetadataStatic().descriptor;
4651 }
4652 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4653 return GetMetadataStatic().reflection;
4654 }
4655 static const TypeProto_Opaque& default_instance();
4656
4657 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4658 static inline const TypeProto_Opaque* internal_default_instance() {
4659 return reinterpret_cast<const TypeProto_Opaque*>(
4660 &_TypeProto_Opaque_default_instance_);
4661 }
4662 static constexpr int kIndexInFileMessages =
4663 18;
4664
4665 friend void swap(TypeProto_Opaque& a, TypeProto_Opaque& b) {
4666 a.Swap(&b);
4667 }
4668 inline void Swap(TypeProto_Opaque* other) {
4669 if (other == this) return;
4670 if (GetArena() == other->GetArena()) {
4671 InternalSwap(other);
4672 } else {
4673 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4674 }
4675 }
4676 void UnsafeArenaSwap(TypeProto_Opaque* other) {
4677 if (other == this) return;
4678 GOOGLE_DCHECK(GetArena() == other->GetArena());
4679 InternalSwap(other);
4680 }
4681
4682 // implements Message ----------------------------------------------
4683
4684 inline TypeProto_Opaque* New() const final {
4685 return CreateMaybeMessage<TypeProto_Opaque>(nullptr);
4686 }
4687
4688 TypeProto_Opaque* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4689 return CreateMaybeMessage<TypeProto_Opaque>(arena);
4690 }
4691 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4692 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4693 void CopyFrom(const TypeProto_Opaque& from);
4694 void MergeFrom(const TypeProto_Opaque& from);
4695 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4696 bool IsInitialized() const final;
4697
4698 size_t ByteSizeLong() const final;
4699 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4700 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4701 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4702 int GetCachedSize() const final { return _cached_size_.Get(); }
4703
4704 private:
4705 inline void SharedCtor();
4706 inline void SharedDtor();
4707 void SetCachedSize(int size) const final;
4708 void InternalSwap(TypeProto_Opaque* other);
4709 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4710 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4711 return "onnx_torch.TypeProto.Opaque";
4712 }
4713 protected:
4714 explicit TypeProto_Opaque(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4715 private:
4716 static void ArenaDtor(void* object);
4717 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4718 public:
4719
4720 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4721 private:
4722 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4723 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4724 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4725 }
4726
4727 public:
4728
4729 // nested types ----------------------------------------------------
4730
4731 // accessors -------------------------------------------------------
4732
4733 enum : int {
4734 kDomainFieldNumber = 1,
4735 kNameFieldNumber = 2,
4736 };
4737 // optional string domain = 1;
4738 bool has_domain() const;
4739 private:
4740 bool _internal_has_domain() const;
4741 public:
4742 void clear_domain();
4743 const std::string& domain() const;
4744 void set_domain(const std::string& value);
4745 void set_domain(std::string&& value);
4746 void set_domain(const char* value);
4747 void set_domain(const char* value, size_t size);
4748 std::string* mutable_domain();
4749 std::string* release_domain();
4750 void set_allocated_domain(std::string* domain);
4751 private:
4752 const std::string& _internal_domain() const;
4753 void _internal_set_domain(const std::string& value);
4754 std::string* _internal_mutable_domain();
4755 public:
4756
4757 // optional string name = 2;
4758 bool has_name() const;
4759 private:
4760 bool _internal_has_name() const;
4761 public:
4762 void clear_name();
4763 const std::string& name() const;
4764 void set_name(const std::string& value);
4765 void set_name(std::string&& value);
4766 void set_name(const char* value);
4767 void set_name(const char* value, size_t size);
4768 std::string* mutable_name();
4769 std::string* release_name();
4770 void set_allocated_name(std::string* name);
4771 private:
4772 const std::string& _internal_name() const;
4773 void _internal_set_name(const std::string& value);
4774 std::string* _internal_mutable_name();
4775 public:
4776
4777 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto.Opaque)
4778 private:
4779 class _Internal;
4780
4781 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4782 typedef void InternalArenaConstructable_;
4783 typedef void DestructorSkippable_;
4784 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
4785 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4786 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
4787 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
4788 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
4789};
4790// -------------------------------------------------------------------
4791
4792class ONNX_API TypeProto PROTOBUF_FINAL :
4793 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.TypeProto) */ {
4794 public:
4795 inline TypeProto() : TypeProto(nullptr) {}
4796 virtual ~TypeProto();
4797
4798 TypeProto(const TypeProto& from);
4799 TypeProto(TypeProto&& from) noexcept;
4800
4801 inline TypeProto& operator=(const TypeProto& from) {
4802 CopyFrom(from);
4803 return *this;
4804 }
4805 inline TypeProto& operator=(TypeProto&& from) noexcept {
4806 if (GetArena() == from.GetArena()) {
4807 if (this != &from) InternalSwap(&from);
4808 } else {
4809 CopyFrom(from);
4810 }
4811 return *this;
4812 }
4813
4814 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
4815 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
4816 }
4817 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
4818 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4819 }
4820
4821 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4822 return GetDescriptor();
4823 }
4824 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4825 return GetMetadataStatic().descriptor;
4826 }
4827 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4828 return GetMetadataStatic().reflection;
4829 }
4830 static const TypeProto& default_instance();
4831
4832 enum ValueCase {
4833 kTensorType = 1,
4834 kSequenceType = 4,
4835 kMapType = 5,
4836 kOptionalType = 9,
4837 kSparseTensorType = 8,
4838 kOpaqueType = 7,
4839 VALUE_NOT_SET = 0,
4840 };
4841
4842 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
4843 static inline const TypeProto* internal_default_instance() {
4844 return reinterpret_cast<const TypeProto*>(
4845 &_TypeProto_default_instance_);
4846 }
4847 static constexpr int kIndexInFileMessages =
4848 19;
4849
4850 friend void swap(TypeProto& a, TypeProto& b) {
4851 a.Swap(&b);
4852 }
4853 inline void Swap(TypeProto* other) {
4854 if (other == this) return;
4855 if (GetArena() == other->GetArena()) {
4856 InternalSwap(other);
4857 } else {
4858 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4859 }
4860 }
4861 void UnsafeArenaSwap(TypeProto* other) {
4862 if (other == this) return;
4863 GOOGLE_DCHECK(GetArena() == other->GetArena());
4864 InternalSwap(other);
4865 }
4866
4867 // implements Message ----------------------------------------------
4868
4869 inline TypeProto* New() const final {
4870 return CreateMaybeMessage<TypeProto>(nullptr);
4871 }
4872
4873 TypeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4874 return CreateMaybeMessage<TypeProto>(arena);
4875 }
4876 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4877 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
4878 void CopyFrom(const TypeProto& from);
4879 void MergeFrom(const TypeProto& from);
4880 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4881 bool IsInitialized() const final;
4882
4883 size_t ByteSizeLong() const final;
4884 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4885 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
4886 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4887 int GetCachedSize() const final { return _cached_size_.Get(); }
4888
4889 private:
4890 inline void SharedCtor();
4891 inline void SharedDtor();
4892 void SetCachedSize(int size) const final;
4893 void InternalSwap(TypeProto* other);
4894 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4895 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4896 return "onnx_torch.TypeProto";
4897 }
4898 protected:
4899 explicit TypeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4900 private:
4901 static void ArenaDtor(void* object);
4902 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
4903 public:
4904
4905 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4906 private:
4907 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
4908 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
4909 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
4910 }
4911
4912 public:
4913
4914 // nested types ----------------------------------------------------
4915
4916 typedef TypeProto_Tensor Tensor;
4917 typedef TypeProto_Sequence Sequence;
4918 typedef TypeProto_Map Map;
4919 typedef TypeProto_Optional Optional;
4920 typedef TypeProto_SparseTensor SparseTensor;
4921 typedef TypeProto_Opaque Opaque;
4922
4923 // accessors -------------------------------------------------------
4924
4925 enum : int {
4926 kDenotationFieldNumber = 6,
4927 kTensorTypeFieldNumber = 1,
4928 kSequenceTypeFieldNumber = 4,
4929 kMapTypeFieldNumber = 5,
4930 kOptionalTypeFieldNumber = 9,
4931 kSparseTensorTypeFieldNumber = 8,
4932 kOpaqueTypeFieldNumber = 7,
4933 };
4934 // optional string denotation = 6;
4935 bool has_denotation() const;
4936 private:
4937 bool _internal_has_denotation() const;
4938 public:
4939 void clear_denotation();
4940 const std::string& denotation() const;
4941 void set_denotation(const std::string& value);
4942 void set_denotation(std::string&& value);
4943 void set_denotation(const char* value);
4944 void set_denotation(const char* value, size_t size);
4945 std::string* mutable_denotation();
4946 std::string* release_denotation();
4947 void set_allocated_denotation(std::string* denotation);
4948 private:
4949 const std::string& _internal_denotation() const;
4950 void _internal_set_denotation(const std::string& value);
4951 std::string* _internal_mutable_denotation();
4952 public:
4953
4954 // .onnx_torch.TypeProto.Tensor tensor_type = 1;
4955 bool has_tensor_type() const;
4956 private:
4957 bool _internal_has_tensor_type() const;
4958 public:
4959 void clear_tensor_type();
4960 const ::onnx_torch::TypeProto_Tensor& tensor_type() const;
4961 ::onnx_torch::TypeProto_Tensor* release_tensor_type();
4962 ::onnx_torch::TypeProto_Tensor* mutable_tensor_type();
4963 void set_allocated_tensor_type(::onnx_torch::TypeProto_Tensor* tensor_type);
4964 private:
4965 const ::onnx_torch::TypeProto_Tensor& _internal_tensor_type() const;
4966 ::onnx_torch::TypeProto_Tensor* _internal_mutable_tensor_type();
4967 public:
4968 void unsafe_arena_set_allocated_tensor_type(
4969 ::onnx_torch::TypeProto_Tensor* tensor_type);
4970 ::onnx_torch::TypeProto_Tensor* unsafe_arena_release_tensor_type();
4971
4972 // .onnx_torch.TypeProto.Sequence sequence_type = 4;
4973 bool has_sequence_type() const;
4974 private:
4975 bool _internal_has_sequence_type() const;
4976 public:
4977 void clear_sequence_type();
4978 const ::onnx_torch::TypeProto_Sequence& sequence_type() const;
4979 ::onnx_torch::TypeProto_Sequence* release_sequence_type();
4980 ::onnx_torch::TypeProto_Sequence* mutable_sequence_type();
4981 void set_allocated_sequence_type(::onnx_torch::TypeProto_Sequence* sequence_type);
4982 private:
4983 const ::onnx_torch::TypeProto_Sequence& _internal_sequence_type() const;
4984 ::onnx_torch::TypeProto_Sequence* _internal_mutable_sequence_type();
4985 public:
4986 void unsafe_arena_set_allocated_sequence_type(
4987 ::onnx_torch::TypeProto_Sequence* sequence_type);
4988 ::onnx_torch::TypeProto_Sequence* unsafe_arena_release_sequence_type();
4989
4990 // .onnx_torch.TypeProto.Map map_type = 5;
4991 bool has_map_type() const;
4992 private:
4993 bool _internal_has_map_type() const;
4994 public:
4995 void clear_map_type();
4996 const ::onnx_torch::TypeProto_Map& map_type() const;
4997 ::onnx_torch::TypeProto_Map* release_map_type();
4998 ::onnx_torch::TypeProto_Map* mutable_map_type();
4999 void set_allocated_map_type(::onnx_torch::TypeProto_Map* map_type);
5000 private:
5001 const ::onnx_torch::TypeProto_Map& _internal_map_type() const;
5002 ::onnx_torch::TypeProto_Map* _internal_mutable_map_type();
5003 public:
5004 void unsafe_arena_set_allocated_map_type(
5005 ::onnx_torch::TypeProto_Map* map_type);
5006 ::onnx_torch::TypeProto_Map* unsafe_arena_release_map_type();
5007
5008 // .onnx_torch.TypeProto.Optional optional_type = 9;
5009 bool has_optional_type() const;
5010 private:
5011 bool _internal_has_optional_type() const;
5012 public:
5013 void clear_optional_type();
5014 const ::onnx_torch::TypeProto_Optional& optional_type() const;
5015 ::onnx_torch::TypeProto_Optional* release_optional_type();
5016 ::onnx_torch::TypeProto_Optional* mutable_optional_type();
5017 void set_allocated_optional_type(::onnx_torch::TypeProto_Optional* optional_type);
5018 private:
5019 const ::onnx_torch::TypeProto_Optional& _internal_optional_type() const;
5020 ::onnx_torch::TypeProto_Optional* _internal_mutable_optional_type();
5021 public:
5022 void unsafe_arena_set_allocated_optional_type(
5023 ::onnx_torch::TypeProto_Optional* optional_type);
5024 ::onnx_torch::TypeProto_Optional* unsafe_arena_release_optional_type();
5025
5026 // .onnx_torch.TypeProto.SparseTensor sparse_tensor_type = 8;
5027 bool has_sparse_tensor_type() const;
5028 private:
5029 bool _internal_has_sparse_tensor_type() const;
5030 public:
5031 void clear_sparse_tensor_type();
5032 const ::onnx_torch::TypeProto_SparseTensor& sparse_tensor_type() const;
5033 ::onnx_torch::TypeProto_SparseTensor* release_sparse_tensor_type();
5034 ::onnx_torch::TypeProto_SparseTensor* mutable_sparse_tensor_type();
5035 void set_allocated_sparse_tensor_type(::onnx_torch::TypeProto_SparseTensor* sparse_tensor_type);
5036 private:
5037 const ::onnx_torch::TypeProto_SparseTensor& _internal_sparse_tensor_type() const;
5038 ::onnx_torch::TypeProto_SparseTensor* _internal_mutable_sparse_tensor_type();
5039 public:
5040 void unsafe_arena_set_allocated_sparse_tensor_type(
5041 ::onnx_torch::TypeProto_SparseTensor* sparse_tensor_type);
5042 ::onnx_torch::TypeProto_SparseTensor* unsafe_arena_release_sparse_tensor_type();
5043
5044 // .onnx_torch.TypeProto.Opaque opaque_type = 7;
5045 bool has_opaque_type() const;
5046 private:
5047 bool _internal_has_opaque_type() const;
5048 public:
5049 void clear_opaque_type();
5050 const ::onnx_torch::TypeProto_Opaque& opaque_type() const;
5051 ::onnx_torch::TypeProto_Opaque* release_opaque_type();
5052 ::onnx_torch::TypeProto_Opaque* mutable_opaque_type();
5053 void set_allocated_opaque_type(::onnx_torch::TypeProto_Opaque* opaque_type);
5054 private:
5055 const ::onnx_torch::TypeProto_Opaque& _internal_opaque_type() const;
5056 ::onnx_torch::TypeProto_Opaque* _internal_mutable_opaque_type();
5057 public:
5058 void unsafe_arena_set_allocated_opaque_type(
5059 ::onnx_torch::TypeProto_Opaque* opaque_type);
5060 ::onnx_torch::TypeProto_Opaque* unsafe_arena_release_opaque_type();
5061
5062 void clear_value();
5063 ValueCase value_case() const;
5064 // @@protoc_insertion_point(class_scope:onnx_torch.TypeProto)
5065 private:
5066 class _Internal;
5067 void set_has_tensor_type();
5068 void set_has_sequence_type();
5069 void set_has_map_type();
5070 void set_has_optional_type();
5071 void set_has_sparse_tensor_type();
5072 void set_has_opaque_type();
5073
5074 inline bool has_value() const;
5075 inline void clear_has_value();
5076
5077 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5078 typedef void InternalArenaConstructable_;
5079 typedef void DestructorSkippable_;
5080 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5081 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5082 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
5083 union ValueUnion {
5084 ValueUnion() {}
5085 ::onnx_torch::TypeProto_Tensor* tensor_type_;
5086 ::onnx_torch::TypeProto_Sequence* sequence_type_;
5087 ::onnx_torch::TypeProto_Map* map_type_;
5088 ::onnx_torch::TypeProto_Optional* optional_type_;
5089 ::onnx_torch::TypeProto_SparseTensor* sparse_tensor_type_;
5090 ::onnx_torch::TypeProto_Opaque* opaque_type_;
5091 } value_;
5092 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
5093
5094 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
5095};
5096// -------------------------------------------------------------------
5097
5098class ONNX_API OperatorSetIdProto PROTOBUF_FINAL :
5099 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.OperatorSetIdProto) */ {
5100 public:
5101 inline OperatorSetIdProto() : OperatorSetIdProto(nullptr) {}
5102 virtual ~OperatorSetIdProto();
5103
5104 OperatorSetIdProto(const OperatorSetIdProto& from);
5105 OperatorSetIdProto(OperatorSetIdProto&& from) noexcept;
5106
5107 inline OperatorSetIdProto& operator=(const OperatorSetIdProto& from) {
5108 CopyFrom(from);
5109 return *this;
5110 }
5111 inline OperatorSetIdProto& operator=(OperatorSetIdProto&& from) noexcept {
5112 if (GetArena() == from.GetArena()) {
5113 if (this != &from) InternalSwap(&from);
5114 } else {
5115 CopyFrom(from);
5116 }
5117 return *this;
5118 }
5119
5120 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5121 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5122 }
5123 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5124 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5125 }
5126
5127 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5128 return GetDescriptor();
5129 }
5130 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5131 return GetMetadataStatic().descriptor;
5132 }
5133 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5134 return GetMetadataStatic().reflection;
5135 }
5136 static const OperatorSetIdProto& default_instance();
5137
5138 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
5139 static inline const OperatorSetIdProto* internal_default_instance() {
5140 return reinterpret_cast<const OperatorSetIdProto*>(
5141 &_OperatorSetIdProto_default_instance_);
5142 }
5143 static constexpr int kIndexInFileMessages =
5144 20;
5145
5146 friend void swap(OperatorSetIdProto& a, OperatorSetIdProto& b) {
5147 a.Swap(&b);
5148 }
5149 inline void Swap(OperatorSetIdProto* other) {
5150 if (other == this) return;
5151 if (GetArena() == other->GetArena()) {
5152 InternalSwap(other);
5153 } else {
5154 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5155 }
5156 }
5157 void UnsafeArenaSwap(OperatorSetIdProto* other) {
5158 if (other == this) return;
5159 GOOGLE_DCHECK(GetArena() == other->GetArena());
5160 InternalSwap(other);
5161 }
5162
5163 // implements Message ----------------------------------------------
5164
5165 inline OperatorSetIdProto* New() const final {
5166 return CreateMaybeMessage<OperatorSetIdProto>(nullptr);
5167 }
5168
5169 OperatorSetIdProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5170 return CreateMaybeMessage<OperatorSetIdProto>(arena);
5171 }
5172 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
5173 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
5174 void CopyFrom(const OperatorSetIdProto& from);
5175 void MergeFrom(const OperatorSetIdProto& from);
5176 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5177 bool IsInitialized() const final;
5178
5179 size_t ByteSizeLong() const final;
5180 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5181 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
5182 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5183 int GetCachedSize() const final { return _cached_size_.Get(); }
5184
5185 private:
5186 inline void SharedCtor();
5187 inline void SharedDtor();
5188 void SetCachedSize(int size) const final;
5189 void InternalSwap(OperatorSetIdProto* other);
5190 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5191 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5192 return "onnx_torch.OperatorSetIdProto";
5193 }
5194 protected:
5195 explicit OperatorSetIdProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
5196 private:
5197 static void ArenaDtor(void* object);
5198 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
5199 public:
5200
5201 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5202 private:
5203 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
5204 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
5205 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
5206 }
5207
5208 public:
5209
5210 // nested types ----------------------------------------------------
5211
5212 // accessors -------------------------------------------------------
5213
5214 enum : int {
5215 kDomainFieldNumber = 1,
5216 kVersionFieldNumber = 2,
5217 };
5218 // optional string domain = 1;
5219 bool has_domain() const;
5220 private:
5221 bool _internal_has_domain() const;
5222 public:
5223 void clear_domain();
5224 const std::string& domain() const;
5225 void set_domain(const std::string& value);
5226 void set_domain(std::string&& value);
5227 void set_domain(const char* value);
5228 void set_domain(const char* value, size_t size);
5229 std::string* mutable_domain();
5230 std::string* release_domain();
5231 void set_allocated_domain(std::string* domain);
5232 private:
5233 const std::string& _internal_domain() const;
5234 void _internal_set_domain(const std::string& value);
5235 std::string* _internal_mutable_domain();
5236 public:
5237
5238 // optional int64 version = 2;
5239 bool has_version() const;
5240 private:
5241 bool _internal_has_version() const;
5242 public:
5243 void clear_version();
5244 ::PROTOBUF_NAMESPACE_ID::int64 version() const;
5245 void set_version(::PROTOBUF_NAMESPACE_ID::int64 value);
5246 private:
5247 ::PROTOBUF_NAMESPACE_ID::int64 _internal_version() const;
5248 void _internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value);
5249 public:
5250
5251 // @@protoc_insertion_point(class_scope:onnx_torch.OperatorSetIdProto)
5252 private:
5253 class _Internal;
5254
5255 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5256 typedef void InternalArenaConstructable_;
5257 typedef void DestructorSkippable_;
5258 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5259 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5260 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
5261 ::PROTOBUF_NAMESPACE_ID::int64 version_;
5262 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
5263};
5264// -------------------------------------------------------------------
5265
5266class ONNX_API FunctionProto PROTOBUF_FINAL :
5267 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:onnx_torch.FunctionProto) */ {
5268 public:
5269 inline FunctionProto() : FunctionProto(nullptr) {}
5270 virtual ~FunctionProto();
5271
5272 FunctionProto(const FunctionProto& from);
5273 FunctionProto(FunctionProto&& from) noexcept;
5274
5275 inline FunctionProto& operator=(const FunctionProto& from) {
5276 CopyFrom(from);
5277 return *this;
5278 }
5279 inline FunctionProto& operator=(FunctionProto&& from) noexcept {
5280 if (GetArena() == from.GetArena()) {
5281 if (this != &from) InternalSwap(&from);
5282 } else {
5283 CopyFrom(from);
5284 }
5285 return *this;
5286 }
5287
5288 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
5289 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
5290 }
5291 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
5292 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5293 }
5294
5295 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5296 return GetDescriptor();
5297 }
5298 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5299 return GetMetadataStatic().descriptor;
5300 }
5301 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5302 return GetMetadataStatic().reflection;
5303 }
5304 static const FunctionProto& default_instance();
5305
5306 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
5307 static inline const FunctionProto* internal_default_instance() {
5308 return reinterpret_cast<const FunctionProto*>(
5309 &_FunctionProto_default_instance_);
5310 }
5311 static constexpr int kIndexInFileMessages =
5312 21;
5313
5314 friend void swap(FunctionProto& a, FunctionProto& b) {
5315 a.Swap(&b);
5316 }
5317 inline void Swap(FunctionProto* other) {
5318 if (other == this) return;
5319 if (GetArena() == other->GetArena()) {
5320 InternalSwap(other);
5321 } else {
5322 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5323 }
5324 }
5325 void UnsafeArenaSwap(FunctionProto* other) {
5326 if (other == this) return;
5327 GOOGLE_DCHECK(GetArena() == other->GetArena());
5328 InternalSwap(other);
5329 }
5330
5331 // implements Message ----------------------------------------------
5332
5333 inline FunctionProto* New() const final {
5334 return CreateMaybeMessage<FunctionProto>(nullptr);
5335 }
5336
5337 FunctionProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5338 return CreateMaybeMessage<FunctionProto>(arena);
5339 }
5340 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
5341 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
5342 void CopyFrom(const FunctionProto& from);
5343 void MergeFrom(const FunctionProto& from);
5344 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5345 bool IsInitialized() const final;
5346
5347 size_t ByteSizeLong() const final;
5348 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5349 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
5350 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5351 int GetCachedSize() const final { return _cached_size_.Get(); }
5352
5353 private:
5354 inline void SharedCtor();
5355 inline void SharedDtor();
5356 void SetCachedSize(int size) const final;
5357 void InternalSwap(FunctionProto* other);
5358 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5359 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5360 return "onnx_torch.FunctionProto";
5361 }
5362 protected:
5363 explicit FunctionProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
5364 private:
5365 static void ArenaDtor(void* object);
5366 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
5367 public:
5368
5369 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5370 private:
5371 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
5372 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto);
5373 return ::descriptor_table_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto.file_level_metadata[kIndexInFileMessages];
5374 }
5375
5376 public:
5377
5378 // nested types ----------------------------------------------------
5379
5380 // accessors -------------------------------------------------------
5381
5382 enum : int {
5383 kInputFieldNumber = 4,
5384 kOutputFieldNumber = 5,
5385 kAttributeFieldNumber = 6,
5386 kNodeFieldNumber = 7,
5387 kOpsetImportFieldNumber = 9,
5388 kNameFieldNumber = 1,
5389 kDocStringFieldNumber = 8,
5390 kDomainFieldNumber = 10,
5391 };
5392 // repeated string input = 4;
5393 int input_size() const;
5394 private:
5395 int _internal_input_size() const;
5396 public:
5397 void clear_input();
5398 const std::string& input(int index) const;
5399 std::string* mutable_input(int index);
5400 void set_input(int index, const std::string& value);
5401 void set_input(int index, std::string&& value);
5402 void set_input(int index, const char* value);
5403 void set_input(int index, const char* value, size_t size);
5404 std::string* add_input();
5405 void add_input(const std::string& value);
5406 void add_input(std::string&& value);
5407 void add_input(const char* value);
5408 void add_input(const char* value, size_t size);
5409 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
5410 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
5411 private:
5412 const std::string& _internal_input(int index) const;
5413 std::string* _internal_add_input();
5414 public:
5415
5416 // repeated string output = 5;
5417 int output_size() const;
5418 private:
5419 int _internal_output_size() const;
5420 public:
5421 void clear_output();
5422 const std::string& output(int index) const;
5423 std::string* mutable_output(int index);
5424 void set_output(int index, const std::string& value);
5425 void set_output(int index, std::string&& value);
5426 void set_output(int index, const char* value);
5427 void set_output(int index, const char* value, size_t size);
5428 std::string* add_output();
5429 void add_output(const std::string& value);
5430 void add_output(std::string&& value);
5431 void add_output(const char* value);
5432 void add_output(const char* value, size_t size);
5433 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output() const;
5434 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output();
5435 private:
5436 const std::string& _internal_output(int index) const;
5437 std::string* _internal_add_output();
5438 public:
5439
5440 // repeated string attribute = 6;
5441 int attribute_size() const;
5442 private:
5443 int _internal_attribute_size() const;
5444 public:
5445 void clear_attribute();
5446 const std::string& attribute(int index) const;
5447 std::string* mutable_attribute(int index);
5448 void set_attribute(int index, const std::string& value);
5449 void set_attribute(int index, std::string&& value);
5450 void set_attribute(int index, const char* value);
5451 void set_attribute(int index, const char* value, size_t size);
5452 std::string* add_attribute();
5453 void add_attribute(const std::string& value);
5454 void add_attribute(std::string&& value);
5455 void add_attribute(const char* value);
5456 void add_attribute(const char* value, size_t size);
5457 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& attribute() const;
5458 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_attribute();
5459 private:
5460 const std::string& _internal_attribute(int index) const;
5461 std::string* _internal_add_attribute();
5462 public:
5463
5464 // repeated .onnx_torch.NodeProto node = 7;
5465 int node_size() const;
5466 private:
5467 int _internal_node_size() const;
5468 public:
5469 void clear_node();
5470 ::onnx_torch::NodeProto* mutable_node(int index);
5471 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >*
5472 mutable_node();
5473 private:
5474 const ::onnx_torch::NodeProto& _internal_node(int index) const;
5475 ::onnx_torch::NodeProto* _internal_add_node();
5476 public:
5477 const ::onnx_torch::NodeProto& node(int index) const;
5478 ::onnx_torch::NodeProto* add_node();
5479 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >&
5480 node() const;
5481
5482 // repeated .onnx_torch.OperatorSetIdProto opset_import = 9;
5483 int opset_import_size() const;
5484 private:
5485 int _internal_opset_import_size() const;
5486 public:
5487 void clear_opset_import();
5488 ::onnx_torch::OperatorSetIdProto* mutable_opset_import(int index);
5489 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >*
5490 mutable_opset_import();
5491 private:
5492 const ::onnx_torch::OperatorSetIdProto& _internal_opset_import(int index) const;
5493 ::onnx_torch::OperatorSetIdProto* _internal_add_opset_import();
5494 public:
5495 const ::onnx_torch::OperatorSetIdProto& opset_import(int index) const;
5496 ::onnx_torch::OperatorSetIdProto* add_opset_import();
5497 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >&
5498 opset_import() const;
5499
5500 // optional string name = 1;
5501 bool has_name() const;
5502 private:
5503 bool _internal_has_name() const;
5504 public:
5505 void clear_name();
5506 const std::string& name() const;
5507 void set_name(const std::string& value);
5508 void set_name(std::string&& value);
5509 void set_name(const char* value);
5510 void set_name(const char* value, size_t size);
5511 std::string* mutable_name();
5512 std::string* release_name();
5513 void set_allocated_name(std::string* name);
5514 private:
5515 const std::string& _internal_name() const;
5516 void _internal_set_name(const std::string& value);
5517 std::string* _internal_mutable_name();
5518 public:
5519
5520 // optional string doc_string = 8;
5521 bool has_doc_string() const;
5522 private:
5523 bool _internal_has_doc_string() const;
5524 public:
5525 void clear_doc_string();
5526 const std::string& doc_string() const;
5527 void set_doc_string(const std::string& value);
5528 void set_doc_string(std::string&& value);
5529 void set_doc_string(const char* value);
5530 void set_doc_string(const char* value, size_t size);
5531 std::string* mutable_doc_string();
5532 std::string* release_doc_string();
5533 void set_allocated_doc_string(std::string* doc_string);
5534 private:
5535 const std::string& _internal_doc_string() const;
5536 void _internal_set_doc_string(const std::string& value);
5537 std::string* _internal_mutable_doc_string();
5538 public:
5539
5540 // optional string domain = 10;
5541 bool has_domain() const;
5542 private:
5543 bool _internal_has_domain() const;
5544 public:
5545 void clear_domain();
5546 const std::string& domain() const;
5547 void set_domain(const std::string& value);
5548 void set_domain(std::string&& value);
5549 void set_domain(const char* value);
5550 void set_domain(const char* value, size_t size);
5551 std::string* mutable_domain();
5552 std::string* release_domain();
5553 void set_allocated_domain(std::string* domain);
5554 private:
5555 const std::string& _internal_domain() const;
5556 void _internal_set_domain(const std::string& value);
5557 std::string* _internal_mutable_domain();
5558 public:
5559
5560 // @@protoc_insertion_point(class_scope:onnx_torch.FunctionProto)
5561 private:
5562 class _Internal;
5563
5564 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5565 typedef void InternalArenaConstructable_;
5566 typedef void DestructorSkippable_;
5567 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
5568 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5569 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
5570 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_;
5571 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> attribute_;
5572 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto > node_;
5573 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto > opset_import_;
5574 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
5575 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
5576 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
5577 friend struct ::TableStruct_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto;
5578};
5579// ===================================================================
5580
5581
5582// ===================================================================
5583
5584#ifdef __GNUC__
5585 #pragma GCC diagnostic push
5586 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
5587#endif // __GNUC__
5588// AttributeProto
5589
5590// optional string name = 1;
5591inline bool AttributeProto::_internal_has_name() const {
5592 bool value = (_has_bits_[0] & 0x00000001u) != 0;
5593 return value;
5594}
5595inline bool AttributeProto::has_name() const {
5596 return _internal_has_name();
5597}
5598inline void AttributeProto::clear_name() {
5599 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
5600 _has_bits_[0] &= ~0x00000001u;
5601}
5602inline const std::string& AttributeProto::name() const {
5603 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.name)
5604 return _internal_name();
5605}
5606inline void AttributeProto::set_name(const std::string& value) {
5607 _internal_set_name(value);
5608 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.name)
5609}
5610inline std::string* AttributeProto::mutable_name() {
5611 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.name)
5612 return _internal_mutable_name();
5613}
5614inline const std::string& AttributeProto::_internal_name() const {
5615 return name_.Get();
5616}
5617inline void AttributeProto::_internal_set_name(const std::string& value) {
5618 _has_bits_[0] |= 0x00000001u;
5619 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
5620}
5621inline void AttributeProto::set_name(std::string&& value) {
5622 _has_bits_[0] |= 0x00000001u;
5623 name_.Set(
5624 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
5625 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.AttributeProto.name)
5626}
5627inline void AttributeProto::set_name(const char* value) {
5628 GOOGLE_DCHECK(value != nullptr);
5629 _has_bits_[0] |= 0x00000001u;
5630 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
5631 GetArena());
5632 // @@protoc_insertion_point(field_set_char:onnx_torch.AttributeProto.name)
5633}
5634inline void AttributeProto::set_name(const char* value,
5635 size_t size) {
5636 _has_bits_[0] |= 0x00000001u;
5637 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
5638 reinterpret_cast<const char*>(value), size), GetArena());
5639 // @@protoc_insertion_point(field_set_pointer:onnx_torch.AttributeProto.name)
5640}
5641inline std::string* AttributeProto::_internal_mutable_name() {
5642 _has_bits_[0] |= 0x00000001u;
5643 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
5644}
5645inline std::string* AttributeProto::release_name() {
5646 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.name)
5647 if (!_internal_has_name()) {
5648 return nullptr;
5649 }
5650 _has_bits_[0] &= ~0x00000001u;
5651 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
5652}
5653inline void AttributeProto::set_allocated_name(std::string* name) {
5654 if (name != nullptr) {
5655 _has_bits_[0] |= 0x00000001u;
5656 } else {
5657 _has_bits_[0] &= ~0x00000001u;
5658 }
5659 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
5660 GetArena());
5661 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.name)
5662}
5663
5664// optional string ref_attr_name = 21;
5665inline bool AttributeProto::_internal_has_ref_attr_name() const {
5666 bool value = (_has_bits_[0] & 0x00000008u) != 0;
5667 return value;
5668}
5669inline bool AttributeProto::has_ref_attr_name() const {
5670 return _internal_has_ref_attr_name();
5671}
5672inline void AttributeProto::clear_ref_attr_name() {
5673 ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
5674 _has_bits_[0] &= ~0x00000008u;
5675}
5676inline const std::string& AttributeProto::ref_attr_name() const {
5677 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.ref_attr_name)
5678 return _internal_ref_attr_name();
5679}
5680inline void AttributeProto::set_ref_attr_name(const std::string& value) {
5681 _internal_set_ref_attr_name(value);
5682 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.ref_attr_name)
5683}
5684inline std::string* AttributeProto::mutable_ref_attr_name() {
5685 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.ref_attr_name)
5686 return _internal_mutable_ref_attr_name();
5687}
5688inline const std::string& AttributeProto::_internal_ref_attr_name() const {
5689 return ref_attr_name_.Get();
5690}
5691inline void AttributeProto::_internal_set_ref_attr_name(const std::string& value) {
5692 _has_bits_[0] |= 0x00000008u;
5693 ref_attr_name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
5694}
5695inline void AttributeProto::set_ref_attr_name(std::string&& value) {
5696 _has_bits_[0] |= 0x00000008u;
5697 ref_attr_name_.Set(
5698 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
5699 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.AttributeProto.ref_attr_name)
5700}
5701inline void AttributeProto::set_ref_attr_name(const char* value) {
5702 GOOGLE_DCHECK(value != nullptr);
5703 _has_bits_[0] |= 0x00000008u;
5704 ref_attr_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
5705 GetArena());
5706 // @@protoc_insertion_point(field_set_char:onnx_torch.AttributeProto.ref_attr_name)
5707}
5708inline void AttributeProto::set_ref_attr_name(const char* value,
5709 size_t size) {
5710 _has_bits_[0] |= 0x00000008u;
5711 ref_attr_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
5712 reinterpret_cast<const char*>(value), size), GetArena());
5713 // @@protoc_insertion_point(field_set_pointer:onnx_torch.AttributeProto.ref_attr_name)
5714}
5715inline std::string* AttributeProto::_internal_mutable_ref_attr_name() {
5716 _has_bits_[0] |= 0x00000008u;
5717 return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
5718}
5719inline std::string* AttributeProto::release_ref_attr_name() {
5720 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.ref_attr_name)
5721 if (!_internal_has_ref_attr_name()) {
5722 return nullptr;
5723 }
5724 _has_bits_[0] &= ~0x00000008u;
5725 return ref_attr_name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
5726}
5727inline void AttributeProto::set_allocated_ref_attr_name(std::string* ref_attr_name) {
5728 if (ref_attr_name != nullptr) {
5729 _has_bits_[0] |= 0x00000008u;
5730 } else {
5731 _has_bits_[0] &= ~0x00000008u;
5732 }
5733 ref_attr_name_.SetAllocated(&GetEmptyStringAlreadyInited(), ref_attr_name,
5734 GetArena());
5735 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.ref_attr_name)
5736}
5737
5738// optional string doc_string = 13;
5739inline bool AttributeProto::_internal_has_doc_string() const {
5740 bool value = (_has_bits_[0] & 0x00000004u) != 0;
5741 return value;
5742}
5743inline bool AttributeProto::has_doc_string() const {
5744 return _internal_has_doc_string();
5745}
5746inline void AttributeProto::clear_doc_string() {
5747 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
5748 _has_bits_[0] &= ~0x00000004u;
5749}
5750inline const std::string& AttributeProto::doc_string() const {
5751 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.doc_string)
5752 return _internal_doc_string();
5753}
5754inline void AttributeProto::set_doc_string(const std::string& value) {
5755 _internal_set_doc_string(value);
5756 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.doc_string)
5757}
5758inline std::string* AttributeProto::mutable_doc_string() {
5759 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.doc_string)
5760 return _internal_mutable_doc_string();
5761}
5762inline const std::string& AttributeProto::_internal_doc_string() const {
5763 return doc_string_.Get();
5764}
5765inline void AttributeProto::_internal_set_doc_string(const std::string& value) {
5766 _has_bits_[0] |= 0x00000004u;
5767 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
5768}
5769inline void AttributeProto::set_doc_string(std::string&& value) {
5770 _has_bits_[0] |= 0x00000004u;
5771 doc_string_.Set(
5772 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
5773 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.AttributeProto.doc_string)
5774}
5775inline void AttributeProto::set_doc_string(const char* value) {
5776 GOOGLE_DCHECK(value != nullptr);
5777 _has_bits_[0] |= 0x00000004u;
5778 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
5779 GetArena());
5780 // @@protoc_insertion_point(field_set_char:onnx_torch.AttributeProto.doc_string)
5781}
5782inline void AttributeProto::set_doc_string(const char* value,
5783 size_t size) {
5784 _has_bits_[0] |= 0x00000004u;
5785 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
5786 reinterpret_cast<const char*>(value), size), GetArena());
5787 // @@protoc_insertion_point(field_set_pointer:onnx_torch.AttributeProto.doc_string)
5788}
5789inline std::string* AttributeProto::_internal_mutable_doc_string() {
5790 _has_bits_[0] |= 0x00000004u;
5791 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
5792}
5793inline std::string* AttributeProto::release_doc_string() {
5794 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.doc_string)
5795 if (!_internal_has_doc_string()) {
5796 return nullptr;
5797 }
5798 _has_bits_[0] &= ~0x00000004u;
5799 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
5800}
5801inline void AttributeProto::set_allocated_doc_string(std::string* doc_string) {
5802 if (doc_string != nullptr) {
5803 _has_bits_[0] |= 0x00000004u;
5804 } else {
5805 _has_bits_[0] &= ~0x00000004u;
5806 }
5807 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
5808 GetArena());
5809 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.doc_string)
5810}
5811
5812// optional .onnx_torch.AttributeProto.AttributeType type = 20;
5813inline bool AttributeProto::_internal_has_type() const {
5814 bool value = (_has_bits_[0] & 0x00000400u) != 0;
5815 return value;
5816}
5817inline bool AttributeProto::has_type() const {
5818 return _internal_has_type();
5819}
5820inline void AttributeProto::clear_type() {
5821 type_ = 0;
5822 _has_bits_[0] &= ~0x00000400u;
5823}
5824inline ::onnx_torch::AttributeProto_AttributeType AttributeProto::_internal_type() const {
5825 return static_cast< ::onnx_torch::AttributeProto_AttributeType >(type_);
5826}
5827inline ::onnx_torch::AttributeProto_AttributeType AttributeProto::type() const {
5828 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.type)
5829 return _internal_type();
5830}
5831inline void AttributeProto::_internal_set_type(::onnx_torch::AttributeProto_AttributeType value) {
5832 assert(::onnx_torch::AttributeProto_AttributeType_IsValid(value));
5833 _has_bits_[0] |= 0x00000400u;
5834 type_ = value;
5835}
5836inline void AttributeProto::set_type(::onnx_torch::AttributeProto_AttributeType value) {
5837 _internal_set_type(value);
5838 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.type)
5839}
5840
5841// optional float f = 2;
5842inline bool AttributeProto::_internal_has_f() const {
5843 bool value = (_has_bits_[0] & 0x00000200u) != 0;
5844 return value;
5845}
5846inline bool AttributeProto::has_f() const {
5847 return _internal_has_f();
5848}
5849inline void AttributeProto::clear_f() {
5850 f_ = 0;
5851 _has_bits_[0] &= ~0x00000200u;
5852}
5853inline float AttributeProto::_internal_f() const {
5854 return f_;
5855}
5856inline float AttributeProto::f() const {
5857 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.f)
5858 return _internal_f();
5859}
5860inline void AttributeProto::_internal_set_f(float value) {
5861 _has_bits_[0] |= 0x00000200u;
5862 f_ = value;
5863}
5864inline void AttributeProto::set_f(float value) {
5865 _internal_set_f(value);
5866 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.f)
5867}
5868
5869// optional int64 i = 3;
5870inline bool AttributeProto::_internal_has_i() const {
5871 bool value = (_has_bits_[0] & 0x00000100u) != 0;
5872 return value;
5873}
5874inline bool AttributeProto::has_i() const {
5875 return _internal_has_i();
5876}
5877inline void AttributeProto::clear_i() {
5878 i_ = PROTOBUF_LONGLONG(0);
5879 _has_bits_[0] &= ~0x00000100u;
5880}
5881inline ::PROTOBUF_NAMESPACE_ID::int64 AttributeProto::_internal_i() const {
5882 return i_;
5883}
5884inline ::PROTOBUF_NAMESPACE_ID::int64 AttributeProto::i() const {
5885 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.i)
5886 return _internal_i();
5887}
5888inline void AttributeProto::_internal_set_i(::PROTOBUF_NAMESPACE_ID::int64 value) {
5889 _has_bits_[0] |= 0x00000100u;
5890 i_ = value;
5891}
5892inline void AttributeProto::set_i(::PROTOBUF_NAMESPACE_ID::int64 value) {
5893 _internal_set_i(value);
5894 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.i)
5895}
5896
5897// optional bytes s = 4;
5898inline bool AttributeProto::_internal_has_s() const {
5899 bool value = (_has_bits_[0] & 0x00000002u) != 0;
5900 return value;
5901}
5902inline bool AttributeProto::has_s() const {
5903 return _internal_has_s();
5904}
5905inline void AttributeProto::clear_s() {
5906 s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
5907 _has_bits_[0] &= ~0x00000002u;
5908}
5909inline const std::string& AttributeProto::s() const {
5910 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.s)
5911 return _internal_s();
5912}
5913inline void AttributeProto::set_s(const std::string& value) {
5914 _internal_set_s(value);
5915 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.s)
5916}
5917inline std::string* AttributeProto::mutable_s() {
5918 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.s)
5919 return _internal_mutable_s();
5920}
5921inline const std::string& AttributeProto::_internal_s() const {
5922 return s_.Get();
5923}
5924inline void AttributeProto::_internal_set_s(const std::string& value) {
5925 _has_bits_[0] |= 0x00000002u;
5926 s_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
5927}
5928inline void AttributeProto::set_s(std::string&& value) {
5929 _has_bits_[0] |= 0x00000002u;
5930 s_.Set(
5931 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
5932 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.AttributeProto.s)
5933}
5934inline void AttributeProto::set_s(const char* value) {
5935 GOOGLE_DCHECK(value != nullptr);
5936 _has_bits_[0] |= 0x00000002u;
5937 s_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
5938 GetArena());
5939 // @@protoc_insertion_point(field_set_char:onnx_torch.AttributeProto.s)
5940}
5941inline void AttributeProto::set_s(const void* value,
5942 size_t size) {
5943 _has_bits_[0] |= 0x00000002u;
5944 s_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
5945 reinterpret_cast<const char*>(value), size), GetArena());
5946 // @@protoc_insertion_point(field_set_pointer:onnx_torch.AttributeProto.s)
5947}
5948inline std::string* AttributeProto::_internal_mutable_s() {
5949 _has_bits_[0] |= 0x00000002u;
5950 return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
5951}
5952inline std::string* AttributeProto::release_s() {
5953 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.s)
5954 if (!_internal_has_s()) {
5955 return nullptr;
5956 }
5957 _has_bits_[0] &= ~0x00000002u;
5958 return s_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
5959}
5960inline void AttributeProto::set_allocated_s(std::string* s) {
5961 if (s != nullptr) {
5962 _has_bits_[0] |= 0x00000002u;
5963 } else {
5964 _has_bits_[0] &= ~0x00000002u;
5965 }
5966 s_.SetAllocated(&GetEmptyStringAlreadyInited(), s,
5967 GetArena());
5968 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.s)
5969}
5970
5971// optional .onnx_torch.TensorProto t = 5;
5972inline bool AttributeProto::_internal_has_t() const {
5973 bool value = (_has_bits_[0] & 0x00000010u) != 0;
5974 PROTOBUF_ASSUME(!value || t_ != nullptr);
5975 return value;
5976}
5977inline bool AttributeProto::has_t() const {
5978 return _internal_has_t();
5979}
5980inline void AttributeProto::clear_t() {
5981 if (t_ != nullptr) t_->Clear();
5982 _has_bits_[0] &= ~0x00000010u;
5983}
5984inline const ::onnx_torch::TensorProto& AttributeProto::_internal_t() const {
5985 const ::onnx_torch::TensorProto* p = t_;
5986 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorProto*>(
5987 &::onnx_torch::_TensorProto_default_instance_);
5988}
5989inline const ::onnx_torch::TensorProto& AttributeProto::t() const {
5990 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.t)
5991 return _internal_t();
5992}
5993inline void AttributeProto::unsafe_arena_set_allocated_t(
5994 ::onnx_torch::TensorProto* t) {
5995 if (GetArena() == nullptr) {
5996 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(t_);
5997 }
5998 t_ = t;
5999 if (t) {
6000 _has_bits_[0] |= 0x00000010u;
6001 } else {
6002 _has_bits_[0] &= ~0x00000010u;
6003 }
6004 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.AttributeProto.t)
6005}
6006inline ::onnx_torch::TensorProto* AttributeProto::release_t() {
6007 _has_bits_[0] &= ~0x00000010u;
6008 ::onnx_torch::TensorProto* temp = t_;
6009 t_ = nullptr;
6010 if (GetArena() != nullptr) {
6011 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
6012 }
6013 return temp;
6014}
6015inline ::onnx_torch::TensorProto* AttributeProto::unsafe_arena_release_t() {
6016 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.t)
6017 _has_bits_[0] &= ~0x00000010u;
6018 ::onnx_torch::TensorProto* temp = t_;
6019 t_ = nullptr;
6020 return temp;
6021}
6022inline ::onnx_torch::TensorProto* AttributeProto::_internal_mutable_t() {
6023 _has_bits_[0] |= 0x00000010u;
6024 if (t_ == nullptr) {
6025 auto* p = CreateMaybeMessage<::onnx_torch::TensorProto>(GetArena());
6026 t_ = p;
6027 }
6028 return t_;
6029}
6030inline ::onnx_torch::TensorProto* AttributeProto::mutable_t() {
6031 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.t)
6032 return _internal_mutable_t();
6033}
6034inline void AttributeProto::set_allocated_t(::onnx_torch::TensorProto* t) {
6035 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
6036 if (message_arena == nullptr) {
6037 delete t_;
6038 }
6039 if (t) {
6040 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6041 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(t);
6042 if (message_arena != submessage_arena) {
6043 t = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6044 message_arena, t, submessage_arena);
6045 }
6046 _has_bits_[0] |= 0x00000010u;
6047 } else {
6048 _has_bits_[0] &= ~0x00000010u;
6049 }
6050 t_ = t;
6051 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.t)
6052}
6053
6054// optional .onnx_torch.GraphProto g = 6;
6055inline bool AttributeProto::_internal_has_g() const {
6056 bool value = (_has_bits_[0] & 0x00000020u) != 0;
6057 PROTOBUF_ASSUME(!value || g_ != nullptr);
6058 return value;
6059}
6060inline bool AttributeProto::has_g() const {
6061 return _internal_has_g();
6062}
6063inline void AttributeProto::clear_g() {
6064 if (g_ != nullptr) g_->Clear();
6065 _has_bits_[0] &= ~0x00000020u;
6066}
6067inline const ::onnx_torch::GraphProto& AttributeProto::_internal_g() const {
6068 const ::onnx_torch::GraphProto* p = g_;
6069 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::GraphProto*>(
6070 &::onnx_torch::_GraphProto_default_instance_);
6071}
6072inline const ::onnx_torch::GraphProto& AttributeProto::g() const {
6073 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.g)
6074 return _internal_g();
6075}
6076inline void AttributeProto::unsafe_arena_set_allocated_g(
6077 ::onnx_torch::GraphProto* g) {
6078 if (GetArena() == nullptr) {
6079 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(g_);
6080 }
6081 g_ = g;
6082 if (g) {
6083 _has_bits_[0] |= 0x00000020u;
6084 } else {
6085 _has_bits_[0] &= ~0x00000020u;
6086 }
6087 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.AttributeProto.g)
6088}
6089inline ::onnx_torch::GraphProto* AttributeProto::release_g() {
6090 _has_bits_[0] &= ~0x00000020u;
6091 ::onnx_torch::GraphProto* temp = g_;
6092 g_ = nullptr;
6093 if (GetArena() != nullptr) {
6094 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
6095 }
6096 return temp;
6097}
6098inline ::onnx_torch::GraphProto* AttributeProto::unsafe_arena_release_g() {
6099 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.g)
6100 _has_bits_[0] &= ~0x00000020u;
6101 ::onnx_torch::GraphProto* temp = g_;
6102 g_ = nullptr;
6103 return temp;
6104}
6105inline ::onnx_torch::GraphProto* AttributeProto::_internal_mutable_g() {
6106 _has_bits_[0] |= 0x00000020u;
6107 if (g_ == nullptr) {
6108 auto* p = CreateMaybeMessage<::onnx_torch::GraphProto>(GetArena());
6109 g_ = p;
6110 }
6111 return g_;
6112}
6113inline ::onnx_torch::GraphProto* AttributeProto::mutable_g() {
6114 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.g)
6115 return _internal_mutable_g();
6116}
6117inline void AttributeProto::set_allocated_g(::onnx_torch::GraphProto* g) {
6118 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
6119 if (message_arena == nullptr) {
6120 delete g_;
6121 }
6122 if (g) {
6123 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6124 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(g);
6125 if (message_arena != submessage_arena) {
6126 g = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6127 message_arena, g, submessage_arena);
6128 }
6129 _has_bits_[0] |= 0x00000020u;
6130 } else {
6131 _has_bits_[0] &= ~0x00000020u;
6132 }
6133 g_ = g;
6134 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.g)
6135}
6136
6137// optional .onnx_torch.SparseTensorProto sparse_tensor = 22;
6138inline bool AttributeProto::_internal_has_sparse_tensor() const {
6139 bool value = (_has_bits_[0] & 0x00000080u) != 0;
6140 PROTOBUF_ASSUME(!value || sparse_tensor_ != nullptr);
6141 return value;
6142}
6143inline bool AttributeProto::has_sparse_tensor() const {
6144 return _internal_has_sparse_tensor();
6145}
6146inline void AttributeProto::clear_sparse_tensor() {
6147 if (sparse_tensor_ != nullptr) sparse_tensor_->Clear();
6148 _has_bits_[0] &= ~0x00000080u;
6149}
6150inline const ::onnx_torch::SparseTensorProto& AttributeProto::_internal_sparse_tensor() const {
6151 const ::onnx_torch::SparseTensorProto* p = sparse_tensor_;
6152 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::SparseTensorProto*>(
6153 &::onnx_torch::_SparseTensorProto_default_instance_);
6154}
6155inline const ::onnx_torch::SparseTensorProto& AttributeProto::sparse_tensor() const {
6156 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.sparse_tensor)
6157 return _internal_sparse_tensor();
6158}
6159inline void AttributeProto::unsafe_arena_set_allocated_sparse_tensor(
6160 ::onnx_torch::SparseTensorProto* sparse_tensor) {
6161 if (GetArena() == nullptr) {
6162 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sparse_tensor_);
6163 }
6164 sparse_tensor_ = sparse_tensor;
6165 if (sparse_tensor) {
6166 _has_bits_[0] |= 0x00000080u;
6167 } else {
6168 _has_bits_[0] &= ~0x00000080u;
6169 }
6170 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.AttributeProto.sparse_tensor)
6171}
6172inline ::onnx_torch::SparseTensorProto* AttributeProto::release_sparse_tensor() {
6173 _has_bits_[0] &= ~0x00000080u;
6174 ::onnx_torch::SparseTensorProto* temp = sparse_tensor_;
6175 sparse_tensor_ = nullptr;
6176 if (GetArena() != nullptr) {
6177 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
6178 }
6179 return temp;
6180}
6181inline ::onnx_torch::SparseTensorProto* AttributeProto::unsafe_arena_release_sparse_tensor() {
6182 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.sparse_tensor)
6183 _has_bits_[0] &= ~0x00000080u;
6184 ::onnx_torch::SparseTensorProto* temp = sparse_tensor_;
6185 sparse_tensor_ = nullptr;
6186 return temp;
6187}
6188inline ::onnx_torch::SparseTensorProto* AttributeProto::_internal_mutable_sparse_tensor() {
6189 _has_bits_[0] |= 0x00000080u;
6190 if (sparse_tensor_ == nullptr) {
6191 auto* p = CreateMaybeMessage<::onnx_torch::SparseTensorProto>(GetArena());
6192 sparse_tensor_ = p;
6193 }
6194 return sparse_tensor_;
6195}
6196inline ::onnx_torch::SparseTensorProto* AttributeProto::mutable_sparse_tensor() {
6197 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.sparse_tensor)
6198 return _internal_mutable_sparse_tensor();
6199}
6200inline void AttributeProto::set_allocated_sparse_tensor(::onnx_torch::SparseTensorProto* sparse_tensor) {
6201 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
6202 if (message_arena == nullptr) {
6203 delete sparse_tensor_;
6204 }
6205 if (sparse_tensor) {
6206 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6207 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(sparse_tensor);
6208 if (message_arena != submessage_arena) {
6209 sparse_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6210 message_arena, sparse_tensor, submessage_arena);
6211 }
6212 _has_bits_[0] |= 0x00000080u;
6213 } else {
6214 _has_bits_[0] &= ~0x00000080u;
6215 }
6216 sparse_tensor_ = sparse_tensor;
6217 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.sparse_tensor)
6218}
6219
6220// optional .onnx_torch.TypeProto tp = 14;
6221inline bool AttributeProto::_internal_has_tp() const {
6222 bool value = (_has_bits_[0] & 0x00000040u) != 0;
6223 PROTOBUF_ASSUME(!value || tp_ != nullptr);
6224 return value;
6225}
6226inline bool AttributeProto::has_tp() const {
6227 return _internal_has_tp();
6228}
6229inline void AttributeProto::clear_tp() {
6230 if (tp_ != nullptr) tp_->Clear();
6231 _has_bits_[0] &= ~0x00000040u;
6232}
6233inline const ::onnx_torch::TypeProto& AttributeProto::_internal_tp() const {
6234 const ::onnx_torch::TypeProto* p = tp_;
6235 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TypeProto*>(
6236 &::onnx_torch::_TypeProto_default_instance_);
6237}
6238inline const ::onnx_torch::TypeProto& AttributeProto::tp() const {
6239 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.tp)
6240 return _internal_tp();
6241}
6242inline void AttributeProto::unsafe_arena_set_allocated_tp(
6243 ::onnx_torch::TypeProto* tp) {
6244 if (GetArena() == nullptr) {
6245 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tp_);
6246 }
6247 tp_ = tp;
6248 if (tp) {
6249 _has_bits_[0] |= 0x00000040u;
6250 } else {
6251 _has_bits_[0] &= ~0x00000040u;
6252 }
6253 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.AttributeProto.tp)
6254}
6255inline ::onnx_torch::TypeProto* AttributeProto::release_tp() {
6256 _has_bits_[0] &= ~0x00000040u;
6257 ::onnx_torch::TypeProto* temp = tp_;
6258 tp_ = nullptr;
6259 if (GetArena() != nullptr) {
6260 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
6261 }
6262 return temp;
6263}
6264inline ::onnx_torch::TypeProto* AttributeProto::unsafe_arena_release_tp() {
6265 // @@protoc_insertion_point(field_release:onnx_torch.AttributeProto.tp)
6266 _has_bits_[0] &= ~0x00000040u;
6267 ::onnx_torch::TypeProto* temp = tp_;
6268 tp_ = nullptr;
6269 return temp;
6270}
6271inline ::onnx_torch::TypeProto* AttributeProto::_internal_mutable_tp() {
6272 _has_bits_[0] |= 0x00000040u;
6273 if (tp_ == nullptr) {
6274 auto* p = CreateMaybeMessage<::onnx_torch::TypeProto>(GetArena());
6275 tp_ = p;
6276 }
6277 return tp_;
6278}
6279inline ::onnx_torch::TypeProto* AttributeProto::mutable_tp() {
6280 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.tp)
6281 return _internal_mutable_tp();
6282}
6283inline void AttributeProto::set_allocated_tp(::onnx_torch::TypeProto* tp) {
6284 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
6285 if (message_arena == nullptr) {
6286 delete tp_;
6287 }
6288 if (tp) {
6289 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6290 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(tp);
6291 if (message_arena != submessage_arena) {
6292 tp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6293 message_arena, tp, submessage_arena);
6294 }
6295 _has_bits_[0] |= 0x00000040u;
6296 } else {
6297 _has_bits_[0] &= ~0x00000040u;
6298 }
6299 tp_ = tp;
6300 // @@protoc_insertion_point(field_set_allocated:onnx_torch.AttributeProto.tp)
6301}
6302
6303// repeated float floats = 7;
6304inline int AttributeProto::_internal_floats_size() const {
6305 return floats_.size();
6306}
6307inline int AttributeProto::floats_size() const {
6308 return _internal_floats_size();
6309}
6310inline void AttributeProto::clear_floats() {
6311 floats_.Clear();
6312}
6313inline float AttributeProto::_internal_floats(int index) const {
6314 return floats_.Get(index);
6315}
6316inline float AttributeProto::floats(int index) const {
6317 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.floats)
6318 return _internal_floats(index);
6319}
6320inline void AttributeProto::set_floats(int index, float value) {
6321 floats_.Set(index, value);
6322 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.floats)
6323}
6324inline void AttributeProto::_internal_add_floats(float value) {
6325 floats_.Add(value);
6326}
6327inline void AttributeProto::add_floats(float value) {
6328 _internal_add_floats(value);
6329 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.floats)
6330}
6331inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
6332AttributeProto::_internal_floats() const {
6333 return floats_;
6334}
6335inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
6336AttributeProto::floats() const {
6337 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.floats)
6338 return _internal_floats();
6339}
6340inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
6341AttributeProto::_internal_mutable_floats() {
6342 return &floats_;
6343}
6344inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
6345AttributeProto::mutable_floats() {
6346 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.floats)
6347 return _internal_mutable_floats();
6348}
6349
6350// repeated int64 ints = 8;
6351inline int AttributeProto::_internal_ints_size() const {
6352 return ints_.size();
6353}
6354inline int AttributeProto::ints_size() const {
6355 return _internal_ints_size();
6356}
6357inline void AttributeProto::clear_ints() {
6358 ints_.Clear();
6359}
6360inline ::PROTOBUF_NAMESPACE_ID::int64 AttributeProto::_internal_ints(int index) const {
6361 return ints_.Get(index);
6362}
6363inline ::PROTOBUF_NAMESPACE_ID::int64 AttributeProto::ints(int index) const {
6364 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.ints)
6365 return _internal_ints(index);
6366}
6367inline void AttributeProto::set_ints(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
6368 ints_.Set(index, value);
6369 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.ints)
6370}
6371inline void AttributeProto::_internal_add_ints(::PROTOBUF_NAMESPACE_ID::int64 value) {
6372 ints_.Add(value);
6373}
6374inline void AttributeProto::add_ints(::PROTOBUF_NAMESPACE_ID::int64 value) {
6375 _internal_add_ints(value);
6376 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.ints)
6377}
6378inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
6379AttributeProto::_internal_ints() const {
6380 return ints_;
6381}
6382inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
6383AttributeProto::ints() const {
6384 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.ints)
6385 return _internal_ints();
6386}
6387inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
6388AttributeProto::_internal_mutable_ints() {
6389 return &ints_;
6390}
6391inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
6392AttributeProto::mutable_ints() {
6393 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.ints)
6394 return _internal_mutable_ints();
6395}
6396
6397// repeated bytes strings = 9;
6398inline int AttributeProto::_internal_strings_size() const {
6399 return strings_.size();
6400}
6401inline int AttributeProto::strings_size() const {
6402 return _internal_strings_size();
6403}
6404inline void AttributeProto::clear_strings() {
6405 strings_.Clear();
6406}
6407inline std::string* AttributeProto::add_strings() {
6408 // @@protoc_insertion_point(field_add_mutable:onnx_torch.AttributeProto.strings)
6409 return _internal_add_strings();
6410}
6411inline const std::string& AttributeProto::_internal_strings(int index) const {
6412 return strings_.Get(index);
6413}
6414inline const std::string& AttributeProto::strings(int index) const {
6415 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.strings)
6416 return _internal_strings(index);
6417}
6418inline std::string* AttributeProto::mutable_strings(int index) {
6419 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.strings)
6420 return strings_.Mutable(index);
6421}
6422inline void AttributeProto::set_strings(int index, const std::string& value) {
6423 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.strings)
6424 strings_.Mutable(index)->assign(value);
6425}
6426inline void AttributeProto::set_strings(int index, std::string&& value) {
6427 // @@protoc_insertion_point(field_set:onnx_torch.AttributeProto.strings)
6428 strings_.Mutable(index)->assign(std::move(value));
6429}
6430inline void AttributeProto::set_strings(int index, const char* value) {
6431 GOOGLE_DCHECK(value != nullptr);
6432 strings_.Mutable(index)->assign(value);
6433 // @@protoc_insertion_point(field_set_char:onnx_torch.AttributeProto.strings)
6434}
6435inline void AttributeProto::set_strings(int index, const void* value, size_t size) {
6436 strings_.Mutable(index)->assign(
6437 reinterpret_cast<const char*>(value), size);
6438 // @@protoc_insertion_point(field_set_pointer:onnx_torch.AttributeProto.strings)
6439}
6440inline std::string* AttributeProto::_internal_add_strings() {
6441 return strings_.Add();
6442}
6443inline void AttributeProto::add_strings(const std::string& value) {
6444 strings_.Add()->assign(value);
6445 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.strings)
6446}
6447inline void AttributeProto::add_strings(std::string&& value) {
6448 strings_.Add(std::move(value));
6449 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.strings)
6450}
6451inline void AttributeProto::add_strings(const char* value) {
6452 GOOGLE_DCHECK(value != nullptr);
6453 strings_.Add()->assign(value);
6454 // @@protoc_insertion_point(field_add_char:onnx_torch.AttributeProto.strings)
6455}
6456inline void AttributeProto::add_strings(const void* value, size_t size) {
6457 strings_.Add()->assign(reinterpret_cast<const char*>(value), size);
6458 // @@protoc_insertion_point(field_add_pointer:onnx_torch.AttributeProto.strings)
6459}
6460inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
6461AttributeProto::strings() const {
6462 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.strings)
6463 return strings_;
6464}
6465inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
6466AttributeProto::mutable_strings() {
6467 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.strings)
6468 return &strings_;
6469}
6470
6471// repeated .onnx_torch.TensorProto tensors = 10;
6472inline int AttributeProto::_internal_tensors_size() const {
6473 return tensors_.size();
6474}
6475inline int AttributeProto::tensors_size() const {
6476 return _internal_tensors_size();
6477}
6478inline void AttributeProto::clear_tensors() {
6479 tensors_.Clear();
6480}
6481inline ::onnx_torch::TensorProto* AttributeProto::mutable_tensors(int index) {
6482 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.tensors)
6483 return tensors_.Mutable(index);
6484}
6485inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >*
6486AttributeProto::mutable_tensors() {
6487 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.tensors)
6488 return &tensors_;
6489}
6490inline const ::onnx_torch::TensorProto& AttributeProto::_internal_tensors(int index) const {
6491 return tensors_.Get(index);
6492}
6493inline const ::onnx_torch::TensorProto& AttributeProto::tensors(int index) const {
6494 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.tensors)
6495 return _internal_tensors(index);
6496}
6497inline ::onnx_torch::TensorProto* AttributeProto::_internal_add_tensors() {
6498 return tensors_.Add();
6499}
6500inline ::onnx_torch::TensorProto* AttributeProto::add_tensors() {
6501 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.tensors)
6502 return _internal_add_tensors();
6503}
6504inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >&
6505AttributeProto::tensors() const {
6506 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.tensors)
6507 return tensors_;
6508}
6509
6510// repeated .onnx_torch.GraphProto graphs = 11;
6511inline int AttributeProto::_internal_graphs_size() const {
6512 return graphs_.size();
6513}
6514inline int AttributeProto::graphs_size() const {
6515 return _internal_graphs_size();
6516}
6517inline void AttributeProto::clear_graphs() {
6518 graphs_.Clear();
6519}
6520inline ::onnx_torch::GraphProto* AttributeProto::mutable_graphs(int index) {
6521 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.graphs)
6522 return graphs_.Mutable(index);
6523}
6524inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::GraphProto >*
6525AttributeProto::mutable_graphs() {
6526 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.graphs)
6527 return &graphs_;
6528}
6529inline const ::onnx_torch::GraphProto& AttributeProto::_internal_graphs(int index) const {
6530 return graphs_.Get(index);
6531}
6532inline const ::onnx_torch::GraphProto& AttributeProto::graphs(int index) const {
6533 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.graphs)
6534 return _internal_graphs(index);
6535}
6536inline ::onnx_torch::GraphProto* AttributeProto::_internal_add_graphs() {
6537 return graphs_.Add();
6538}
6539inline ::onnx_torch::GraphProto* AttributeProto::add_graphs() {
6540 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.graphs)
6541 return _internal_add_graphs();
6542}
6543inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::GraphProto >&
6544AttributeProto::graphs() const {
6545 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.graphs)
6546 return graphs_;
6547}
6548
6549// repeated .onnx_torch.SparseTensorProto sparse_tensors = 23;
6550inline int AttributeProto::_internal_sparse_tensors_size() const {
6551 return sparse_tensors_.size();
6552}
6553inline int AttributeProto::sparse_tensors_size() const {
6554 return _internal_sparse_tensors_size();
6555}
6556inline void AttributeProto::clear_sparse_tensors() {
6557 sparse_tensors_.Clear();
6558}
6559inline ::onnx_torch::SparseTensorProto* AttributeProto::mutable_sparse_tensors(int index) {
6560 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.sparse_tensors)
6561 return sparse_tensors_.Mutable(index);
6562}
6563inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >*
6564AttributeProto::mutable_sparse_tensors() {
6565 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.sparse_tensors)
6566 return &sparse_tensors_;
6567}
6568inline const ::onnx_torch::SparseTensorProto& AttributeProto::_internal_sparse_tensors(int index) const {
6569 return sparse_tensors_.Get(index);
6570}
6571inline const ::onnx_torch::SparseTensorProto& AttributeProto::sparse_tensors(int index) const {
6572 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.sparse_tensors)
6573 return _internal_sparse_tensors(index);
6574}
6575inline ::onnx_torch::SparseTensorProto* AttributeProto::_internal_add_sparse_tensors() {
6576 return sparse_tensors_.Add();
6577}
6578inline ::onnx_torch::SparseTensorProto* AttributeProto::add_sparse_tensors() {
6579 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.sparse_tensors)
6580 return _internal_add_sparse_tensors();
6581}
6582inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >&
6583AttributeProto::sparse_tensors() const {
6584 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.sparse_tensors)
6585 return sparse_tensors_;
6586}
6587
6588// repeated .onnx_torch.TypeProto type_protos = 15;
6589inline int AttributeProto::_internal_type_protos_size() const {
6590 return type_protos_.size();
6591}
6592inline int AttributeProto::type_protos_size() const {
6593 return _internal_type_protos_size();
6594}
6595inline void AttributeProto::clear_type_protos() {
6596 type_protos_.Clear();
6597}
6598inline ::onnx_torch::TypeProto* AttributeProto::mutable_type_protos(int index) {
6599 // @@protoc_insertion_point(field_mutable:onnx_torch.AttributeProto.type_protos)
6600 return type_protos_.Mutable(index);
6601}
6602inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TypeProto >*
6603AttributeProto::mutable_type_protos() {
6604 // @@protoc_insertion_point(field_mutable_list:onnx_torch.AttributeProto.type_protos)
6605 return &type_protos_;
6606}
6607inline const ::onnx_torch::TypeProto& AttributeProto::_internal_type_protos(int index) const {
6608 return type_protos_.Get(index);
6609}
6610inline const ::onnx_torch::TypeProto& AttributeProto::type_protos(int index) const {
6611 // @@protoc_insertion_point(field_get:onnx_torch.AttributeProto.type_protos)
6612 return _internal_type_protos(index);
6613}
6614inline ::onnx_torch::TypeProto* AttributeProto::_internal_add_type_protos() {
6615 return type_protos_.Add();
6616}
6617inline ::onnx_torch::TypeProto* AttributeProto::add_type_protos() {
6618 // @@protoc_insertion_point(field_add:onnx_torch.AttributeProto.type_protos)
6619 return _internal_add_type_protos();
6620}
6621inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TypeProto >&
6622AttributeProto::type_protos() const {
6623 // @@protoc_insertion_point(field_list:onnx_torch.AttributeProto.type_protos)
6624 return type_protos_;
6625}
6626
6627// -------------------------------------------------------------------
6628
6629// ValueInfoProto
6630
6631// optional string name = 1;
6632inline bool ValueInfoProto::_internal_has_name() const {
6633 bool value = (_has_bits_[0] & 0x00000001u) != 0;
6634 return value;
6635}
6636inline bool ValueInfoProto::has_name() const {
6637 return _internal_has_name();
6638}
6639inline void ValueInfoProto::clear_name() {
6640 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
6641 _has_bits_[0] &= ~0x00000001u;
6642}
6643inline const std::string& ValueInfoProto::name() const {
6644 // @@protoc_insertion_point(field_get:onnx_torch.ValueInfoProto.name)
6645 return _internal_name();
6646}
6647inline void ValueInfoProto::set_name(const std::string& value) {
6648 _internal_set_name(value);
6649 // @@protoc_insertion_point(field_set:onnx_torch.ValueInfoProto.name)
6650}
6651inline std::string* ValueInfoProto::mutable_name() {
6652 // @@protoc_insertion_point(field_mutable:onnx_torch.ValueInfoProto.name)
6653 return _internal_mutable_name();
6654}
6655inline const std::string& ValueInfoProto::_internal_name() const {
6656 return name_.Get();
6657}
6658inline void ValueInfoProto::_internal_set_name(const std::string& value) {
6659 _has_bits_[0] |= 0x00000001u;
6660 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
6661}
6662inline void ValueInfoProto::set_name(std::string&& value) {
6663 _has_bits_[0] |= 0x00000001u;
6664 name_.Set(
6665 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
6666 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ValueInfoProto.name)
6667}
6668inline void ValueInfoProto::set_name(const char* value) {
6669 GOOGLE_DCHECK(value != nullptr);
6670 _has_bits_[0] |= 0x00000001u;
6671 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
6672 GetArena());
6673 // @@protoc_insertion_point(field_set_char:onnx_torch.ValueInfoProto.name)
6674}
6675inline void ValueInfoProto::set_name(const char* value,
6676 size_t size) {
6677 _has_bits_[0] |= 0x00000001u;
6678 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
6679 reinterpret_cast<const char*>(value), size), GetArena());
6680 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ValueInfoProto.name)
6681}
6682inline std::string* ValueInfoProto::_internal_mutable_name() {
6683 _has_bits_[0] |= 0x00000001u;
6684 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
6685}
6686inline std::string* ValueInfoProto::release_name() {
6687 // @@protoc_insertion_point(field_release:onnx_torch.ValueInfoProto.name)
6688 if (!_internal_has_name()) {
6689 return nullptr;
6690 }
6691 _has_bits_[0] &= ~0x00000001u;
6692 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
6693}
6694inline void ValueInfoProto::set_allocated_name(std::string* name) {
6695 if (name != nullptr) {
6696 _has_bits_[0] |= 0x00000001u;
6697 } else {
6698 _has_bits_[0] &= ~0x00000001u;
6699 }
6700 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
6701 GetArena());
6702 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ValueInfoProto.name)
6703}
6704
6705// optional .onnx_torch.TypeProto type = 2;
6706inline bool ValueInfoProto::_internal_has_type() const {
6707 bool value = (_has_bits_[0] & 0x00000004u) != 0;
6708 PROTOBUF_ASSUME(!value || type_ != nullptr);
6709 return value;
6710}
6711inline bool ValueInfoProto::has_type() const {
6712 return _internal_has_type();
6713}
6714inline void ValueInfoProto::clear_type() {
6715 if (type_ != nullptr) type_->Clear();
6716 _has_bits_[0] &= ~0x00000004u;
6717}
6718inline const ::onnx_torch::TypeProto& ValueInfoProto::_internal_type() const {
6719 const ::onnx_torch::TypeProto* p = type_;
6720 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TypeProto*>(
6721 &::onnx_torch::_TypeProto_default_instance_);
6722}
6723inline const ::onnx_torch::TypeProto& ValueInfoProto::type() const {
6724 // @@protoc_insertion_point(field_get:onnx_torch.ValueInfoProto.type)
6725 return _internal_type();
6726}
6727inline void ValueInfoProto::unsafe_arena_set_allocated_type(
6728 ::onnx_torch::TypeProto* type) {
6729 if (GetArena() == nullptr) {
6730 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_);
6731 }
6732 type_ = type;
6733 if (type) {
6734 _has_bits_[0] |= 0x00000004u;
6735 } else {
6736 _has_bits_[0] &= ~0x00000004u;
6737 }
6738 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.ValueInfoProto.type)
6739}
6740inline ::onnx_torch::TypeProto* ValueInfoProto::release_type() {
6741 _has_bits_[0] &= ~0x00000004u;
6742 ::onnx_torch::TypeProto* temp = type_;
6743 type_ = nullptr;
6744 if (GetArena() != nullptr) {
6745 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
6746 }
6747 return temp;
6748}
6749inline ::onnx_torch::TypeProto* ValueInfoProto::unsafe_arena_release_type() {
6750 // @@protoc_insertion_point(field_release:onnx_torch.ValueInfoProto.type)
6751 _has_bits_[0] &= ~0x00000004u;
6752 ::onnx_torch::TypeProto* temp = type_;
6753 type_ = nullptr;
6754 return temp;
6755}
6756inline ::onnx_torch::TypeProto* ValueInfoProto::_internal_mutable_type() {
6757 _has_bits_[0] |= 0x00000004u;
6758 if (type_ == nullptr) {
6759 auto* p = CreateMaybeMessage<::onnx_torch::TypeProto>(GetArena());
6760 type_ = p;
6761 }
6762 return type_;
6763}
6764inline ::onnx_torch::TypeProto* ValueInfoProto::mutable_type() {
6765 // @@protoc_insertion_point(field_mutable:onnx_torch.ValueInfoProto.type)
6766 return _internal_mutable_type();
6767}
6768inline void ValueInfoProto::set_allocated_type(::onnx_torch::TypeProto* type) {
6769 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
6770 if (message_arena == nullptr) {
6771 delete type_;
6772 }
6773 if (type) {
6774 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6775 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(type);
6776 if (message_arena != submessage_arena) {
6777 type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6778 message_arena, type, submessage_arena);
6779 }
6780 _has_bits_[0] |= 0x00000004u;
6781 } else {
6782 _has_bits_[0] &= ~0x00000004u;
6783 }
6784 type_ = type;
6785 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ValueInfoProto.type)
6786}
6787
6788// optional string doc_string = 3;
6789inline bool ValueInfoProto::_internal_has_doc_string() const {
6790 bool value = (_has_bits_[0] & 0x00000002u) != 0;
6791 return value;
6792}
6793inline bool ValueInfoProto::has_doc_string() const {
6794 return _internal_has_doc_string();
6795}
6796inline void ValueInfoProto::clear_doc_string() {
6797 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
6798 _has_bits_[0] &= ~0x00000002u;
6799}
6800inline const std::string& ValueInfoProto::doc_string() const {
6801 // @@protoc_insertion_point(field_get:onnx_torch.ValueInfoProto.doc_string)
6802 return _internal_doc_string();
6803}
6804inline void ValueInfoProto::set_doc_string(const std::string& value) {
6805 _internal_set_doc_string(value);
6806 // @@protoc_insertion_point(field_set:onnx_torch.ValueInfoProto.doc_string)
6807}
6808inline std::string* ValueInfoProto::mutable_doc_string() {
6809 // @@protoc_insertion_point(field_mutable:onnx_torch.ValueInfoProto.doc_string)
6810 return _internal_mutable_doc_string();
6811}
6812inline const std::string& ValueInfoProto::_internal_doc_string() const {
6813 return doc_string_.Get();
6814}
6815inline void ValueInfoProto::_internal_set_doc_string(const std::string& value) {
6816 _has_bits_[0] |= 0x00000002u;
6817 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
6818}
6819inline void ValueInfoProto::set_doc_string(std::string&& value) {
6820 _has_bits_[0] |= 0x00000002u;
6821 doc_string_.Set(
6822 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
6823 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ValueInfoProto.doc_string)
6824}
6825inline void ValueInfoProto::set_doc_string(const char* value) {
6826 GOOGLE_DCHECK(value != nullptr);
6827 _has_bits_[0] |= 0x00000002u;
6828 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
6829 GetArena());
6830 // @@protoc_insertion_point(field_set_char:onnx_torch.ValueInfoProto.doc_string)
6831}
6832inline void ValueInfoProto::set_doc_string(const char* value,
6833 size_t size) {
6834 _has_bits_[0] |= 0x00000002u;
6835 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
6836 reinterpret_cast<const char*>(value), size), GetArena());
6837 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ValueInfoProto.doc_string)
6838}
6839inline std::string* ValueInfoProto::_internal_mutable_doc_string() {
6840 _has_bits_[0] |= 0x00000002u;
6841 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
6842}
6843inline std::string* ValueInfoProto::release_doc_string() {
6844 // @@protoc_insertion_point(field_release:onnx_torch.ValueInfoProto.doc_string)
6845 if (!_internal_has_doc_string()) {
6846 return nullptr;
6847 }
6848 _has_bits_[0] &= ~0x00000002u;
6849 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
6850}
6851inline void ValueInfoProto::set_allocated_doc_string(std::string* doc_string) {
6852 if (doc_string != nullptr) {
6853 _has_bits_[0] |= 0x00000002u;
6854 } else {
6855 _has_bits_[0] &= ~0x00000002u;
6856 }
6857 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
6858 GetArena());
6859 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ValueInfoProto.doc_string)
6860}
6861
6862// -------------------------------------------------------------------
6863
6864// NodeProto
6865
6866// repeated string input = 1;
6867inline int NodeProto::_internal_input_size() const {
6868 return input_.size();
6869}
6870inline int NodeProto::input_size() const {
6871 return _internal_input_size();
6872}
6873inline void NodeProto::clear_input() {
6874 input_.Clear();
6875}
6876inline std::string* NodeProto::add_input() {
6877 // @@protoc_insertion_point(field_add_mutable:onnx_torch.NodeProto.input)
6878 return _internal_add_input();
6879}
6880inline const std::string& NodeProto::_internal_input(int index) const {
6881 return input_.Get(index);
6882}
6883inline const std::string& NodeProto::input(int index) const {
6884 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.input)
6885 return _internal_input(index);
6886}
6887inline std::string* NodeProto::mutable_input(int index) {
6888 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.input)
6889 return input_.Mutable(index);
6890}
6891inline void NodeProto::set_input(int index, const std::string& value) {
6892 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.input)
6893 input_.Mutable(index)->assign(value);
6894}
6895inline void NodeProto::set_input(int index, std::string&& value) {
6896 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.input)
6897 input_.Mutable(index)->assign(std::move(value));
6898}
6899inline void NodeProto::set_input(int index, const char* value) {
6900 GOOGLE_DCHECK(value != nullptr);
6901 input_.Mutable(index)->assign(value);
6902 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.input)
6903}
6904inline void NodeProto::set_input(int index, const char* value, size_t size) {
6905 input_.Mutable(index)->assign(
6906 reinterpret_cast<const char*>(value), size);
6907 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.input)
6908}
6909inline std::string* NodeProto::_internal_add_input() {
6910 return input_.Add();
6911}
6912inline void NodeProto::add_input(const std::string& value) {
6913 input_.Add()->assign(value);
6914 // @@protoc_insertion_point(field_add:onnx_torch.NodeProto.input)
6915}
6916inline void NodeProto::add_input(std::string&& value) {
6917 input_.Add(std::move(value));
6918 // @@protoc_insertion_point(field_add:onnx_torch.NodeProto.input)
6919}
6920inline void NodeProto::add_input(const char* value) {
6921 GOOGLE_DCHECK(value != nullptr);
6922 input_.Add()->assign(value);
6923 // @@protoc_insertion_point(field_add_char:onnx_torch.NodeProto.input)
6924}
6925inline void NodeProto::add_input(const char* value, size_t size) {
6926 input_.Add()->assign(reinterpret_cast<const char*>(value), size);
6927 // @@protoc_insertion_point(field_add_pointer:onnx_torch.NodeProto.input)
6928}
6929inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
6930NodeProto::input() const {
6931 // @@protoc_insertion_point(field_list:onnx_torch.NodeProto.input)
6932 return input_;
6933}
6934inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
6935NodeProto::mutable_input() {
6936 // @@protoc_insertion_point(field_mutable_list:onnx_torch.NodeProto.input)
6937 return &input_;
6938}
6939
6940// repeated string output = 2;
6941inline int NodeProto::_internal_output_size() const {
6942 return output_.size();
6943}
6944inline int NodeProto::output_size() const {
6945 return _internal_output_size();
6946}
6947inline void NodeProto::clear_output() {
6948 output_.Clear();
6949}
6950inline std::string* NodeProto::add_output() {
6951 // @@protoc_insertion_point(field_add_mutable:onnx_torch.NodeProto.output)
6952 return _internal_add_output();
6953}
6954inline const std::string& NodeProto::_internal_output(int index) const {
6955 return output_.Get(index);
6956}
6957inline const std::string& NodeProto::output(int index) const {
6958 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.output)
6959 return _internal_output(index);
6960}
6961inline std::string* NodeProto::mutable_output(int index) {
6962 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.output)
6963 return output_.Mutable(index);
6964}
6965inline void NodeProto::set_output(int index, const std::string& value) {
6966 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.output)
6967 output_.Mutable(index)->assign(value);
6968}
6969inline void NodeProto::set_output(int index, std::string&& value) {
6970 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.output)
6971 output_.Mutable(index)->assign(std::move(value));
6972}
6973inline void NodeProto::set_output(int index, const char* value) {
6974 GOOGLE_DCHECK(value != nullptr);
6975 output_.Mutable(index)->assign(value);
6976 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.output)
6977}
6978inline void NodeProto::set_output(int index, const char* value, size_t size) {
6979 output_.Mutable(index)->assign(
6980 reinterpret_cast<const char*>(value), size);
6981 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.output)
6982}
6983inline std::string* NodeProto::_internal_add_output() {
6984 return output_.Add();
6985}
6986inline void NodeProto::add_output(const std::string& value) {
6987 output_.Add()->assign(value);
6988 // @@protoc_insertion_point(field_add:onnx_torch.NodeProto.output)
6989}
6990inline void NodeProto::add_output(std::string&& value) {
6991 output_.Add(std::move(value));
6992 // @@protoc_insertion_point(field_add:onnx_torch.NodeProto.output)
6993}
6994inline void NodeProto::add_output(const char* value) {
6995 GOOGLE_DCHECK(value != nullptr);
6996 output_.Add()->assign(value);
6997 // @@protoc_insertion_point(field_add_char:onnx_torch.NodeProto.output)
6998}
6999inline void NodeProto::add_output(const char* value, size_t size) {
7000 output_.Add()->assign(reinterpret_cast<const char*>(value), size);
7001 // @@protoc_insertion_point(field_add_pointer:onnx_torch.NodeProto.output)
7002}
7003inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
7004NodeProto::output() const {
7005 // @@protoc_insertion_point(field_list:onnx_torch.NodeProto.output)
7006 return output_;
7007}
7008inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
7009NodeProto::mutable_output() {
7010 // @@protoc_insertion_point(field_mutable_list:onnx_torch.NodeProto.output)
7011 return &output_;
7012}
7013
7014// optional string name = 3;
7015inline bool NodeProto::_internal_has_name() const {
7016 bool value = (_has_bits_[0] & 0x00000001u) != 0;
7017 return value;
7018}
7019inline bool NodeProto::has_name() const {
7020 return _internal_has_name();
7021}
7022inline void NodeProto::clear_name() {
7023 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7024 _has_bits_[0] &= ~0x00000001u;
7025}
7026inline const std::string& NodeProto::name() const {
7027 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.name)
7028 return _internal_name();
7029}
7030inline void NodeProto::set_name(const std::string& value) {
7031 _internal_set_name(value);
7032 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.name)
7033}
7034inline std::string* NodeProto::mutable_name() {
7035 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.name)
7036 return _internal_mutable_name();
7037}
7038inline const std::string& NodeProto::_internal_name() const {
7039 return name_.Get();
7040}
7041inline void NodeProto::_internal_set_name(const std::string& value) {
7042 _has_bits_[0] |= 0x00000001u;
7043 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7044}
7045inline void NodeProto::set_name(std::string&& value) {
7046 _has_bits_[0] |= 0x00000001u;
7047 name_.Set(
7048 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7049 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.NodeProto.name)
7050}
7051inline void NodeProto::set_name(const char* value) {
7052 GOOGLE_DCHECK(value != nullptr);
7053 _has_bits_[0] |= 0x00000001u;
7054 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7055 GetArena());
7056 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.name)
7057}
7058inline void NodeProto::set_name(const char* value,
7059 size_t size) {
7060 _has_bits_[0] |= 0x00000001u;
7061 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7062 reinterpret_cast<const char*>(value), size), GetArena());
7063 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.name)
7064}
7065inline std::string* NodeProto::_internal_mutable_name() {
7066 _has_bits_[0] |= 0x00000001u;
7067 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7068}
7069inline std::string* NodeProto::release_name() {
7070 // @@protoc_insertion_point(field_release:onnx_torch.NodeProto.name)
7071 if (!_internal_has_name()) {
7072 return nullptr;
7073 }
7074 _has_bits_[0] &= ~0x00000001u;
7075 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7076}
7077inline void NodeProto::set_allocated_name(std::string* name) {
7078 if (name != nullptr) {
7079 _has_bits_[0] |= 0x00000001u;
7080 } else {
7081 _has_bits_[0] &= ~0x00000001u;
7082 }
7083 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
7084 GetArena());
7085 // @@protoc_insertion_point(field_set_allocated:onnx_torch.NodeProto.name)
7086}
7087
7088// optional string op_type = 4;
7089inline bool NodeProto::_internal_has_op_type() const {
7090 bool value = (_has_bits_[0] & 0x00000002u) != 0;
7091 return value;
7092}
7093inline bool NodeProto::has_op_type() const {
7094 return _internal_has_op_type();
7095}
7096inline void NodeProto::clear_op_type() {
7097 op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7098 _has_bits_[0] &= ~0x00000002u;
7099}
7100inline const std::string& NodeProto::op_type() const {
7101 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.op_type)
7102 return _internal_op_type();
7103}
7104inline void NodeProto::set_op_type(const std::string& value) {
7105 _internal_set_op_type(value);
7106 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.op_type)
7107}
7108inline std::string* NodeProto::mutable_op_type() {
7109 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.op_type)
7110 return _internal_mutable_op_type();
7111}
7112inline const std::string& NodeProto::_internal_op_type() const {
7113 return op_type_.Get();
7114}
7115inline void NodeProto::_internal_set_op_type(const std::string& value) {
7116 _has_bits_[0] |= 0x00000002u;
7117 op_type_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7118}
7119inline void NodeProto::set_op_type(std::string&& value) {
7120 _has_bits_[0] |= 0x00000002u;
7121 op_type_.Set(
7122 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7123 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.NodeProto.op_type)
7124}
7125inline void NodeProto::set_op_type(const char* value) {
7126 GOOGLE_DCHECK(value != nullptr);
7127 _has_bits_[0] |= 0x00000002u;
7128 op_type_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7129 GetArena());
7130 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.op_type)
7131}
7132inline void NodeProto::set_op_type(const char* value,
7133 size_t size) {
7134 _has_bits_[0] |= 0x00000002u;
7135 op_type_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7136 reinterpret_cast<const char*>(value), size), GetArena());
7137 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.op_type)
7138}
7139inline std::string* NodeProto::_internal_mutable_op_type() {
7140 _has_bits_[0] |= 0x00000002u;
7141 return op_type_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7142}
7143inline std::string* NodeProto::release_op_type() {
7144 // @@protoc_insertion_point(field_release:onnx_torch.NodeProto.op_type)
7145 if (!_internal_has_op_type()) {
7146 return nullptr;
7147 }
7148 _has_bits_[0] &= ~0x00000002u;
7149 return op_type_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7150}
7151inline void NodeProto::set_allocated_op_type(std::string* op_type) {
7152 if (op_type != nullptr) {
7153 _has_bits_[0] |= 0x00000002u;
7154 } else {
7155 _has_bits_[0] &= ~0x00000002u;
7156 }
7157 op_type_.SetAllocated(&GetEmptyStringAlreadyInited(), op_type,
7158 GetArena());
7159 // @@protoc_insertion_point(field_set_allocated:onnx_torch.NodeProto.op_type)
7160}
7161
7162// optional string domain = 7;
7163inline bool NodeProto::_internal_has_domain() const {
7164 bool value = (_has_bits_[0] & 0x00000008u) != 0;
7165 return value;
7166}
7167inline bool NodeProto::has_domain() const {
7168 return _internal_has_domain();
7169}
7170inline void NodeProto::clear_domain() {
7171 domain_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7172 _has_bits_[0] &= ~0x00000008u;
7173}
7174inline const std::string& NodeProto::domain() const {
7175 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.domain)
7176 return _internal_domain();
7177}
7178inline void NodeProto::set_domain(const std::string& value) {
7179 _internal_set_domain(value);
7180 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.domain)
7181}
7182inline std::string* NodeProto::mutable_domain() {
7183 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.domain)
7184 return _internal_mutable_domain();
7185}
7186inline const std::string& NodeProto::_internal_domain() const {
7187 return domain_.Get();
7188}
7189inline void NodeProto::_internal_set_domain(const std::string& value) {
7190 _has_bits_[0] |= 0x00000008u;
7191 domain_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7192}
7193inline void NodeProto::set_domain(std::string&& value) {
7194 _has_bits_[0] |= 0x00000008u;
7195 domain_.Set(
7196 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7197 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.NodeProto.domain)
7198}
7199inline void NodeProto::set_domain(const char* value) {
7200 GOOGLE_DCHECK(value != nullptr);
7201 _has_bits_[0] |= 0x00000008u;
7202 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7203 GetArena());
7204 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.domain)
7205}
7206inline void NodeProto::set_domain(const char* value,
7207 size_t size) {
7208 _has_bits_[0] |= 0x00000008u;
7209 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7210 reinterpret_cast<const char*>(value), size), GetArena());
7211 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.domain)
7212}
7213inline std::string* NodeProto::_internal_mutable_domain() {
7214 _has_bits_[0] |= 0x00000008u;
7215 return domain_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7216}
7217inline std::string* NodeProto::release_domain() {
7218 // @@protoc_insertion_point(field_release:onnx_torch.NodeProto.domain)
7219 if (!_internal_has_domain()) {
7220 return nullptr;
7221 }
7222 _has_bits_[0] &= ~0x00000008u;
7223 return domain_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7224}
7225inline void NodeProto::set_allocated_domain(std::string* domain) {
7226 if (domain != nullptr) {
7227 _has_bits_[0] |= 0x00000008u;
7228 } else {
7229 _has_bits_[0] &= ~0x00000008u;
7230 }
7231 domain_.SetAllocated(&GetEmptyStringAlreadyInited(), domain,
7232 GetArena());
7233 // @@protoc_insertion_point(field_set_allocated:onnx_torch.NodeProto.domain)
7234}
7235
7236// repeated .onnx_torch.AttributeProto attribute = 5;
7237inline int NodeProto::_internal_attribute_size() const {
7238 return attribute_.size();
7239}
7240inline int NodeProto::attribute_size() const {
7241 return _internal_attribute_size();
7242}
7243inline void NodeProto::clear_attribute() {
7244 attribute_.Clear();
7245}
7246inline ::onnx_torch::AttributeProto* NodeProto::mutable_attribute(int index) {
7247 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.attribute)
7248 return attribute_.Mutable(index);
7249}
7250inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::AttributeProto >*
7251NodeProto::mutable_attribute() {
7252 // @@protoc_insertion_point(field_mutable_list:onnx_torch.NodeProto.attribute)
7253 return &attribute_;
7254}
7255inline const ::onnx_torch::AttributeProto& NodeProto::_internal_attribute(int index) const {
7256 return attribute_.Get(index);
7257}
7258inline const ::onnx_torch::AttributeProto& NodeProto::attribute(int index) const {
7259 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.attribute)
7260 return _internal_attribute(index);
7261}
7262inline ::onnx_torch::AttributeProto* NodeProto::_internal_add_attribute() {
7263 return attribute_.Add();
7264}
7265inline ::onnx_torch::AttributeProto* NodeProto::add_attribute() {
7266 // @@protoc_insertion_point(field_add:onnx_torch.NodeProto.attribute)
7267 return _internal_add_attribute();
7268}
7269inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::AttributeProto >&
7270NodeProto::attribute() const {
7271 // @@protoc_insertion_point(field_list:onnx_torch.NodeProto.attribute)
7272 return attribute_;
7273}
7274
7275// optional string doc_string = 6;
7276inline bool NodeProto::_internal_has_doc_string() const {
7277 bool value = (_has_bits_[0] & 0x00000004u) != 0;
7278 return value;
7279}
7280inline bool NodeProto::has_doc_string() const {
7281 return _internal_has_doc_string();
7282}
7283inline void NodeProto::clear_doc_string() {
7284 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7285 _has_bits_[0] &= ~0x00000004u;
7286}
7287inline const std::string& NodeProto::doc_string() const {
7288 // @@protoc_insertion_point(field_get:onnx_torch.NodeProto.doc_string)
7289 return _internal_doc_string();
7290}
7291inline void NodeProto::set_doc_string(const std::string& value) {
7292 _internal_set_doc_string(value);
7293 // @@protoc_insertion_point(field_set:onnx_torch.NodeProto.doc_string)
7294}
7295inline std::string* NodeProto::mutable_doc_string() {
7296 // @@protoc_insertion_point(field_mutable:onnx_torch.NodeProto.doc_string)
7297 return _internal_mutable_doc_string();
7298}
7299inline const std::string& NodeProto::_internal_doc_string() const {
7300 return doc_string_.Get();
7301}
7302inline void NodeProto::_internal_set_doc_string(const std::string& value) {
7303 _has_bits_[0] |= 0x00000004u;
7304 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7305}
7306inline void NodeProto::set_doc_string(std::string&& value) {
7307 _has_bits_[0] |= 0x00000004u;
7308 doc_string_.Set(
7309 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7310 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.NodeProto.doc_string)
7311}
7312inline void NodeProto::set_doc_string(const char* value) {
7313 GOOGLE_DCHECK(value != nullptr);
7314 _has_bits_[0] |= 0x00000004u;
7315 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7316 GetArena());
7317 // @@protoc_insertion_point(field_set_char:onnx_torch.NodeProto.doc_string)
7318}
7319inline void NodeProto::set_doc_string(const char* value,
7320 size_t size) {
7321 _has_bits_[0] |= 0x00000004u;
7322 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7323 reinterpret_cast<const char*>(value), size), GetArena());
7324 // @@protoc_insertion_point(field_set_pointer:onnx_torch.NodeProto.doc_string)
7325}
7326inline std::string* NodeProto::_internal_mutable_doc_string() {
7327 _has_bits_[0] |= 0x00000004u;
7328 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7329}
7330inline std::string* NodeProto::release_doc_string() {
7331 // @@protoc_insertion_point(field_release:onnx_torch.NodeProto.doc_string)
7332 if (!_internal_has_doc_string()) {
7333 return nullptr;
7334 }
7335 _has_bits_[0] &= ~0x00000004u;
7336 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7337}
7338inline void NodeProto::set_allocated_doc_string(std::string* doc_string) {
7339 if (doc_string != nullptr) {
7340 _has_bits_[0] |= 0x00000004u;
7341 } else {
7342 _has_bits_[0] &= ~0x00000004u;
7343 }
7344 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
7345 GetArena());
7346 // @@protoc_insertion_point(field_set_allocated:onnx_torch.NodeProto.doc_string)
7347}
7348
7349// -------------------------------------------------------------------
7350
7351// TrainingInfoProto
7352
7353// optional .onnx_torch.GraphProto initialization = 1;
7354inline bool TrainingInfoProto::_internal_has_initialization() const {
7355 bool value = (_has_bits_[0] & 0x00000001u) != 0;
7356 PROTOBUF_ASSUME(!value || initialization_ != nullptr);
7357 return value;
7358}
7359inline bool TrainingInfoProto::has_initialization() const {
7360 return _internal_has_initialization();
7361}
7362inline void TrainingInfoProto::clear_initialization() {
7363 if (initialization_ != nullptr) initialization_->Clear();
7364 _has_bits_[0] &= ~0x00000001u;
7365}
7366inline const ::onnx_torch::GraphProto& TrainingInfoProto::_internal_initialization() const {
7367 const ::onnx_torch::GraphProto* p = initialization_;
7368 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::GraphProto*>(
7369 &::onnx_torch::_GraphProto_default_instance_);
7370}
7371inline const ::onnx_torch::GraphProto& TrainingInfoProto::initialization() const {
7372 // @@protoc_insertion_point(field_get:onnx_torch.TrainingInfoProto.initialization)
7373 return _internal_initialization();
7374}
7375inline void TrainingInfoProto::unsafe_arena_set_allocated_initialization(
7376 ::onnx_torch::GraphProto* initialization) {
7377 if (GetArena() == nullptr) {
7378 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initialization_);
7379 }
7380 initialization_ = initialization;
7381 if (initialization) {
7382 _has_bits_[0] |= 0x00000001u;
7383 } else {
7384 _has_bits_[0] &= ~0x00000001u;
7385 }
7386 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TrainingInfoProto.initialization)
7387}
7388inline ::onnx_torch::GraphProto* TrainingInfoProto::release_initialization() {
7389 _has_bits_[0] &= ~0x00000001u;
7390 ::onnx_torch::GraphProto* temp = initialization_;
7391 initialization_ = nullptr;
7392 if (GetArena() != nullptr) {
7393 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
7394 }
7395 return temp;
7396}
7397inline ::onnx_torch::GraphProto* TrainingInfoProto::unsafe_arena_release_initialization() {
7398 // @@protoc_insertion_point(field_release:onnx_torch.TrainingInfoProto.initialization)
7399 _has_bits_[0] &= ~0x00000001u;
7400 ::onnx_torch::GraphProto* temp = initialization_;
7401 initialization_ = nullptr;
7402 return temp;
7403}
7404inline ::onnx_torch::GraphProto* TrainingInfoProto::_internal_mutable_initialization() {
7405 _has_bits_[0] |= 0x00000001u;
7406 if (initialization_ == nullptr) {
7407 auto* p = CreateMaybeMessage<::onnx_torch::GraphProto>(GetArena());
7408 initialization_ = p;
7409 }
7410 return initialization_;
7411}
7412inline ::onnx_torch::GraphProto* TrainingInfoProto::mutable_initialization() {
7413 // @@protoc_insertion_point(field_mutable:onnx_torch.TrainingInfoProto.initialization)
7414 return _internal_mutable_initialization();
7415}
7416inline void TrainingInfoProto::set_allocated_initialization(::onnx_torch::GraphProto* initialization) {
7417 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
7418 if (message_arena == nullptr) {
7419 delete initialization_;
7420 }
7421 if (initialization) {
7422 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7423 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(initialization);
7424 if (message_arena != submessage_arena) {
7425 initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7426 message_arena, initialization, submessage_arena);
7427 }
7428 _has_bits_[0] |= 0x00000001u;
7429 } else {
7430 _has_bits_[0] &= ~0x00000001u;
7431 }
7432 initialization_ = initialization;
7433 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TrainingInfoProto.initialization)
7434}
7435
7436// optional .onnx_torch.GraphProto algorithm = 2;
7437inline bool TrainingInfoProto::_internal_has_algorithm() const {
7438 bool value = (_has_bits_[0] & 0x00000002u) != 0;
7439 PROTOBUF_ASSUME(!value || algorithm_ != nullptr);
7440 return value;
7441}
7442inline bool TrainingInfoProto::has_algorithm() const {
7443 return _internal_has_algorithm();
7444}
7445inline void TrainingInfoProto::clear_algorithm() {
7446 if (algorithm_ != nullptr) algorithm_->Clear();
7447 _has_bits_[0] &= ~0x00000002u;
7448}
7449inline const ::onnx_torch::GraphProto& TrainingInfoProto::_internal_algorithm() const {
7450 const ::onnx_torch::GraphProto* p = algorithm_;
7451 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::GraphProto*>(
7452 &::onnx_torch::_GraphProto_default_instance_);
7453}
7454inline const ::onnx_torch::GraphProto& TrainingInfoProto::algorithm() const {
7455 // @@protoc_insertion_point(field_get:onnx_torch.TrainingInfoProto.algorithm)
7456 return _internal_algorithm();
7457}
7458inline void TrainingInfoProto::unsafe_arena_set_allocated_algorithm(
7459 ::onnx_torch::GraphProto* algorithm) {
7460 if (GetArena() == nullptr) {
7461 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(algorithm_);
7462 }
7463 algorithm_ = algorithm;
7464 if (algorithm) {
7465 _has_bits_[0] |= 0x00000002u;
7466 } else {
7467 _has_bits_[0] &= ~0x00000002u;
7468 }
7469 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TrainingInfoProto.algorithm)
7470}
7471inline ::onnx_torch::GraphProto* TrainingInfoProto::release_algorithm() {
7472 _has_bits_[0] &= ~0x00000002u;
7473 ::onnx_torch::GraphProto* temp = algorithm_;
7474 algorithm_ = nullptr;
7475 if (GetArena() != nullptr) {
7476 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
7477 }
7478 return temp;
7479}
7480inline ::onnx_torch::GraphProto* TrainingInfoProto::unsafe_arena_release_algorithm() {
7481 // @@protoc_insertion_point(field_release:onnx_torch.TrainingInfoProto.algorithm)
7482 _has_bits_[0] &= ~0x00000002u;
7483 ::onnx_torch::GraphProto* temp = algorithm_;
7484 algorithm_ = nullptr;
7485 return temp;
7486}
7487inline ::onnx_torch::GraphProto* TrainingInfoProto::_internal_mutable_algorithm() {
7488 _has_bits_[0] |= 0x00000002u;
7489 if (algorithm_ == nullptr) {
7490 auto* p = CreateMaybeMessage<::onnx_torch::GraphProto>(GetArena());
7491 algorithm_ = p;
7492 }
7493 return algorithm_;
7494}
7495inline ::onnx_torch::GraphProto* TrainingInfoProto::mutable_algorithm() {
7496 // @@protoc_insertion_point(field_mutable:onnx_torch.TrainingInfoProto.algorithm)
7497 return _internal_mutable_algorithm();
7498}
7499inline void TrainingInfoProto::set_allocated_algorithm(::onnx_torch::GraphProto* algorithm) {
7500 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
7501 if (message_arena == nullptr) {
7502 delete algorithm_;
7503 }
7504 if (algorithm) {
7505 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7506 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(algorithm);
7507 if (message_arena != submessage_arena) {
7508 algorithm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7509 message_arena, algorithm, submessage_arena);
7510 }
7511 _has_bits_[0] |= 0x00000002u;
7512 } else {
7513 _has_bits_[0] &= ~0x00000002u;
7514 }
7515 algorithm_ = algorithm;
7516 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TrainingInfoProto.algorithm)
7517}
7518
7519// repeated .onnx_torch.StringStringEntryProto initialization_binding = 3;
7520inline int TrainingInfoProto::_internal_initialization_binding_size() const {
7521 return initialization_binding_.size();
7522}
7523inline int TrainingInfoProto::initialization_binding_size() const {
7524 return _internal_initialization_binding_size();
7525}
7526inline void TrainingInfoProto::clear_initialization_binding() {
7527 initialization_binding_.Clear();
7528}
7529inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::mutable_initialization_binding(int index) {
7530 // @@protoc_insertion_point(field_mutable:onnx_torch.TrainingInfoProto.initialization_binding)
7531 return initialization_binding_.Mutable(index);
7532}
7533inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
7534TrainingInfoProto::mutable_initialization_binding() {
7535 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TrainingInfoProto.initialization_binding)
7536 return &initialization_binding_;
7537}
7538inline const ::onnx_torch::StringStringEntryProto& TrainingInfoProto::_internal_initialization_binding(int index) const {
7539 return initialization_binding_.Get(index);
7540}
7541inline const ::onnx_torch::StringStringEntryProto& TrainingInfoProto::initialization_binding(int index) const {
7542 // @@protoc_insertion_point(field_get:onnx_torch.TrainingInfoProto.initialization_binding)
7543 return _internal_initialization_binding(index);
7544}
7545inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::_internal_add_initialization_binding() {
7546 return initialization_binding_.Add();
7547}
7548inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::add_initialization_binding() {
7549 // @@protoc_insertion_point(field_add:onnx_torch.TrainingInfoProto.initialization_binding)
7550 return _internal_add_initialization_binding();
7551}
7552inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
7553TrainingInfoProto::initialization_binding() const {
7554 // @@protoc_insertion_point(field_list:onnx_torch.TrainingInfoProto.initialization_binding)
7555 return initialization_binding_;
7556}
7557
7558// repeated .onnx_torch.StringStringEntryProto update_binding = 4;
7559inline int TrainingInfoProto::_internal_update_binding_size() const {
7560 return update_binding_.size();
7561}
7562inline int TrainingInfoProto::update_binding_size() const {
7563 return _internal_update_binding_size();
7564}
7565inline void TrainingInfoProto::clear_update_binding() {
7566 update_binding_.Clear();
7567}
7568inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::mutable_update_binding(int index) {
7569 // @@protoc_insertion_point(field_mutable:onnx_torch.TrainingInfoProto.update_binding)
7570 return update_binding_.Mutable(index);
7571}
7572inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
7573TrainingInfoProto::mutable_update_binding() {
7574 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TrainingInfoProto.update_binding)
7575 return &update_binding_;
7576}
7577inline const ::onnx_torch::StringStringEntryProto& TrainingInfoProto::_internal_update_binding(int index) const {
7578 return update_binding_.Get(index);
7579}
7580inline const ::onnx_torch::StringStringEntryProto& TrainingInfoProto::update_binding(int index) const {
7581 // @@protoc_insertion_point(field_get:onnx_torch.TrainingInfoProto.update_binding)
7582 return _internal_update_binding(index);
7583}
7584inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::_internal_add_update_binding() {
7585 return update_binding_.Add();
7586}
7587inline ::onnx_torch::StringStringEntryProto* TrainingInfoProto::add_update_binding() {
7588 // @@protoc_insertion_point(field_add:onnx_torch.TrainingInfoProto.update_binding)
7589 return _internal_add_update_binding();
7590}
7591inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
7592TrainingInfoProto::update_binding() const {
7593 // @@protoc_insertion_point(field_list:onnx_torch.TrainingInfoProto.update_binding)
7594 return update_binding_;
7595}
7596
7597// -------------------------------------------------------------------
7598
7599// ModelProto
7600
7601// optional int64 ir_version = 1;
7602inline bool ModelProto::_internal_has_ir_version() const {
7603 bool value = (_has_bits_[0] & 0x00000020u) != 0;
7604 return value;
7605}
7606inline bool ModelProto::has_ir_version() const {
7607 return _internal_has_ir_version();
7608}
7609inline void ModelProto::clear_ir_version() {
7610 ir_version_ = PROTOBUF_LONGLONG(0);
7611 _has_bits_[0] &= ~0x00000020u;
7612}
7613inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::_internal_ir_version() const {
7614 return ir_version_;
7615}
7616inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::ir_version() const {
7617 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.ir_version)
7618 return _internal_ir_version();
7619}
7620inline void ModelProto::_internal_set_ir_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
7621 _has_bits_[0] |= 0x00000020u;
7622 ir_version_ = value;
7623}
7624inline void ModelProto::set_ir_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
7625 _internal_set_ir_version(value);
7626 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.ir_version)
7627}
7628
7629// repeated .onnx_torch.OperatorSetIdProto opset_import = 8;
7630inline int ModelProto::_internal_opset_import_size() const {
7631 return opset_import_.size();
7632}
7633inline int ModelProto::opset_import_size() const {
7634 return _internal_opset_import_size();
7635}
7636inline void ModelProto::clear_opset_import() {
7637 opset_import_.Clear();
7638}
7639inline ::onnx_torch::OperatorSetIdProto* ModelProto::mutable_opset_import(int index) {
7640 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.opset_import)
7641 return opset_import_.Mutable(index);
7642}
7643inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >*
7644ModelProto::mutable_opset_import() {
7645 // @@protoc_insertion_point(field_mutable_list:onnx_torch.ModelProto.opset_import)
7646 return &opset_import_;
7647}
7648inline const ::onnx_torch::OperatorSetIdProto& ModelProto::_internal_opset_import(int index) const {
7649 return opset_import_.Get(index);
7650}
7651inline const ::onnx_torch::OperatorSetIdProto& ModelProto::opset_import(int index) const {
7652 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.opset_import)
7653 return _internal_opset_import(index);
7654}
7655inline ::onnx_torch::OperatorSetIdProto* ModelProto::_internal_add_opset_import() {
7656 return opset_import_.Add();
7657}
7658inline ::onnx_torch::OperatorSetIdProto* ModelProto::add_opset_import() {
7659 // @@protoc_insertion_point(field_add:onnx_torch.ModelProto.opset_import)
7660 return _internal_add_opset_import();
7661}
7662inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >&
7663ModelProto::opset_import() const {
7664 // @@protoc_insertion_point(field_list:onnx_torch.ModelProto.opset_import)
7665 return opset_import_;
7666}
7667
7668// optional string producer_name = 2;
7669inline bool ModelProto::_internal_has_producer_name() const {
7670 bool value = (_has_bits_[0] & 0x00000001u) != 0;
7671 return value;
7672}
7673inline bool ModelProto::has_producer_name() const {
7674 return _internal_has_producer_name();
7675}
7676inline void ModelProto::clear_producer_name() {
7677 producer_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7678 _has_bits_[0] &= ~0x00000001u;
7679}
7680inline const std::string& ModelProto::producer_name() const {
7681 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.producer_name)
7682 return _internal_producer_name();
7683}
7684inline void ModelProto::set_producer_name(const std::string& value) {
7685 _internal_set_producer_name(value);
7686 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.producer_name)
7687}
7688inline std::string* ModelProto::mutable_producer_name() {
7689 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.producer_name)
7690 return _internal_mutable_producer_name();
7691}
7692inline const std::string& ModelProto::_internal_producer_name() const {
7693 return producer_name_.Get();
7694}
7695inline void ModelProto::_internal_set_producer_name(const std::string& value) {
7696 _has_bits_[0] |= 0x00000001u;
7697 producer_name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7698}
7699inline void ModelProto::set_producer_name(std::string&& value) {
7700 _has_bits_[0] |= 0x00000001u;
7701 producer_name_.Set(
7702 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7703 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ModelProto.producer_name)
7704}
7705inline void ModelProto::set_producer_name(const char* value) {
7706 GOOGLE_DCHECK(value != nullptr);
7707 _has_bits_[0] |= 0x00000001u;
7708 producer_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7709 GetArena());
7710 // @@protoc_insertion_point(field_set_char:onnx_torch.ModelProto.producer_name)
7711}
7712inline void ModelProto::set_producer_name(const char* value,
7713 size_t size) {
7714 _has_bits_[0] |= 0x00000001u;
7715 producer_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7716 reinterpret_cast<const char*>(value), size), GetArena());
7717 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ModelProto.producer_name)
7718}
7719inline std::string* ModelProto::_internal_mutable_producer_name() {
7720 _has_bits_[0] |= 0x00000001u;
7721 return producer_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7722}
7723inline std::string* ModelProto::release_producer_name() {
7724 // @@protoc_insertion_point(field_release:onnx_torch.ModelProto.producer_name)
7725 if (!_internal_has_producer_name()) {
7726 return nullptr;
7727 }
7728 _has_bits_[0] &= ~0x00000001u;
7729 return producer_name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7730}
7731inline void ModelProto::set_allocated_producer_name(std::string* producer_name) {
7732 if (producer_name != nullptr) {
7733 _has_bits_[0] |= 0x00000001u;
7734 } else {
7735 _has_bits_[0] &= ~0x00000001u;
7736 }
7737 producer_name_.SetAllocated(&GetEmptyStringAlreadyInited(), producer_name,
7738 GetArena());
7739 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ModelProto.producer_name)
7740}
7741
7742// optional string producer_version = 3;
7743inline bool ModelProto::_internal_has_producer_version() const {
7744 bool value = (_has_bits_[0] & 0x00000002u) != 0;
7745 return value;
7746}
7747inline bool ModelProto::has_producer_version() const {
7748 return _internal_has_producer_version();
7749}
7750inline void ModelProto::clear_producer_version() {
7751 producer_version_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7752 _has_bits_[0] &= ~0x00000002u;
7753}
7754inline const std::string& ModelProto::producer_version() const {
7755 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.producer_version)
7756 return _internal_producer_version();
7757}
7758inline void ModelProto::set_producer_version(const std::string& value) {
7759 _internal_set_producer_version(value);
7760 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.producer_version)
7761}
7762inline std::string* ModelProto::mutable_producer_version() {
7763 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.producer_version)
7764 return _internal_mutable_producer_version();
7765}
7766inline const std::string& ModelProto::_internal_producer_version() const {
7767 return producer_version_.Get();
7768}
7769inline void ModelProto::_internal_set_producer_version(const std::string& value) {
7770 _has_bits_[0] |= 0x00000002u;
7771 producer_version_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7772}
7773inline void ModelProto::set_producer_version(std::string&& value) {
7774 _has_bits_[0] |= 0x00000002u;
7775 producer_version_.Set(
7776 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7777 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ModelProto.producer_version)
7778}
7779inline void ModelProto::set_producer_version(const char* value) {
7780 GOOGLE_DCHECK(value != nullptr);
7781 _has_bits_[0] |= 0x00000002u;
7782 producer_version_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7783 GetArena());
7784 // @@protoc_insertion_point(field_set_char:onnx_torch.ModelProto.producer_version)
7785}
7786inline void ModelProto::set_producer_version(const char* value,
7787 size_t size) {
7788 _has_bits_[0] |= 0x00000002u;
7789 producer_version_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7790 reinterpret_cast<const char*>(value), size), GetArena());
7791 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ModelProto.producer_version)
7792}
7793inline std::string* ModelProto::_internal_mutable_producer_version() {
7794 _has_bits_[0] |= 0x00000002u;
7795 return producer_version_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7796}
7797inline std::string* ModelProto::release_producer_version() {
7798 // @@protoc_insertion_point(field_release:onnx_torch.ModelProto.producer_version)
7799 if (!_internal_has_producer_version()) {
7800 return nullptr;
7801 }
7802 _has_bits_[0] &= ~0x00000002u;
7803 return producer_version_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7804}
7805inline void ModelProto::set_allocated_producer_version(std::string* producer_version) {
7806 if (producer_version != nullptr) {
7807 _has_bits_[0] |= 0x00000002u;
7808 } else {
7809 _has_bits_[0] &= ~0x00000002u;
7810 }
7811 producer_version_.SetAllocated(&GetEmptyStringAlreadyInited(), producer_version,
7812 GetArena());
7813 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ModelProto.producer_version)
7814}
7815
7816// optional string domain = 4;
7817inline bool ModelProto::_internal_has_domain() const {
7818 bool value = (_has_bits_[0] & 0x00000004u) != 0;
7819 return value;
7820}
7821inline bool ModelProto::has_domain() const {
7822 return _internal_has_domain();
7823}
7824inline void ModelProto::clear_domain() {
7825 domain_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7826 _has_bits_[0] &= ~0x00000004u;
7827}
7828inline const std::string& ModelProto::domain() const {
7829 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.domain)
7830 return _internal_domain();
7831}
7832inline void ModelProto::set_domain(const std::string& value) {
7833 _internal_set_domain(value);
7834 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.domain)
7835}
7836inline std::string* ModelProto::mutable_domain() {
7837 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.domain)
7838 return _internal_mutable_domain();
7839}
7840inline const std::string& ModelProto::_internal_domain() const {
7841 return domain_.Get();
7842}
7843inline void ModelProto::_internal_set_domain(const std::string& value) {
7844 _has_bits_[0] |= 0x00000004u;
7845 domain_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7846}
7847inline void ModelProto::set_domain(std::string&& value) {
7848 _has_bits_[0] |= 0x00000004u;
7849 domain_.Set(
7850 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7851 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ModelProto.domain)
7852}
7853inline void ModelProto::set_domain(const char* value) {
7854 GOOGLE_DCHECK(value != nullptr);
7855 _has_bits_[0] |= 0x00000004u;
7856 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7857 GetArena());
7858 // @@protoc_insertion_point(field_set_char:onnx_torch.ModelProto.domain)
7859}
7860inline void ModelProto::set_domain(const char* value,
7861 size_t size) {
7862 _has_bits_[0] |= 0x00000004u;
7863 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7864 reinterpret_cast<const char*>(value), size), GetArena());
7865 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ModelProto.domain)
7866}
7867inline std::string* ModelProto::_internal_mutable_domain() {
7868 _has_bits_[0] |= 0x00000004u;
7869 return domain_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7870}
7871inline std::string* ModelProto::release_domain() {
7872 // @@protoc_insertion_point(field_release:onnx_torch.ModelProto.domain)
7873 if (!_internal_has_domain()) {
7874 return nullptr;
7875 }
7876 _has_bits_[0] &= ~0x00000004u;
7877 return domain_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7878}
7879inline void ModelProto::set_allocated_domain(std::string* domain) {
7880 if (domain != nullptr) {
7881 _has_bits_[0] |= 0x00000004u;
7882 } else {
7883 _has_bits_[0] &= ~0x00000004u;
7884 }
7885 domain_.SetAllocated(&GetEmptyStringAlreadyInited(), domain,
7886 GetArena());
7887 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ModelProto.domain)
7888}
7889
7890// optional int64 model_version = 5;
7891inline bool ModelProto::_internal_has_model_version() const {
7892 bool value = (_has_bits_[0] & 0x00000040u) != 0;
7893 return value;
7894}
7895inline bool ModelProto::has_model_version() const {
7896 return _internal_has_model_version();
7897}
7898inline void ModelProto::clear_model_version() {
7899 model_version_ = PROTOBUF_LONGLONG(0);
7900 _has_bits_[0] &= ~0x00000040u;
7901}
7902inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::_internal_model_version() const {
7903 return model_version_;
7904}
7905inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::model_version() const {
7906 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.model_version)
7907 return _internal_model_version();
7908}
7909inline void ModelProto::_internal_set_model_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
7910 _has_bits_[0] |= 0x00000040u;
7911 model_version_ = value;
7912}
7913inline void ModelProto::set_model_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
7914 _internal_set_model_version(value);
7915 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.model_version)
7916}
7917
7918// optional string doc_string = 6;
7919inline bool ModelProto::_internal_has_doc_string() const {
7920 bool value = (_has_bits_[0] & 0x00000008u) != 0;
7921 return value;
7922}
7923inline bool ModelProto::has_doc_string() const {
7924 return _internal_has_doc_string();
7925}
7926inline void ModelProto::clear_doc_string() {
7927 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
7928 _has_bits_[0] &= ~0x00000008u;
7929}
7930inline const std::string& ModelProto::doc_string() const {
7931 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.doc_string)
7932 return _internal_doc_string();
7933}
7934inline void ModelProto::set_doc_string(const std::string& value) {
7935 _internal_set_doc_string(value);
7936 // @@protoc_insertion_point(field_set:onnx_torch.ModelProto.doc_string)
7937}
7938inline std::string* ModelProto::mutable_doc_string() {
7939 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.doc_string)
7940 return _internal_mutable_doc_string();
7941}
7942inline const std::string& ModelProto::_internal_doc_string() const {
7943 return doc_string_.Get();
7944}
7945inline void ModelProto::_internal_set_doc_string(const std::string& value) {
7946 _has_bits_[0] |= 0x00000008u;
7947 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
7948}
7949inline void ModelProto::set_doc_string(std::string&& value) {
7950 _has_bits_[0] |= 0x00000008u;
7951 doc_string_.Set(
7952 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
7953 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.ModelProto.doc_string)
7954}
7955inline void ModelProto::set_doc_string(const char* value) {
7956 GOOGLE_DCHECK(value != nullptr);
7957 _has_bits_[0] |= 0x00000008u;
7958 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
7959 GetArena());
7960 // @@protoc_insertion_point(field_set_char:onnx_torch.ModelProto.doc_string)
7961}
7962inline void ModelProto::set_doc_string(const char* value,
7963 size_t size) {
7964 _has_bits_[0] |= 0x00000008u;
7965 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
7966 reinterpret_cast<const char*>(value), size), GetArena());
7967 // @@protoc_insertion_point(field_set_pointer:onnx_torch.ModelProto.doc_string)
7968}
7969inline std::string* ModelProto::_internal_mutable_doc_string() {
7970 _has_bits_[0] |= 0x00000008u;
7971 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
7972}
7973inline std::string* ModelProto::release_doc_string() {
7974 // @@protoc_insertion_point(field_release:onnx_torch.ModelProto.doc_string)
7975 if (!_internal_has_doc_string()) {
7976 return nullptr;
7977 }
7978 _has_bits_[0] &= ~0x00000008u;
7979 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
7980}
7981inline void ModelProto::set_allocated_doc_string(std::string* doc_string) {
7982 if (doc_string != nullptr) {
7983 _has_bits_[0] |= 0x00000008u;
7984 } else {
7985 _has_bits_[0] &= ~0x00000008u;
7986 }
7987 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
7988 GetArena());
7989 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ModelProto.doc_string)
7990}
7991
7992// optional .onnx_torch.GraphProto graph = 7;
7993inline bool ModelProto::_internal_has_graph() const {
7994 bool value = (_has_bits_[0] & 0x00000010u) != 0;
7995 PROTOBUF_ASSUME(!value || graph_ != nullptr);
7996 return value;
7997}
7998inline bool ModelProto::has_graph() const {
7999 return _internal_has_graph();
8000}
8001inline void ModelProto::clear_graph() {
8002 if (graph_ != nullptr) graph_->Clear();
8003 _has_bits_[0] &= ~0x00000010u;
8004}
8005inline const ::onnx_torch::GraphProto& ModelProto::_internal_graph() const {
8006 const ::onnx_torch::GraphProto* p = graph_;
8007 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::GraphProto*>(
8008 &::onnx_torch::_GraphProto_default_instance_);
8009}
8010inline const ::onnx_torch::GraphProto& ModelProto::graph() const {
8011 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.graph)
8012 return _internal_graph();
8013}
8014inline void ModelProto::unsafe_arena_set_allocated_graph(
8015 ::onnx_torch::GraphProto* graph) {
8016 if (GetArena() == nullptr) {
8017 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(graph_);
8018 }
8019 graph_ = graph;
8020 if (graph) {
8021 _has_bits_[0] |= 0x00000010u;
8022 } else {
8023 _has_bits_[0] &= ~0x00000010u;
8024 }
8025 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.ModelProto.graph)
8026}
8027inline ::onnx_torch::GraphProto* ModelProto::release_graph() {
8028 _has_bits_[0] &= ~0x00000010u;
8029 ::onnx_torch::GraphProto* temp = graph_;
8030 graph_ = nullptr;
8031 if (GetArena() != nullptr) {
8032 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
8033 }
8034 return temp;
8035}
8036inline ::onnx_torch::GraphProto* ModelProto::unsafe_arena_release_graph() {
8037 // @@protoc_insertion_point(field_release:onnx_torch.ModelProto.graph)
8038 _has_bits_[0] &= ~0x00000010u;
8039 ::onnx_torch::GraphProto* temp = graph_;
8040 graph_ = nullptr;
8041 return temp;
8042}
8043inline ::onnx_torch::GraphProto* ModelProto::_internal_mutable_graph() {
8044 _has_bits_[0] |= 0x00000010u;
8045 if (graph_ == nullptr) {
8046 auto* p = CreateMaybeMessage<::onnx_torch::GraphProto>(GetArena());
8047 graph_ = p;
8048 }
8049 return graph_;
8050}
8051inline ::onnx_torch::GraphProto* ModelProto::mutable_graph() {
8052 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.graph)
8053 return _internal_mutable_graph();
8054}
8055inline void ModelProto::set_allocated_graph(::onnx_torch::GraphProto* graph) {
8056 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
8057 if (message_arena == nullptr) {
8058 delete graph_;
8059 }
8060 if (graph) {
8061 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
8062 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(graph);
8063 if (message_arena != submessage_arena) {
8064 graph = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
8065 message_arena, graph, submessage_arena);
8066 }
8067 _has_bits_[0] |= 0x00000010u;
8068 } else {
8069 _has_bits_[0] &= ~0x00000010u;
8070 }
8071 graph_ = graph;
8072 // @@protoc_insertion_point(field_set_allocated:onnx_torch.ModelProto.graph)
8073}
8074
8075// repeated .onnx_torch.StringStringEntryProto metadata_props = 14;
8076inline int ModelProto::_internal_metadata_props_size() const {
8077 return metadata_props_.size();
8078}
8079inline int ModelProto::metadata_props_size() const {
8080 return _internal_metadata_props_size();
8081}
8082inline void ModelProto::clear_metadata_props() {
8083 metadata_props_.Clear();
8084}
8085inline ::onnx_torch::StringStringEntryProto* ModelProto::mutable_metadata_props(int index) {
8086 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.metadata_props)
8087 return metadata_props_.Mutable(index);
8088}
8089inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
8090ModelProto::mutable_metadata_props() {
8091 // @@protoc_insertion_point(field_mutable_list:onnx_torch.ModelProto.metadata_props)
8092 return &metadata_props_;
8093}
8094inline const ::onnx_torch::StringStringEntryProto& ModelProto::_internal_metadata_props(int index) const {
8095 return metadata_props_.Get(index);
8096}
8097inline const ::onnx_torch::StringStringEntryProto& ModelProto::metadata_props(int index) const {
8098 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.metadata_props)
8099 return _internal_metadata_props(index);
8100}
8101inline ::onnx_torch::StringStringEntryProto* ModelProto::_internal_add_metadata_props() {
8102 return metadata_props_.Add();
8103}
8104inline ::onnx_torch::StringStringEntryProto* ModelProto::add_metadata_props() {
8105 // @@protoc_insertion_point(field_add:onnx_torch.ModelProto.metadata_props)
8106 return _internal_add_metadata_props();
8107}
8108inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
8109ModelProto::metadata_props() const {
8110 // @@protoc_insertion_point(field_list:onnx_torch.ModelProto.metadata_props)
8111 return metadata_props_;
8112}
8113
8114// repeated .onnx_torch.TrainingInfoProto training_info = 20;
8115inline int ModelProto::_internal_training_info_size() const {
8116 return training_info_.size();
8117}
8118inline int ModelProto::training_info_size() const {
8119 return _internal_training_info_size();
8120}
8121inline void ModelProto::clear_training_info() {
8122 training_info_.Clear();
8123}
8124inline ::onnx_torch::TrainingInfoProto* ModelProto::mutable_training_info(int index) {
8125 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.training_info)
8126 return training_info_.Mutable(index);
8127}
8128inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TrainingInfoProto >*
8129ModelProto::mutable_training_info() {
8130 // @@protoc_insertion_point(field_mutable_list:onnx_torch.ModelProto.training_info)
8131 return &training_info_;
8132}
8133inline const ::onnx_torch::TrainingInfoProto& ModelProto::_internal_training_info(int index) const {
8134 return training_info_.Get(index);
8135}
8136inline const ::onnx_torch::TrainingInfoProto& ModelProto::training_info(int index) const {
8137 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.training_info)
8138 return _internal_training_info(index);
8139}
8140inline ::onnx_torch::TrainingInfoProto* ModelProto::_internal_add_training_info() {
8141 return training_info_.Add();
8142}
8143inline ::onnx_torch::TrainingInfoProto* ModelProto::add_training_info() {
8144 // @@protoc_insertion_point(field_add:onnx_torch.ModelProto.training_info)
8145 return _internal_add_training_info();
8146}
8147inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TrainingInfoProto >&
8148ModelProto::training_info() const {
8149 // @@protoc_insertion_point(field_list:onnx_torch.ModelProto.training_info)
8150 return training_info_;
8151}
8152
8153// repeated .onnx_torch.FunctionProto functions = 25;
8154inline int ModelProto::_internal_functions_size() const {
8155 return functions_.size();
8156}
8157inline int ModelProto::functions_size() const {
8158 return _internal_functions_size();
8159}
8160inline void ModelProto::clear_functions() {
8161 functions_.Clear();
8162}
8163inline ::onnx_torch::FunctionProto* ModelProto::mutable_functions(int index) {
8164 // @@protoc_insertion_point(field_mutable:onnx_torch.ModelProto.functions)
8165 return functions_.Mutable(index);
8166}
8167inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::FunctionProto >*
8168ModelProto::mutable_functions() {
8169 // @@protoc_insertion_point(field_mutable_list:onnx_torch.ModelProto.functions)
8170 return &functions_;
8171}
8172inline const ::onnx_torch::FunctionProto& ModelProto::_internal_functions(int index) const {
8173 return functions_.Get(index);
8174}
8175inline const ::onnx_torch::FunctionProto& ModelProto::functions(int index) const {
8176 // @@protoc_insertion_point(field_get:onnx_torch.ModelProto.functions)
8177 return _internal_functions(index);
8178}
8179inline ::onnx_torch::FunctionProto* ModelProto::_internal_add_functions() {
8180 return functions_.Add();
8181}
8182inline ::onnx_torch::FunctionProto* ModelProto::add_functions() {
8183 // @@protoc_insertion_point(field_add:onnx_torch.ModelProto.functions)
8184 return _internal_add_functions();
8185}
8186inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::FunctionProto >&
8187ModelProto::functions() const {
8188 // @@protoc_insertion_point(field_list:onnx_torch.ModelProto.functions)
8189 return functions_;
8190}
8191
8192// -------------------------------------------------------------------
8193
8194// StringStringEntryProto
8195
8196// optional string key = 1;
8197inline bool StringStringEntryProto::_internal_has_key() const {
8198 bool value = (_has_bits_[0] & 0x00000001u) != 0;
8199 return value;
8200}
8201inline bool StringStringEntryProto::has_key() const {
8202 return _internal_has_key();
8203}
8204inline void StringStringEntryProto::clear_key() {
8205 key_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
8206 _has_bits_[0] &= ~0x00000001u;
8207}
8208inline const std::string& StringStringEntryProto::key() const {
8209 // @@protoc_insertion_point(field_get:onnx_torch.StringStringEntryProto.key)
8210 return _internal_key();
8211}
8212inline void StringStringEntryProto::set_key(const std::string& value) {
8213 _internal_set_key(value);
8214 // @@protoc_insertion_point(field_set:onnx_torch.StringStringEntryProto.key)
8215}
8216inline std::string* StringStringEntryProto::mutable_key() {
8217 // @@protoc_insertion_point(field_mutable:onnx_torch.StringStringEntryProto.key)
8218 return _internal_mutable_key();
8219}
8220inline const std::string& StringStringEntryProto::_internal_key() const {
8221 return key_.Get();
8222}
8223inline void StringStringEntryProto::_internal_set_key(const std::string& value) {
8224 _has_bits_[0] |= 0x00000001u;
8225 key_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
8226}
8227inline void StringStringEntryProto::set_key(std::string&& value) {
8228 _has_bits_[0] |= 0x00000001u;
8229 key_.Set(
8230 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
8231 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.StringStringEntryProto.key)
8232}
8233inline void StringStringEntryProto::set_key(const char* value) {
8234 GOOGLE_DCHECK(value != nullptr);
8235 _has_bits_[0] |= 0x00000001u;
8236 key_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
8237 GetArena());
8238 // @@protoc_insertion_point(field_set_char:onnx_torch.StringStringEntryProto.key)
8239}
8240inline void StringStringEntryProto::set_key(const char* value,
8241 size_t size) {
8242 _has_bits_[0] |= 0x00000001u;
8243 key_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
8244 reinterpret_cast<const char*>(value), size), GetArena());
8245 // @@protoc_insertion_point(field_set_pointer:onnx_torch.StringStringEntryProto.key)
8246}
8247inline std::string* StringStringEntryProto::_internal_mutable_key() {
8248 _has_bits_[0] |= 0x00000001u;
8249 return key_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
8250}
8251inline std::string* StringStringEntryProto::release_key() {
8252 // @@protoc_insertion_point(field_release:onnx_torch.StringStringEntryProto.key)
8253 if (!_internal_has_key()) {
8254 return nullptr;
8255 }
8256 _has_bits_[0] &= ~0x00000001u;
8257 return key_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
8258}
8259inline void StringStringEntryProto::set_allocated_key(std::string* key) {
8260 if (key != nullptr) {
8261 _has_bits_[0] |= 0x00000001u;
8262 } else {
8263 _has_bits_[0] &= ~0x00000001u;
8264 }
8265 key_.SetAllocated(&GetEmptyStringAlreadyInited(), key,
8266 GetArena());
8267 // @@protoc_insertion_point(field_set_allocated:onnx_torch.StringStringEntryProto.key)
8268}
8269
8270// optional string value = 2;
8271inline bool StringStringEntryProto::_internal_has_value() const {
8272 bool value = (_has_bits_[0] & 0x00000002u) != 0;
8273 return value;
8274}
8275inline bool StringStringEntryProto::has_value() const {
8276 return _internal_has_value();
8277}
8278inline void StringStringEntryProto::clear_value() {
8279 value_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
8280 _has_bits_[0] &= ~0x00000002u;
8281}
8282inline const std::string& StringStringEntryProto::value() const {
8283 // @@protoc_insertion_point(field_get:onnx_torch.StringStringEntryProto.value)
8284 return _internal_value();
8285}
8286inline void StringStringEntryProto::set_value(const std::string& value) {
8287 _internal_set_value(value);
8288 // @@protoc_insertion_point(field_set:onnx_torch.StringStringEntryProto.value)
8289}
8290inline std::string* StringStringEntryProto::mutable_value() {
8291 // @@protoc_insertion_point(field_mutable:onnx_torch.StringStringEntryProto.value)
8292 return _internal_mutable_value();
8293}
8294inline const std::string& StringStringEntryProto::_internal_value() const {
8295 return value_.Get();
8296}
8297inline void StringStringEntryProto::_internal_set_value(const std::string& value) {
8298 _has_bits_[0] |= 0x00000002u;
8299 value_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
8300}
8301inline void StringStringEntryProto::set_value(std::string&& value) {
8302 _has_bits_[0] |= 0x00000002u;
8303 value_.Set(
8304 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
8305 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.StringStringEntryProto.value)
8306}
8307inline void StringStringEntryProto::set_value(const char* value) {
8308 GOOGLE_DCHECK(value != nullptr);
8309 _has_bits_[0] |= 0x00000002u;
8310 value_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
8311 GetArena());
8312 // @@protoc_insertion_point(field_set_char:onnx_torch.StringStringEntryProto.value)
8313}
8314inline void StringStringEntryProto::set_value(const char* value,
8315 size_t size) {
8316 _has_bits_[0] |= 0x00000002u;
8317 value_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
8318 reinterpret_cast<const char*>(value), size), GetArena());
8319 // @@protoc_insertion_point(field_set_pointer:onnx_torch.StringStringEntryProto.value)
8320}
8321inline std::string* StringStringEntryProto::_internal_mutable_value() {
8322 _has_bits_[0] |= 0x00000002u;
8323 return value_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
8324}
8325inline std::string* StringStringEntryProto::release_value() {
8326 // @@protoc_insertion_point(field_release:onnx_torch.StringStringEntryProto.value)
8327 if (!_internal_has_value()) {
8328 return nullptr;
8329 }
8330 _has_bits_[0] &= ~0x00000002u;
8331 return value_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
8332}
8333inline void StringStringEntryProto::set_allocated_value(std::string* value) {
8334 if (value != nullptr) {
8335 _has_bits_[0] |= 0x00000002u;
8336 } else {
8337 _has_bits_[0] &= ~0x00000002u;
8338 }
8339 value_.SetAllocated(&GetEmptyStringAlreadyInited(), value,
8340 GetArena());
8341 // @@protoc_insertion_point(field_set_allocated:onnx_torch.StringStringEntryProto.value)
8342}
8343
8344// -------------------------------------------------------------------
8345
8346// TensorAnnotation
8347
8348// optional string tensor_name = 1;
8349inline bool TensorAnnotation::_internal_has_tensor_name() const {
8350 bool value = (_has_bits_[0] & 0x00000001u) != 0;
8351 return value;
8352}
8353inline bool TensorAnnotation::has_tensor_name() const {
8354 return _internal_has_tensor_name();
8355}
8356inline void TensorAnnotation::clear_tensor_name() {
8357 tensor_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
8358 _has_bits_[0] &= ~0x00000001u;
8359}
8360inline const std::string& TensorAnnotation::tensor_name() const {
8361 // @@protoc_insertion_point(field_get:onnx_torch.TensorAnnotation.tensor_name)
8362 return _internal_tensor_name();
8363}
8364inline void TensorAnnotation::set_tensor_name(const std::string& value) {
8365 _internal_set_tensor_name(value);
8366 // @@protoc_insertion_point(field_set:onnx_torch.TensorAnnotation.tensor_name)
8367}
8368inline std::string* TensorAnnotation::mutable_tensor_name() {
8369 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorAnnotation.tensor_name)
8370 return _internal_mutable_tensor_name();
8371}
8372inline const std::string& TensorAnnotation::_internal_tensor_name() const {
8373 return tensor_name_.Get();
8374}
8375inline void TensorAnnotation::_internal_set_tensor_name(const std::string& value) {
8376 _has_bits_[0] |= 0x00000001u;
8377 tensor_name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
8378}
8379inline void TensorAnnotation::set_tensor_name(std::string&& value) {
8380 _has_bits_[0] |= 0x00000001u;
8381 tensor_name_.Set(
8382 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
8383 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorAnnotation.tensor_name)
8384}
8385inline void TensorAnnotation::set_tensor_name(const char* value) {
8386 GOOGLE_DCHECK(value != nullptr);
8387 _has_bits_[0] |= 0x00000001u;
8388 tensor_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
8389 GetArena());
8390 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorAnnotation.tensor_name)
8391}
8392inline void TensorAnnotation::set_tensor_name(const char* value,
8393 size_t size) {
8394 _has_bits_[0] |= 0x00000001u;
8395 tensor_name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
8396 reinterpret_cast<const char*>(value), size), GetArena());
8397 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorAnnotation.tensor_name)
8398}
8399inline std::string* TensorAnnotation::_internal_mutable_tensor_name() {
8400 _has_bits_[0] |= 0x00000001u;
8401 return tensor_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
8402}
8403inline std::string* TensorAnnotation::release_tensor_name() {
8404 // @@protoc_insertion_point(field_release:onnx_torch.TensorAnnotation.tensor_name)
8405 if (!_internal_has_tensor_name()) {
8406 return nullptr;
8407 }
8408 _has_bits_[0] &= ~0x00000001u;
8409 return tensor_name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
8410}
8411inline void TensorAnnotation::set_allocated_tensor_name(std::string* tensor_name) {
8412 if (tensor_name != nullptr) {
8413 _has_bits_[0] |= 0x00000001u;
8414 } else {
8415 _has_bits_[0] &= ~0x00000001u;
8416 }
8417 tensor_name_.SetAllocated(&GetEmptyStringAlreadyInited(), tensor_name,
8418 GetArena());
8419 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorAnnotation.tensor_name)
8420}
8421
8422// repeated .onnx_torch.StringStringEntryProto quant_parameter_tensor_names = 2;
8423inline int TensorAnnotation::_internal_quant_parameter_tensor_names_size() const {
8424 return quant_parameter_tensor_names_.size();
8425}
8426inline int TensorAnnotation::quant_parameter_tensor_names_size() const {
8427 return _internal_quant_parameter_tensor_names_size();
8428}
8429inline void TensorAnnotation::clear_quant_parameter_tensor_names() {
8430 quant_parameter_tensor_names_.Clear();
8431}
8432inline ::onnx_torch::StringStringEntryProto* TensorAnnotation::mutable_quant_parameter_tensor_names(int index) {
8433 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorAnnotation.quant_parameter_tensor_names)
8434 return quant_parameter_tensor_names_.Mutable(index);
8435}
8436inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
8437TensorAnnotation::mutable_quant_parameter_tensor_names() {
8438 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorAnnotation.quant_parameter_tensor_names)
8439 return &quant_parameter_tensor_names_;
8440}
8441inline const ::onnx_torch::StringStringEntryProto& TensorAnnotation::_internal_quant_parameter_tensor_names(int index) const {
8442 return quant_parameter_tensor_names_.Get(index);
8443}
8444inline const ::onnx_torch::StringStringEntryProto& TensorAnnotation::quant_parameter_tensor_names(int index) const {
8445 // @@protoc_insertion_point(field_get:onnx_torch.TensorAnnotation.quant_parameter_tensor_names)
8446 return _internal_quant_parameter_tensor_names(index);
8447}
8448inline ::onnx_torch::StringStringEntryProto* TensorAnnotation::_internal_add_quant_parameter_tensor_names() {
8449 return quant_parameter_tensor_names_.Add();
8450}
8451inline ::onnx_torch::StringStringEntryProto* TensorAnnotation::add_quant_parameter_tensor_names() {
8452 // @@protoc_insertion_point(field_add:onnx_torch.TensorAnnotation.quant_parameter_tensor_names)
8453 return _internal_add_quant_parameter_tensor_names();
8454}
8455inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
8456TensorAnnotation::quant_parameter_tensor_names() const {
8457 // @@protoc_insertion_point(field_list:onnx_torch.TensorAnnotation.quant_parameter_tensor_names)
8458 return quant_parameter_tensor_names_;
8459}
8460
8461// -------------------------------------------------------------------
8462
8463// GraphProto
8464
8465// repeated .onnx_torch.NodeProto node = 1;
8466inline int GraphProto::_internal_node_size() const {
8467 return node_.size();
8468}
8469inline int GraphProto::node_size() const {
8470 return _internal_node_size();
8471}
8472inline void GraphProto::clear_node() {
8473 node_.Clear();
8474}
8475inline ::onnx_torch::NodeProto* GraphProto::mutable_node(int index) {
8476 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.node)
8477 return node_.Mutable(index);
8478}
8479inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >*
8480GraphProto::mutable_node() {
8481 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.node)
8482 return &node_;
8483}
8484inline const ::onnx_torch::NodeProto& GraphProto::_internal_node(int index) const {
8485 return node_.Get(index);
8486}
8487inline const ::onnx_torch::NodeProto& GraphProto::node(int index) const {
8488 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.node)
8489 return _internal_node(index);
8490}
8491inline ::onnx_torch::NodeProto* GraphProto::_internal_add_node() {
8492 return node_.Add();
8493}
8494inline ::onnx_torch::NodeProto* GraphProto::add_node() {
8495 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.node)
8496 return _internal_add_node();
8497}
8498inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >&
8499GraphProto::node() const {
8500 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.node)
8501 return node_;
8502}
8503
8504// optional string name = 2;
8505inline bool GraphProto::_internal_has_name() const {
8506 bool value = (_has_bits_[0] & 0x00000001u) != 0;
8507 return value;
8508}
8509inline bool GraphProto::has_name() const {
8510 return _internal_has_name();
8511}
8512inline void GraphProto::clear_name() {
8513 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
8514 _has_bits_[0] &= ~0x00000001u;
8515}
8516inline const std::string& GraphProto::name() const {
8517 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.name)
8518 return _internal_name();
8519}
8520inline void GraphProto::set_name(const std::string& value) {
8521 _internal_set_name(value);
8522 // @@protoc_insertion_point(field_set:onnx_torch.GraphProto.name)
8523}
8524inline std::string* GraphProto::mutable_name() {
8525 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.name)
8526 return _internal_mutable_name();
8527}
8528inline const std::string& GraphProto::_internal_name() const {
8529 return name_.Get();
8530}
8531inline void GraphProto::_internal_set_name(const std::string& value) {
8532 _has_bits_[0] |= 0x00000001u;
8533 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
8534}
8535inline void GraphProto::set_name(std::string&& value) {
8536 _has_bits_[0] |= 0x00000001u;
8537 name_.Set(
8538 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
8539 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.GraphProto.name)
8540}
8541inline void GraphProto::set_name(const char* value) {
8542 GOOGLE_DCHECK(value != nullptr);
8543 _has_bits_[0] |= 0x00000001u;
8544 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
8545 GetArena());
8546 // @@protoc_insertion_point(field_set_char:onnx_torch.GraphProto.name)
8547}
8548inline void GraphProto::set_name(const char* value,
8549 size_t size) {
8550 _has_bits_[0] |= 0x00000001u;
8551 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
8552 reinterpret_cast<const char*>(value), size), GetArena());
8553 // @@protoc_insertion_point(field_set_pointer:onnx_torch.GraphProto.name)
8554}
8555inline std::string* GraphProto::_internal_mutable_name() {
8556 _has_bits_[0] |= 0x00000001u;
8557 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
8558}
8559inline std::string* GraphProto::release_name() {
8560 // @@protoc_insertion_point(field_release:onnx_torch.GraphProto.name)
8561 if (!_internal_has_name()) {
8562 return nullptr;
8563 }
8564 _has_bits_[0] &= ~0x00000001u;
8565 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
8566}
8567inline void GraphProto::set_allocated_name(std::string* name) {
8568 if (name != nullptr) {
8569 _has_bits_[0] |= 0x00000001u;
8570 } else {
8571 _has_bits_[0] &= ~0x00000001u;
8572 }
8573 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
8574 GetArena());
8575 // @@protoc_insertion_point(field_set_allocated:onnx_torch.GraphProto.name)
8576}
8577
8578// repeated .onnx_torch.TensorProto initializer = 5;
8579inline int GraphProto::_internal_initializer_size() const {
8580 return initializer_.size();
8581}
8582inline int GraphProto::initializer_size() const {
8583 return _internal_initializer_size();
8584}
8585inline void GraphProto::clear_initializer() {
8586 initializer_.Clear();
8587}
8588inline ::onnx_torch::TensorProto* GraphProto::mutable_initializer(int index) {
8589 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.initializer)
8590 return initializer_.Mutable(index);
8591}
8592inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >*
8593GraphProto::mutable_initializer() {
8594 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.initializer)
8595 return &initializer_;
8596}
8597inline const ::onnx_torch::TensorProto& GraphProto::_internal_initializer(int index) const {
8598 return initializer_.Get(index);
8599}
8600inline const ::onnx_torch::TensorProto& GraphProto::initializer(int index) const {
8601 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.initializer)
8602 return _internal_initializer(index);
8603}
8604inline ::onnx_torch::TensorProto* GraphProto::_internal_add_initializer() {
8605 return initializer_.Add();
8606}
8607inline ::onnx_torch::TensorProto* GraphProto::add_initializer() {
8608 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.initializer)
8609 return _internal_add_initializer();
8610}
8611inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorProto >&
8612GraphProto::initializer() const {
8613 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.initializer)
8614 return initializer_;
8615}
8616
8617// repeated .onnx_torch.SparseTensorProto sparse_initializer = 15;
8618inline int GraphProto::_internal_sparse_initializer_size() const {
8619 return sparse_initializer_.size();
8620}
8621inline int GraphProto::sparse_initializer_size() const {
8622 return _internal_sparse_initializer_size();
8623}
8624inline void GraphProto::clear_sparse_initializer() {
8625 sparse_initializer_.Clear();
8626}
8627inline ::onnx_torch::SparseTensorProto* GraphProto::mutable_sparse_initializer(int index) {
8628 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.sparse_initializer)
8629 return sparse_initializer_.Mutable(index);
8630}
8631inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >*
8632GraphProto::mutable_sparse_initializer() {
8633 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.sparse_initializer)
8634 return &sparse_initializer_;
8635}
8636inline const ::onnx_torch::SparseTensorProto& GraphProto::_internal_sparse_initializer(int index) const {
8637 return sparse_initializer_.Get(index);
8638}
8639inline const ::onnx_torch::SparseTensorProto& GraphProto::sparse_initializer(int index) const {
8640 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.sparse_initializer)
8641 return _internal_sparse_initializer(index);
8642}
8643inline ::onnx_torch::SparseTensorProto* GraphProto::_internal_add_sparse_initializer() {
8644 return sparse_initializer_.Add();
8645}
8646inline ::onnx_torch::SparseTensorProto* GraphProto::add_sparse_initializer() {
8647 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.sparse_initializer)
8648 return _internal_add_sparse_initializer();
8649}
8650inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::SparseTensorProto >&
8651GraphProto::sparse_initializer() const {
8652 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.sparse_initializer)
8653 return sparse_initializer_;
8654}
8655
8656// optional string doc_string = 10;
8657inline bool GraphProto::_internal_has_doc_string() const {
8658 bool value = (_has_bits_[0] & 0x00000002u) != 0;
8659 return value;
8660}
8661inline bool GraphProto::has_doc_string() const {
8662 return _internal_has_doc_string();
8663}
8664inline void GraphProto::clear_doc_string() {
8665 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
8666 _has_bits_[0] &= ~0x00000002u;
8667}
8668inline const std::string& GraphProto::doc_string() const {
8669 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.doc_string)
8670 return _internal_doc_string();
8671}
8672inline void GraphProto::set_doc_string(const std::string& value) {
8673 _internal_set_doc_string(value);
8674 // @@protoc_insertion_point(field_set:onnx_torch.GraphProto.doc_string)
8675}
8676inline std::string* GraphProto::mutable_doc_string() {
8677 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.doc_string)
8678 return _internal_mutable_doc_string();
8679}
8680inline const std::string& GraphProto::_internal_doc_string() const {
8681 return doc_string_.Get();
8682}
8683inline void GraphProto::_internal_set_doc_string(const std::string& value) {
8684 _has_bits_[0] |= 0x00000002u;
8685 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
8686}
8687inline void GraphProto::set_doc_string(std::string&& value) {
8688 _has_bits_[0] |= 0x00000002u;
8689 doc_string_.Set(
8690 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
8691 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.GraphProto.doc_string)
8692}
8693inline void GraphProto::set_doc_string(const char* value) {
8694 GOOGLE_DCHECK(value != nullptr);
8695 _has_bits_[0] |= 0x00000002u;
8696 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
8697 GetArena());
8698 // @@protoc_insertion_point(field_set_char:onnx_torch.GraphProto.doc_string)
8699}
8700inline void GraphProto::set_doc_string(const char* value,
8701 size_t size) {
8702 _has_bits_[0] |= 0x00000002u;
8703 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
8704 reinterpret_cast<const char*>(value), size), GetArena());
8705 // @@protoc_insertion_point(field_set_pointer:onnx_torch.GraphProto.doc_string)
8706}
8707inline std::string* GraphProto::_internal_mutable_doc_string() {
8708 _has_bits_[0] |= 0x00000002u;
8709 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
8710}
8711inline std::string* GraphProto::release_doc_string() {
8712 // @@protoc_insertion_point(field_release:onnx_torch.GraphProto.doc_string)
8713 if (!_internal_has_doc_string()) {
8714 return nullptr;
8715 }
8716 _has_bits_[0] &= ~0x00000002u;
8717 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
8718}
8719inline void GraphProto::set_allocated_doc_string(std::string* doc_string) {
8720 if (doc_string != nullptr) {
8721 _has_bits_[0] |= 0x00000002u;
8722 } else {
8723 _has_bits_[0] &= ~0x00000002u;
8724 }
8725 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
8726 GetArena());
8727 // @@protoc_insertion_point(field_set_allocated:onnx_torch.GraphProto.doc_string)
8728}
8729
8730// repeated .onnx_torch.ValueInfoProto input = 11;
8731inline int GraphProto::_internal_input_size() const {
8732 return input_.size();
8733}
8734inline int GraphProto::input_size() const {
8735 return _internal_input_size();
8736}
8737inline void GraphProto::clear_input() {
8738 input_.Clear();
8739}
8740inline ::onnx_torch::ValueInfoProto* GraphProto::mutable_input(int index) {
8741 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.input)
8742 return input_.Mutable(index);
8743}
8744inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
8745GraphProto::mutable_input() {
8746 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.input)
8747 return &input_;
8748}
8749inline const ::onnx_torch::ValueInfoProto& GraphProto::_internal_input(int index) const {
8750 return input_.Get(index);
8751}
8752inline const ::onnx_torch::ValueInfoProto& GraphProto::input(int index) const {
8753 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.input)
8754 return _internal_input(index);
8755}
8756inline ::onnx_torch::ValueInfoProto* GraphProto::_internal_add_input() {
8757 return input_.Add();
8758}
8759inline ::onnx_torch::ValueInfoProto* GraphProto::add_input() {
8760 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.input)
8761 return _internal_add_input();
8762}
8763inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
8764GraphProto::input() const {
8765 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.input)
8766 return input_;
8767}
8768
8769// repeated .onnx_torch.ValueInfoProto output = 12;
8770inline int GraphProto::_internal_output_size() const {
8771 return output_.size();
8772}
8773inline int GraphProto::output_size() const {
8774 return _internal_output_size();
8775}
8776inline void GraphProto::clear_output() {
8777 output_.Clear();
8778}
8779inline ::onnx_torch::ValueInfoProto* GraphProto::mutable_output(int index) {
8780 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.output)
8781 return output_.Mutable(index);
8782}
8783inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
8784GraphProto::mutable_output() {
8785 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.output)
8786 return &output_;
8787}
8788inline const ::onnx_torch::ValueInfoProto& GraphProto::_internal_output(int index) const {
8789 return output_.Get(index);
8790}
8791inline const ::onnx_torch::ValueInfoProto& GraphProto::output(int index) const {
8792 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.output)
8793 return _internal_output(index);
8794}
8795inline ::onnx_torch::ValueInfoProto* GraphProto::_internal_add_output() {
8796 return output_.Add();
8797}
8798inline ::onnx_torch::ValueInfoProto* GraphProto::add_output() {
8799 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.output)
8800 return _internal_add_output();
8801}
8802inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
8803GraphProto::output() const {
8804 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.output)
8805 return output_;
8806}
8807
8808// repeated .onnx_torch.ValueInfoProto value_info = 13;
8809inline int GraphProto::_internal_value_info_size() const {
8810 return value_info_.size();
8811}
8812inline int GraphProto::value_info_size() const {
8813 return _internal_value_info_size();
8814}
8815inline void GraphProto::clear_value_info() {
8816 value_info_.Clear();
8817}
8818inline ::onnx_torch::ValueInfoProto* GraphProto::mutable_value_info(int index) {
8819 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.value_info)
8820 return value_info_.Mutable(index);
8821}
8822inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >*
8823GraphProto::mutable_value_info() {
8824 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.value_info)
8825 return &value_info_;
8826}
8827inline const ::onnx_torch::ValueInfoProto& GraphProto::_internal_value_info(int index) const {
8828 return value_info_.Get(index);
8829}
8830inline const ::onnx_torch::ValueInfoProto& GraphProto::value_info(int index) const {
8831 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.value_info)
8832 return _internal_value_info(index);
8833}
8834inline ::onnx_torch::ValueInfoProto* GraphProto::_internal_add_value_info() {
8835 return value_info_.Add();
8836}
8837inline ::onnx_torch::ValueInfoProto* GraphProto::add_value_info() {
8838 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.value_info)
8839 return _internal_add_value_info();
8840}
8841inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::ValueInfoProto >&
8842GraphProto::value_info() const {
8843 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.value_info)
8844 return value_info_;
8845}
8846
8847// repeated .onnx_torch.TensorAnnotation quantization_annotation = 14;
8848inline int GraphProto::_internal_quantization_annotation_size() const {
8849 return quantization_annotation_.size();
8850}
8851inline int GraphProto::quantization_annotation_size() const {
8852 return _internal_quantization_annotation_size();
8853}
8854inline void GraphProto::clear_quantization_annotation() {
8855 quantization_annotation_.Clear();
8856}
8857inline ::onnx_torch::TensorAnnotation* GraphProto::mutable_quantization_annotation(int index) {
8858 // @@protoc_insertion_point(field_mutable:onnx_torch.GraphProto.quantization_annotation)
8859 return quantization_annotation_.Mutable(index);
8860}
8861inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorAnnotation >*
8862GraphProto::mutable_quantization_annotation() {
8863 // @@protoc_insertion_point(field_mutable_list:onnx_torch.GraphProto.quantization_annotation)
8864 return &quantization_annotation_;
8865}
8866inline const ::onnx_torch::TensorAnnotation& GraphProto::_internal_quantization_annotation(int index) const {
8867 return quantization_annotation_.Get(index);
8868}
8869inline const ::onnx_torch::TensorAnnotation& GraphProto::quantization_annotation(int index) const {
8870 // @@protoc_insertion_point(field_get:onnx_torch.GraphProto.quantization_annotation)
8871 return _internal_quantization_annotation(index);
8872}
8873inline ::onnx_torch::TensorAnnotation* GraphProto::_internal_add_quantization_annotation() {
8874 return quantization_annotation_.Add();
8875}
8876inline ::onnx_torch::TensorAnnotation* GraphProto::add_quantization_annotation() {
8877 // @@protoc_insertion_point(field_add:onnx_torch.GraphProto.quantization_annotation)
8878 return _internal_add_quantization_annotation();
8879}
8880inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorAnnotation >&
8881GraphProto::quantization_annotation() const {
8882 // @@protoc_insertion_point(field_list:onnx_torch.GraphProto.quantization_annotation)
8883 return quantization_annotation_;
8884}
8885
8886// -------------------------------------------------------------------
8887
8888// TensorProto_Segment
8889
8890// optional int64 begin = 1;
8891inline bool TensorProto_Segment::_internal_has_begin() const {
8892 bool value = (_has_bits_[0] & 0x00000001u) != 0;
8893 return value;
8894}
8895inline bool TensorProto_Segment::has_begin() const {
8896 return _internal_has_begin();
8897}
8898inline void TensorProto_Segment::clear_begin() {
8899 begin_ = PROTOBUF_LONGLONG(0);
8900 _has_bits_[0] &= ~0x00000001u;
8901}
8902inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto_Segment::_internal_begin() const {
8903 return begin_;
8904}
8905inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto_Segment::begin() const {
8906 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.Segment.begin)
8907 return _internal_begin();
8908}
8909inline void TensorProto_Segment::_internal_set_begin(::PROTOBUF_NAMESPACE_ID::int64 value) {
8910 _has_bits_[0] |= 0x00000001u;
8911 begin_ = value;
8912}
8913inline void TensorProto_Segment::set_begin(::PROTOBUF_NAMESPACE_ID::int64 value) {
8914 _internal_set_begin(value);
8915 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.Segment.begin)
8916}
8917
8918// optional int64 end = 2;
8919inline bool TensorProto_Segment::_internal_has_end() const {
8920 bool value = (_has_bits_[0] & 0x00000002u) != 0;
8921 return value;
8922}
8923inline bool TensorProto_Segment::has_end() const {
8924 return _internal_has_end();
8925}
8926inline void TensorProto_Segment::clear_end() {
8927 end_ = PROTOBUF_LONGLONG(0);
8928 _has_bits_[0] &= ~0x00000002u;
8929}
8930inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto_Segment::_internal_end() const {
8931 return end_;
8932}
8933inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto_Segment::end() const {
8934 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.Segment.end)
8935 return _internal_end();
8936}
8937inline void TensorProto_Segment::_internal_set_end(::PROTOBUF_NAMESPACE_ID::int64 value) {
8938 _has_bits_[0] |= 0x00000002u;
8939 end_ = value;
8940}
8941inline void TensorProto_Segment::set_end(::PROTOBUF_NAMESPACE_ID::int64 value) {
8942 _internal_set_end(value);
8943 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.Segment.end)
8944}
8945
8946// -------------------------------------------------------------------
8947
8948// TensorProto
8949
8950// repeated int64 dims = 1;
8951inline int TensorProto::_internal_dims_size() const {
8952 return dims_.size();
8953}
8954inline int TensorProto::dims_size() const {
8955 return _internal_dims_size();
8956}
8957inline void TensorProto::clear_dims() {
8958 dims_.Clear();
8959}
8960inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto::_internal_dims(int index) const {
8961 return dims_.Get(index);
8962}
8963inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto::dims(int index) const {
8964 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.dims)
8965 return _internal_dims(index);
8966}
8967inline void TensorProto::set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
8968 dims_.Set(index, value);
8969 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.dims)
8970}
8971inline void TensorProto::_internal_add_dims(::PROTOBUF_NAMESPACE_ID::int64 value) {
8972 dims_.Add(value);
8973}
8974inline void TensorProto::add_dims(::PROTOBUF_NAMESPACE_ID::int64 value) {
8975 _internal_add_dims(value);
8976 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.dims)
8977}
8978inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
8979TensorProto::_internal_dims() const {
8980 return dims_;
8981}
8982inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
8983TensorProto::dims() const {
8984 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.dims)
8985 return _internal_dims();
8986}
8987inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
8988TensorProto::_internal_mutable_dims() {
8989 return &dims_;
8990}
8991inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
8992TensorProto::mutable_dims() {
8993 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.dims)
8994 return _internal_mutable_dims();
8995}
8996
8997// optional int32 data_type = 2;
8998inline bool TensorProto::_internal_has_data_type() const {
8999 bool value = (_has_bits_[0] & 0x00000010u) != 0;
9000 return value;
9001}
9002inline bool TensorProto::has_data_type() const {
9003 return _internal_has_data_type();
9004}
9005inline void TensorProto::clear_data_type() {
9006 data_type_ = 0;
9007 _has_bits_[0] &= ~0x00000010u;
9008}
9009inline ::PROTOBUF_NAMESPACE_ID::int32 TensorProto::_internal_data_type() const {
9010 return data_type_;
9011}
9012inline ::PROTOBUF_NAMESPACE_ID::int32 TensorProto::data_type() const {
9013 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.data_type)
9014 return _internal_data_type();
9015}
9016inline void TensorProto::_internal_set_data_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
9017 _has_bits_[0] |= 0x00000010u;
9018 data_type_ = value;
9019}
9020inline void TensorProto::set_data_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
9021 _internal_set_data_type(value);
9022 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.data_type)
9023}
9024
9025// optional .onnx_torch.TensorProto.Segment segment = 3;
9026inline bool TensorProto::_internal_has_segment() const {
9027 bool value = (_has_bits_[0] & 0x00000008u) != 0;
9028 PROTOBUF_ASSUME(!value || segment_ != nullptr);
9029 return value;
9030}
9031inline bool TensorProto::has_segment() const {
9032 return _internal_has_segment();
9033}
9034inline void TensorProto::clear_segment() {
9035 if (segment_ != nullptr) segment_->Clear();
9036 _has_bits_[0] &= ~0x00000008u;
9037}
9038inline const ::onnx_torch::TensorProto_Segment& TensorProto::_internal_segment() const {
9039 const ::onnx_torch::TensorProto_Segment* p = segment_;
9040 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorProto_Segment*>(
9041 &::onnx_torch::_TensorProto_Segment_default_instance_);
9042}
9043inline const ::onnx_torch::TensorProto_Segment& TensorProto::segment() const {
9044 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.segment)
9045 return _internal_segment();
9046}
9047inline void TensorProto::unsafe_arena_set_allocated_segment(
9048 ::onnx_torch::TensorProto_Segment* segment) {
9049 if (GetArena() == nullptr) {
9050 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(segment_);
9051 }
9052 segment_ = segment;
9053 if (segment) {
9054 _has_bits_[0] |= 0x00000008u;
9055 } else {
9056 _has_bits_[0] &= ~0x00000008u;
9057 }
9058 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TensorProto.segment)
9059}
9060inline ::onnx_torch::TensorProto_Segment* TensorProto::release_segment() {
9061 _has_bits_[0] &= ~0x00000008u;
9062 ::onnx_torch::TensorProto_Segment* temp = segment_;
9063 segment_ = nullptr;
9064 if (GetArena() != nullptr) {
9065 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
9066 }
9067 return temp;
9068}
9069inline ::onnx_torch::TensorProto_Segment* TensorProto::unsafe_arena_release_segment() {
9070 // @@protoc_insertion_point(field_release:onnx_torch.TensorProto.segment)
9071 _has_bits_[0] &= ~0x00000008u;
9072 ::onnx_torch::TensorProto_Segment* temp = segment_;
9073 segment_ = nullptr;
9074 return temp;
9075}
9076inline ::onnx_torch::TensorProto_Segment* TensorProto::_internal_mutable_segment() {
9077 _has_bits_[0] |= 0x00000008u;
9078 if (segment_ == nullptr) {
9079 auto* p = CreateMaybeMessage<::onnx_torch::TensorProto_Segment>(GetArena());
9080 segment_ = p;
9081 }
9082 return segment_;
9083}
9084inline ::onnx_torch::TensorProto_Segment* TensorProto::mutable_segment() {
9085 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.segment)
9086 return _internal_mutable_segment();
9087}
9088inline void TensorProto::set_allocated_segment(::onnx_torch::TensorProto_Segment* segment) {
9089 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
9090 if (message_arena == nullptr) {
9091 delete segment_;
9092 }
9093 if (segment) {
9094 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
9095 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(segment);
9096 if (message_arena != submessage_arena) {
9097 segment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
9098 message_arena, segment, submessage_arena);
9099 }
9100 _has_bits_[0] |= 0x00000008u;
9101 } else {
9102 _has_bits_[0] &= ~0x00000008u;
9103 }
9104 segment_ = segment;
9105 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorProto.segment)
9106}
9107
9108// repeated float float_data = 4 [packed = true];
9109inline int TensorProto::_internal_float_data_size() const {
9110 return float_data_.size();
9111}
9112inline int TensorProto::float_data_size() const {
9113 return _internal_float_data_size();
9114}
9115inline void TensorProto::clear_float_data() {
9116 float_data_.Clear();
9117}
9118inline float TensorProto::_internal_float_data(int index) const {
9119 return float_data_.Get(index);
9120}
9121inline float TensorProto::float_data(int index) const {
9122 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.float_data)
9123 return _internal_float_data(index);
9124}
9125inline void TensorProto::set_float_data(int index, float value) {
9126 float_data_.Set(index, value);
9127 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.float_data)
9128}
9129inline void TensorProto::_internal_add_float_data(float value) {
9130 float_data_.Add(value);
9131}
9132inline void TensorProto::add_float_data(float value) {
9133 _internal_add_float_data(value);
9134 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.float_data)
9135}
9136inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
9137TensorProto::_internal_float_data() const {
9138 return float_data_;
9139}
9140inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
9141TensorProto::float_data() const {
9142 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.float_data)
9143 return _internal_float_data();
9144}
9145inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
9146TensorProto::_internal_mutable_float_data() {
9147 return &float_data_;
9148}
9149inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
9150TensorProto::mutable_float_data() {
9151 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.float_data)
9152 return _internal_mutable_float_data();
9153}
9154
9155// repeated int32 int32_data = 5 [packed = true];
9156inline int TensorProto::_internal_int32_data_size() const {
9157 return int32_data_.size();
9158}
9159inline int TensorProto::int32_data_size() const {
9160 return _internal_int32_data_size();
9161}
9162inline void TensorProto::clear_int32_data() {
9163 int32_data_.Clear();
9164}
9165inline ::PROTOBUF_NAMESPACE_ID::int32 TensorProto::_internal_int32_data(int index) const {
9166 return int32_data_.Get(index);
9167}
9168inline ::PROTOBUF_NAMESPACE_ID::int32 TensorProto::int32_data(int index) const {
9169 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.int32_data)
9170 return _internal_int32_data(index);
9171}
9172inline void TensorProto::set_int32_data(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
9173 int32_data_.Set(index, value);
9174 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.int32_data)
9175}
9176inline void TensorProto::_internal_add_int32_data(::PROTOBUF_NAMESPACE_ID::int32 value) {
9177 int32_data_.Add(value);
9178}
9179inline void TensorProto::add_int32_data(::PROTOBUF_NAMESPACE_ID::int32 value) {
9180 _internal_add_int32_data(value);
9181 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.int32_data)
9182}
9183inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
9184TensorProto::_internal_int32_data() const {
9185 return int32_data_;
9186}
9187inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
9188TensorProto::int32_data() const {
9189 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.int32_data)
9190 return _internal_int32_data();
9191}
9192inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
9193TensorProto::_internal_mutable_int32_data() {
9194 return &int32_data_;
9195}
9196inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
9197TensorProto::mutable_int32_data() {
9198 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.int32_data)
9199 return _internal_mutable_int32_data();
9200}
9201
9202// repeated bytes string_data = 6;
9203inline int TensorProto::_internal_string_data_size() const {
9204 return string_data_.size();
9205}
9206inline int TensorProto::string_data_size() const {
9207 return _internal_string_data_size();
9208}
9209inline void TensorProto::clear_string_data() {
9210 string_data_.Clear();
9211}
9212inline std::string* TensorProto::add_string_data() {
9213 // @@protoc_insertion_point(field_add_mutable:onnx_torch.TensorProto.string_data)
9214 return _internal_add_string_data();
9215}
9216inline const std::string& TensorProto::_internal_string_data(int index) const {
9217 return string_data_.Get(index);
9218}
9219inline const std::string& TensorProto::string_data(int index) const {
9220 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.string_data)
9221 return _internal_string_data(index);
9222}
9223inline std::string* TensorProto::mutable_string_data(int index) {
9224 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.string_data)
9225 return string_data_.Mutable(index);
9226}
9227inline void TensorProto::set_string_data(int index, const std::string& value) {
9228 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.string_data)
9229 string_data_.Mutable(index)->assign(value);
9230}
9231inline void TensorProto::set_string_data(int index, std::string&& value) {
9232 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.string_data)
9233 string_data_.Mutable(index)->assign(std::move(value));
9234}
9235inline void TensorProto::set_string_data(int index, const char* value) {
9236 GOOGLE_DCHECK(value != nullptr);
9237 string_data_.Mutable(index)->assign(value);
9238 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorProto.string_data)
9239}
9240inline void TensorProto::set_string_data(int index, const void* value, size_t size) {
9241 string_data_.Mutable(index)->assign(
9242 reinterpret_cast<const char*>(value), size);
9243 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorProto.string_data)
9244}
9245inline std::string* TensorProto::_internal_add_string_data() {
9246 return string_data_.Add();
9247}
9248inline void TensorProto::add_string_data(const std::string& value) {
9249 string_data_.Add()->assign(value);
9250 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.string_data)
9251}
9252inline void TensorProto::add_string_data(std::string&& value) {
9253 string_data_.Add(std::move(value));
9254 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.string_data)
9255}
9256inline void TensorProto::add_string_data(const char* value) {
9257 GOOGLE_DCHECK(value != nullptr);
9258 string_data_.Add()->assign(value);
9259 // @@protoc_insertion_point(field_add_char:onnx_torch.TensorProto.string_data)
9260}
9261inline void TensorProto::add_string_data(const void* value, size_t size) {
9262 string_data_.Add()->assign(reinterpret_cast<const char*>(value), size);
9263 // @@protoc_insertion_point(field_add_pointer:onnx_torch.TensorProto.string_data)
9264}
9265inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
9266TensorProto::string_data() const {
9267 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.string_data)
9268 return string_data_;
9269}
9270inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
9271TensorProto::mutable_string_data() {
9272 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.string_data)
9273 return &string_data_;
9274}
9275
9276// repeated int64 int64_data = 7 [packed = true];
9277inline int TensorProto::_internal_int64_data_size() const {
9278 return int64_data_.size();
9279}
9280inline int TensorProto::int64_data_size() const {
9281 return _internal_int64_data_size();
9282}
9283inline void TensorProto::clear_int64_data() {
9284 int64_data_.Clear();
9285}
9286inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto::_internal_int64_data(int index) const {
9287 return int64_data_.Get(index);
9288}
9289inline ::PROTOBUF_NAMESPACE_ID::int64 TensorProto::int64_data(int index) const {
9290 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.int64_data)
9291 return _internal_int64_data(index);
9292}
9293inline void TensorProto::set_int64_data(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
9294 int64_data_.Set(index, value);
9295 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.int64_data)
9296}
9297inline void TensorProto::_internal_add_int64_data(::PROTOBUF_NAMESPACE_ID::int64 value) {
9298 int64_data_.Add(value);
9299}
9300inline void TensorProto::add_int64_data(::PROTOBUF_NAMESPACE_ID::int64 value) {
9301 _internal_add_int64_data(value);
9302 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.int64_data)
9303}
9304inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
9305TensorProto::_internal_int64_data() const {
9306 return int64_data_;
9307}
9308inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
9309TensorProto::int64_data() const {
9310 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.int64_data)
9311 return _internal_int64_data();
9312}
9313inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
9314TensorProto::_internal_mutable_int64_data() {
9315 return &int64_data_;
9316}
9317inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
9318TensorProto::mutable_int64_data() {
9319 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.int64_data)
9320 return _internal_mutable_int64_data();
9321}
9322
9323// optional string name = 8;
9324inline bool TensorProto::_internal_has_name() const {
9325 bool value = (_has_bits_[0] & 0x00000001u) != 0;
9326 return value;
9327}
9328inline bool TensorProto::has_name() const {
9329 return _internal_has_name();
9330}
9331inline void TensorProto::clear_name() {
9332 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
9333 _has_bits_[0] &= ~0x00000001u;
9334}
9335inline const std::string& TensorProto::name() const {
9336 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.name)
9337 return _internal_name();
9338}
9339inline void TensorProto::set_name(const std::string& value) {
9340 _internal_set_name(value);
9341 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.name)
9342}
9343inline std::string* TensorProto::mutable_name() {
9344 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.name)
9345 return _internal_mutable_name();
9346}
9347inline const std::string& TensorProto::_internal_name() const {
9348 return name_.Get();
9349}
9350inline void TensorProto::_internal_set_name(const std::string& value) {
9351 _has_bits_[0] |= 0x00000001u;
9352 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
9353}
9354inline void TensorProto::set_name(std::string&& value) {
9355 _has_bits_[0] |= 0x00000001u;
9356 name_.Set(
9357 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
9358 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorProto.name)
9359}
9360inline void TensorProto::set_name(const char* value) {
9361 GOOGLE_DCHECK(value != nullptr);
9362 _has_bits_[0] |= 0x00000001u;
9363 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
9364 GetArena());
9365 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorProto.name)
9366}
9367inline void TensorProto::set_name(const char* value,
9368 size_t size) {
9369 _has_bits_[0] |= 0x00000001u;
9370 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
9371 reinterpret_cast<const char*>(value), size), GetArena());
9372 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorProto.name)
9373}
9374inline std::string* TensorProto::_internal_mutable_name() {
9375 _has_bits_[0] |= 0x00000001u;
9376 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
9377}
9378inline std::string* TensorProto::release_name() {
9379 // @@protoc_insertion_point(field_release:onnx_torch.TensorProto.name)
9380 if (!_internal_has_name()) {
9381 return nullptr;
9382 }
9383 _has_bits_[0] &= ~0x00000001u;
9384 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
9385}
9386inline void TensorProto::set_allocated_name(std::string* name) {
9387 if (name != nullptr) {
9388 _has_bits_[0] |= 0x00000001u;
9389 } else {
9390 _has_bits_[0] &= ~0x00000001u;
9391 }
9392 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
9393 GetArena());
9394 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorProto.name)
9395}
9396
9397// optional string doc_string = 12;
9398inline bool TensorProto::_internal_has_doc_string() const {
9399 bool value = (_has_bits_[0] & 0x00000004u) != 0;
9400 return value;
9401}
9402inline bool TensorProto::has_doc_string() const {
9403 return _internal_has_doc_string();
9404}
9405inline void TensorProto::clear_doc_string() {
9406 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
9407 _has_bits_[0] &= ~0x00000004u;
9408}
9409inline const std::string& TensorProto::doc_string() const {
9410 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.doc_string)
9411 return _internal_doc_string();
9412}
9413inline void TensorProto::set_doc_string(const std::string& value) {
9414 _internal_set_doc_string(value);
9415 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.doc_string)
9416}
9417inline std::string* TensorProto::mutable_doc_string() {
9418 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.doc_string)
9419 return _internal_mutable_doc_string();
9420}
9421inline const std::string& TensorProto::_internal_doc_string() const {
9422 return doc_string_.Get();
9423}
9424inline void TensorProto::_internal_set_doc_string(const std::string& value) {
9425 _has_bits_[0] |= 0x00000004u;
9426 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
9427}
9428inline void TensorProto::set_doc_string(std::string&& value) {
9429 _has_bits_[0] |= 0x00000004u;
9430 doc_string_.Set(
9431 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
9432 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorProto.doc_string)
9433}
9434inline void TensorProto::set_doc_string(const char* value) {
9435 GOOGLE_DCHECK(value != nullptr);
9436 _has_bits_[0] |= 0x00000004u;
9437 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
9438 GetArena());
9439 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorProto.doc_string)
9440}
9441inline void TensorProto::set_doc_string(const char* value,
9442 size_t size) {
9443 _has_bits_[0] |= 0x00000004u;
9444 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
9445 reinterpret_cast<const char*>(value), size), GetArena());
9446 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorProto.doc_string)
9447}
9448inline std::string* TensorProto::_internal_mutable_doc_string() {
9449 _has_bits_[0] |= 0x00000004u;
9450 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
9451}
9452inline std::string* TensorProto::release_doc_string() {
9453 // @@protoc_insertion_point(field_release:onnx_torch.TensorProto.doc_string)
9454 if (!_internal_has_doc_string()) {
9455 return nullptr;
9456 }
9457 _has_bits_[0] &= ~0x00000004u;
9458 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
9459}
9460inline void TensorProto::set_allocated_doc_string(std::string* doc_string) {
9461 if (doc_string != nullptr) {
9462 _has_bits_[0] |= 0x00000004u;
9463 } else {
9464 _has_bits_[0] &= ~0x00000004u;
9465 }
9466 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
9467 GetArena());
9468 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorProto.doc_string)
9469}
9470
9471// optional bytes raw_data = 9;
9472inline bool TensorProto::_internal_has_raw_data() const {
9473 bool value = (_has_bits_[0] & 0x00000002u) != 0;
9474 return value;
9475}
9476inline bool TensorProto::has_raw_data() const {
9477 return _internal_has_raw_data();
9478}
9479inline void TensorProto::clear_raw_data() {
9480 raw_data_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
9481 _has_bits_[0] &= ~0x00000002u;
9482}
9483inline const std::string& TensorProto::raw_data() const {
9484 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.raw_data)
9485 return _internal_raw_data();
9486}
9487inline void TensorProto::set_raw_data(const std::string& value) {
9488 _internal_set_raw_data(value);
9489 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.raw_data)
9490}
9491inline std::string* TensorProto::mutable_raw_data() {
9492 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.raw_data)
9493 return _internal_mutable_raw_data();
9494}
9495inline const std::string& TensorProto::_internal_raw_data() const {
9496 return raw_data_.Get();
9497}
9498inline void TensorProto::_internal_set_raw_data(const std::string& value) {
9499 _has_bits_[0] |= 0x00000002u;
9500 raw_data_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
9501}
9502inline void TensorProto::set_raw_data(std::string&& value) {
9503 _has_bits_[0] |= 0x00000002u;
9504 raw_data_.Set(
9505 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
9506 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorProto.raw_data)
9507}
9508inline void TensorProto::set_raw_data(const char* value) {
9509 GOOGLE_DCHECK(value != nullptr);
9510 _has_bits_[0] |= 0x00000002u;
9511 raw_data_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
9512 GetArena());
9513 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorProto.raw_data)
9514}
9515inline void TensorProto::set_raw_data(const void* value,
9516 size_t size) {
9517 _has_bits_[0] |= 0x00000002u;
9518 raw_data_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
9519 reinterpret_cast<const char*>(value), size), GetArena());
9520 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorProto.raw_data)
9521}
9522inline std::string* TensorProto::_internal_mutable_raw_data() {
9523 _has_bits_[0] |= 0x00000002u;
9524 return raw_data_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
9525}
9526inline std::string* TensorProto::release_raw_data() {
9527 // @@protoc_insertion_point(field_release:onnx_torch.TensorProto.raw_data)
9528 if (!_internal_has_raw_data()) {
9529 return nullptr;
9530 }
9531 _has_bits_[0] &= ~0x00000002u;
9532 return raw_data_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
9533}
9534inline void TensorProto::set_allocated_raw_data(std::string* raw_data) {
9535 if (raw_data != nullptr) {
9536 _has_bits_[0] |= 0x00000002u;
9537 } else {
9538 _has_bits_[0] &= ~0x00000002u;
9539 }
9540 raw_data_.SetAllocated(&GetEmptyStringAlreadyInited(), raw_data,
9541 GetArena());
9542 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorProto.raw_data)
9543}
9544
9545// repeated .onnx_torch.StringStringEntryProto external_data = 13;
9546inline int TensorProto::_internal_external_data_size() const {
9547 return external_data_.size();
9548}
9549inline int TensorProto::external_data_size() const {
9550 return _internal_external_data_size();
9551}
9552inline void TensorProto::clear_external_data() {
9553 external_data_.Clear();
9554}
9555inline ::onnx_torch::StringStringEntryProto* TensorProto::mutable_external_data(int index) {
9556 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorProto.external_data)
9557 return external_data_.Mutable(index);
9558}
9559inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >*
9560TensorProto::mutable_external_data() {
9561 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.external_data)
9562 return &external_data_;
9563}
9564inline const ::onnx_torch::StringStringEntryProto& TensorProto::_internal_external_data(int index) const {
9565 return external_data_.Get(index);
9566}
9567inline const ::onnx_torch::StringStringEntryProto& TensorProto::external_data(int index) const {
9568 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.external_data)
9569 return _internal_external_data(index);
9570}
9571inline ::onnx_torch::StringStringEntryProto* TensorProto::_internal_add_external_data() {
9572 return external_data_.Add();
9573}
9574inline ::onnx_torch::StringStringEntryProto* TensorProto::add_external_data() {
9575 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.external_data)
9576 return _internal_add_external_data();
9577}
9578inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::StringStringEntryProto >&
9579TensorProto::external_data() const {
9580 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.external_data)
9581 return external_data_;
9582}
9583
9584// optional .onnx_torch.TensorProto.DataLocation data_location = 14;
9585inline bool TensorProto::_internal_has_data_location() const {
9586 bool value = (_has_bits_[0] & 0x00000020u) != 0;
9587 return value;
9588}
9589inline bool TensorProto::has_data_location() const {
9590 return _internal_has_data_location();
9591}
9592inline void TensorProto::clear_data_location() {
9593 data_location_ = 0;
9594 _has_bits_[0] &= ~0x00000020u;
9595}
9596inline ::onnx_torch::TensorProto_DataLocation TensorProto::_internal_data_location() const {
9597 return static_cast< ::onnx_torch::TensorProto_DataLocation >(data_location_);
9598}
9599inline ::onnx_torch::TensorProto_DataLocation TensorProto::data_location() const {
9600 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.data_location)
9601 return _internal_data_location();
9602}
9603inline void TensorProto::_internal_set_data_location(::onnx_torch::TensorProto_DataLocation value) {
9604 assert(::onnx_torch::TensorProto_DataLocation_IsValid(value));
9605 _has_bits_[0] |= 0x00000020u;
9606 data_location_ = value;
9607}
9608inline void TensorProto::set_data_location(::onnx_torch::TensorProto_DataLocation value) {
9609 _internal_set_data_location(value);
9610 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.data_location)
9611}
9612
9613// repeated double double_data = 10 [packed = true];
9614inline int TensorProto::_internal_double_data_size() const {
9615 return double_data_.size();
9616}
9617inline int TensorProto::double_data_size() const {
9618 return _internal_double_data_size();
9619}
9620inline void TensorProto::clear_double_data() {
9621 double_data_.Clear();
9622}
9623inline double TensorProto::_internal_double_data(int index) const {
9624 return double_data_.Get(index);
9625}
9626inline double TensorProto::double_data(int index) const {
9627 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.double_data)
9628 return _internal_double_data(index);
9629}
9630inline void TensorProto::set_double_data(int index, double value) {
9631 double_data_.Set(index, value);
9632 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.double_data)
9633}
9634inline void TensorProto::_internal_add_double_data(double value) {
9635 double_data_.Add(value);
9636}
9637inline void TensorProto::add_double_data(double value) {
9638 _internal_add_double_data(value);
9639 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.double_data)
9640}
9641inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
9642TensorProto::_internal_double_data() const {
9643 return double_data_;
9644}
9645inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
9646TensorProto::double_data() const {
9647 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.double_data)
9648 return _internal_double_data();
9649}
9650inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
9651TensorProto::_internal_mutable_double_data() {
9652 return &double_data_;
9653}
9654inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
9655TensorProto::mutable_double_data() {
9656 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.double_data)
9657 return _internal_mutable_double_data();
9658}
9659
9660// repeated uint64 uint64_data = 11 [packed = true];
9661inline int TensorProto::_internal_uint64_data_size() const {
9662 return uint64_data_.size();
9663}
9664inline int TensorProto::uint64_data_size() const {
9665 return _internal_uint64_data_size();
9666}
9667inline void TensorProto::clear_uint64_data() {
9668 uint64_data_.Clear();
9669}
9670inline ::PROTOBUF_NAMESPACE_ID::uint64 TensorProto::_internal_uint64_data(int index) const {
9671 return uint64_data_.Get(index);
9672}
9673inline ::PROTOBUF_NAMESPACE_ID::uint64 TensorProto::uint64_data(int index) const {
9674 // @@protoc_insertion_point(field_get:onnx_torch.TensorProto.uint64_data)
9675 return _internal_uint64_data(index);
9676}
9677inline void TensorProto::set_uint64_data(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value) {
9678 uint64_data_.Set(index, value);
9679 // @@protoc_insertion_point(field_set:onnx_torch.TensorProto.uint64_data)
9680}
9681inline void TensorProto::_internal_add_uint64_data(::PROTOBUF_NAMESPACE_ID::uint64 value) {
9682 uint64_data_.Add(value);
9683}
9684inline void TensorProto::add_uint64_data(::PROTOBUF_NAMESPACE_ID::uint64 value) {
9685 _internal_add_uint64_data(value);
9686 // @@protoc_insertion_point(field_add:onnx_torch.TensorProto.uint64_data)
9687}
9688inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >&
9689TensorProto::_internal_uint64_data() const {
9690 return uint64_data_;
9691}
9692inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >&
9693TensorProto::uint64_data() const {
9694 // @@protoc_insertion_point(field_list:onnx_torch.TensorProto.uint64_data)
9695 return _internal_uint64_data();
9696}
9697inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >*
9698TensorProto::_internal_mutable_uint64_data() {
9699 return &uint64_data_;
9700}
9701inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >*
9702TensorProto::mutable_uint64_data() {
9703 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorProto.uint64_data)
9704 return _internal_mutable_uint64_data();
9705}
9706
9707// -------------------------------------------------------------------
9708
9709// SparseTensorProto
9710
9711// optional .onnx_torch.TensorProto values = 1;
9712inline bool SparseTensorProto::_internal_has_values() const {
9713 bool value = (_has_bits_[0] & 0x00000001u) != 0;
9714 PROTOBUF_ASSUME(!value || values_ != nullptr);
9715 return value;
9716}
9717inline bool SparseTensorProto::has_values() const {
9718 return _internal_has_values();
9719}
9720inline void SparseTensorProto::clear_values() {
9721 if (values_ != nullptr) values_->Clear();
9722 _has_bits_[0] &= ~0x00000001u;
9723}
9724inline const ::onnx_torch::TensorProto& SparseTensorProto::_internal_values() const {
9725 const ::onnx_torch::TensorProto* p = values_;
9726 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorProto*>(
9727 &::onnx_torch::_TensorProto_default_instance_);
9728}
9729inline const ::onnx_torch::TensorProto& SparseTensorProto::values() const {
9730 // @@protoc_insertion_point(field_get:onnx_torch.SparseTensorProto.values)
9731 return _internal_values();
9732}
9733inline void SparseTensorProto::unsafe_arena_set_allocated_values(
9734 ::onnx_torch::TensorProto* values) {
9735 if (GetArena() == nullptr) {
9736 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(values_);
9737 }
9738 values_ = values;
9739 if (values) {
9740 _has_bits_[0] |= 0x00000001u;
9741 } else {
9742 _has_bits_[0] &= ~0x00000001u;
9743 }
9744 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.SparseTensorProto.values)
9745}
9746inline ::onnx_torch::TensorProto* SparseTensorProto::release_values() {
9747 _has_bits_[0] &= ~0x00000001u;
9748 ::onnx_torch::TensorProto* temp = values_;
9749 values_ = nullptr;
9750 if (GetArena() != nullptr) {
9751 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
9752 }
9753 return temp;
9754}
9755inline ::onnx_torch::TensorProto* SparseTensorProto::unsafe_arena_release_values() {
9756 // @@protoc_insertion_point(field_release:onnx_torch.SparseTensorProto.values)
9757 _has_bits_[0] &= ~0x00000001u;
9758 ::onnx_torch::TensorProto* temp = values_;
9759 values_ = nullptr;
9760 return temp;
9761}
9762inline ::onnx_torch::TensorProto* SparseTensorProto::_internal_mutable_values() {
9763 _has_bits_[0] |= 0x00000001u;
9764 if (values_ == nullptr) {
9765 auto* p = CreateMaybeMessage<::onnx_torch::TensorProto>(GetArena());
9766 values_ = p;
9767 }
9768 return values_;
9769}
9770inline ::onnx_torch::TensorProto* SparseTensorProto::mutable_values() {
9771 // @@protoc_insertion_point(field_mutable:onnx_torch.SparseTensorProto.values)
9772 return _internal_mutable_values();
9773}
9774inline void SparseTensorProto::set_allocated_values(::onnx_torch::TensorProto* values) {
9775 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
9776 if (message_arena == nullptr) {
9777 delete values_;
9778 }
9779 if (values) {
9780 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
9781 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(values);
9782 if (message_arena != submessage_arena) {
9783 values = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
9784 message_arena, values, submessage_arena);
9785 }
9786 _has_bits_[0] |= 0x00000001u;
9787 } else {
9788 _has_bits_[0] &= ~0x00000001u;
9789 }
9790 values_ = values;
9791 // @@protoc_insertion_point(field_set_allocated:onnx_torch.SparseTensorProto.values)
9792}
9793
9794// optional .onnx_torch.TensorProto indices = 2;
9795inline bool SparseTensorProto::_internal_has_indices() const {
9796 bool value = (_has_bits_[0] & 0x00000002u) != 0;
9797 PROTOBUF_ASSUME(!value || indices_ != nullptr);
9798 return value;
9799}
9800inline bool SparseTensorProto::has_indices() const {
9801 return _internal_has_indices();
9802}
9803inline void SparseTensorProto::clear_indices() {
9804 if (indices_ != nullptr) indices_->Clear();
9805 _has_bits_[0] &= ~0x00000002u;
9806}
9807inline const ::onnx_torch::TensorProto& SparseTensorProto::_internal_indices() const {
9808 const ::onnx_torch::TensorProto* p = indices_;
9809 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorProto*>(
9810 &::onnx_torch::_TensorProto_default_instance_);
9811}
9812inline const ::onnx_torch::TensorProto& SparseTensorProto::indices() const {
9813 // @@protoc_insertion_point(field_get:onnx_torch.SparseTensorProto.indices)
9814 return _internal_indices();
9815}
9816inline void SparseTensorProto::unsafe_arena_set_allocated_indices(
9817 ::onnx_torch::TensorProto* indices) {
9818 if (GetArena() == nullptr) {
9819 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(indices_);
9820 }
9821 indices_ = indices;
9822 if (indices) {
9823 _has_bits_[0] |= 0x00000002u;
9824 } else {
9825 _has_bits_[0] &= ~0x00000002u;
9826 }
9827 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.SparseTensorProto.indices)
9828}
9829inline ::onnx_torch::TensorProto* SparseTensorProto::release_indices() {
9830 _has_bits_[0] &= ~0x00000002u;
9831 ::onnx_torch::TensorProto* temp = indices_;
9832 indices_ = nullptr;
9833 if (GetArena() != nullptr) {
9834 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
9835 }
9836 return temp;
9837}
9838inline ::onnx_torch::TensorProto* SparseTensorProto::unsafe_arena_release_indices() {
9839 // @@protoc_insertion_point(field_release:onnx_torch.SparseTensorProto.indices)
9840 _has_bits_[0] &= ~0x00000002u;
9841 ::onnx_torch::TensorProto* temp = indices_;
9842 indices_ = nullptr;
9843 return temp;
9844}
9845inline ::onnx_torch::TensorProto* SparseTensorProto::_internal_mutable_indices() {
9846 _has_bits_[0] |= 0x00000002u;
9847 if (indices_ == nullptr) {
9848 auto* p = CreateMaybeMessage<::onnx_torch::TensorProto>(GetArena());
9849 indices_ = p;
9850 }
9851 return indices_;
9852}
9853inline ::onnx_torch::TensorProto* SparseTensorProto::mutable_indices() {
9854 // @@protoc_insertion_point(field_mutable:onnx_torch.SparseTensorProto.indices)
9855 return _internal_mutable_indices();
9856}
9857inline void SparseTensorProto::set_allocated_indices(::onnx_torch::TensorProto* indices) {
9858 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
9859 if (message_arena == nullptr) {
9860 delete indices_;
9861 }
9862 if (indices) {
9863 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
9864 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(indices);
9865 if (message_arena != submessage_arena) {
9866 indices = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
9867 message_arena, indices, submessage_arena);
9868 }
9869 _has_bits_[0] |= 0x00000002u;
9870 } else {
9871 _has_bits_[0] &= ~0x00000002u;
9872 }
9873 indices_ = indices;
9874 // @@protoc_insertion_point(field_set_allocated:onnx_torch.SparseTensorProto.indices)
9875}
9876
9877// repeated int64 dims = 3;
9878inline int SparseTensorProto::_internal_dims_size() const {
9879 return dims_.size();
9880}
9881inline int SparseTensorProto::dims_size() const {
9882 return _internal_dims_size();
9883}
9884inline void SparseTensorProto::clear_dims() {
9885 dims_.Clear();
9886}
9887inline ::PROTOBUF_NAMESPACE_ID::int64 SparseTensorProto::_internal_dims(int index) const {
9888 return dims_.Get(index);
9889}
9890inline ::PROTOBUF_NAMESPACE_ID::int64 SparseTensorProto::dims(int index) const {
9891 // @@protoc_insertion_point(field_get:onnx_torch.SparseTensorProto.dims)
9892 return _internal_dims(index);
9893}
9894inline void SparseTensorProto::set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
9895 dims_.Set(index, value);
9896 // @@protoc_insertion_point(field_set:onnx_torch.SparseTensorProto.dims)
9897}
9898inline void SparseTensorProto::_internal_add_dims(::PROTOBUF_NAMESPACE_ID::int64 value) {
9899 dims_.Add(value);
9900}
9901inline void SparseTensorProto::add_dims(::PROTOBUF_NAMESPACE_ID::int64 value) {
9902 _internal_add_dims(value);
9903 // @@protoc_insertion_point(field_add:onnx_torch.SparseTensorProto.dims)
9904}
9905inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
9906SparseTensorProto::_internal_dims() const {
9907 return dims_;
9908}
9909inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
9910SparseTensorProto::dims() const {
9911 // @@protoc_insertion_point(field_list:onnx_torch.SparseTensorProto.dims)
9912 return _internal_dims();
9913}
9914inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
9915SparseTensorProto::_internal_mutable_dims() {
9916 return &dims_;
9917}
9918inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
9919SparseTensorProto::mutable_dims() {
9920 // @@protoc_insertion_point(field_mutable_list:onnx_torch.SparseTensorProto.dims)
9921 return _internal_mutable_dims();
9922}
9923
9924// -------------------------------------------------------------------
9925
9926// TensorShapeProto_Dimension
9927
9928// int64 dim_value = 1;
9929inline bool TensorShapeProto_Dimension::_internal_has_dim_value() const {
9930 return value_case() == kDimValue;
9931}
9932inline bool TensorShapeProto_Dimension::has_dim_value() const {
9933 return _internal_has_dim_value();
9934}
9935inline void TensorShapeProto_Dimension::set_has_dim_value() {
9936 _oneof_case_[0] = kDimValue;
9937}
9938inline void TensorShapeProto_Dimension::clear_dim_value() {
9939 if (_internal_has_dim_value()) {
9940 value_.dim_value_ = PROTOBUF_LONGLONG(0);
9941 clear_has_value();
9942 }
9943}
9944inline ::PROTOBUF_NAMESPACE_ID::int64 TensorShapeProto_Dimension::_internal_dim_value() const {
9945 if (_internal_has_dim_value()) {
9946 return value_.dim_value_;
9947 }
9948 return PROTOBUF_LONGLONG(0);
9949}
9950inline void TensorShapeProto_Dimension::_internal_set_dim_value(::PROTOBUF_NAMESPACE_ID::int64 value) {
9951 if (!_internal_has_dim_value()) {
9952 clear_value();
9953 set_has_dim_value();
9954 }
9955 value_.dim_value_ = value;
9956}
9957inline ::PROTOBUF_NAMESPACE_ID::int64 TensorShapeProto_Dimension::dim_value() const {
9958 // @@protoc_insertion_point(field_get:onnx_torch.TensorShapeProto.Dimension.dim_value)
9959 return _internal_dim_value();
9960}
9961inline void TensorShapeProto_Dimension::set_dim_value(::PROTOBUF_NAMESPACE_ID::int64 value) {
9962 _internal_set_dim_value(value);
9963 // @@protoc_insertion_point(field_set:onnx_torch.TensorShapeProto.Dimension.dim_value)
9964}
9965
9966// string dim_param = 2;
9967inline bool TensorShapeProto_Dimension::_internal_has_dim_param() const {
9968 return value_case() == kDimParam;
9969}
9970inline bool TensorShapeProto_Dimension::has_dim_param() const {
9971 return _internal_has_dim_param();
9972}
9973inline void TensorShapeProto_Dimension::set_has_dim_param() {
9974 _oneof_case_[0] = kDimParam;
9975}
9976inline void TensorShapeProto_Dimension::clear_dim_param() {
9977 if (_internal_has_dim_param()) {
9978 value_.dim_param_.Destroy(&GetEmptyStringAlreadyInited(), GetArena());
9979 clear_has_value();
9980 }
9981}
9982inline const std::string& TensorShapeProto_Dimension::dim_param() const {
9983 // @@protoc_insertion_point(field_get:onnx_torch.TensorShapeProto.Dimension.dim_param)
9984 return _internal_dim_param();
9985}
9986inline void TensorShapeProto_Dimension::set_dim_param(const std::string& value) {
9987 _internal_set_dim_param(value);
9988 // @@protoc_insertion_point(field_set:onnx_torch.TensorShapeProto.Dimension.dim_param)
9989}
9990inline std::string* TensorShapeProto_Dimension::mutable_dim_param() {
9991 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorShapeProto.Dimension.dim_param)
9992 return _internal_mutable_dim_param();
9993}
9994inline const std::string& TensorShapeProto_Dimension::_internal_dim_param() const {
9995 if (_internal_has_dim_param()) {
9996 return value_.dim_param_.Get();
9997 }
9998 return *&GetEmptyStringAlreadyInited();
9999}
10000inline void TensorShapeProto_Dimension::_internal_set_dim_param(const std::string& value) {
10001 if (!_internal_has_dim_param()) {
10002 clear_value();
10003 set_has_dim_param();
10004 value_.dim_param_.UnsafeSetDefault(&GetEmptyStringAlreadyInited());
10005 }
10006 value_.dim_param_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
10007}
10008inline void TensorShapeProto_Dimension::set_dim_param(std::string&& value) {
10009 // @@protoc_insertion_point(field_set:onnx_torch.TensorShapeProto.Dimension.dim_param)
10010 if (!_internal_has_dim_param()) {
10011 clear_value();
10012 set_has_dim_param();
10013 value_.dim_param_.UnsafeSetDefault(&GetEmptyStringAlreadyInited());
10014 }
10015 value_.dim_param_.Set(
10016 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
10017 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorShapeProto.Dimension.dim_param)
10018}
10019inline void TensorShapeProto_Dimension::set_dim_param(const char* value) {
10020 GOOGLE_DCHECK(value != nullptr);
10021 if (!_internal_has_dim_param()) {
10022 clear_value();
10023 set_has_dim_param();
10024 value_.dim_param_.UnsafeSetDefault(&GetEmptyStringAlreadyInited());
10025 }
10026 value_.dim_param_.Set(&GetEmptyStringAlreadyInited(),
10027 ::std::string(value), GetArena());
10028 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorShapeProto.Dimension.dim_param)
10029}
10030inline void TensorShapeProto_Dimension::set_dim_param(const char* value,
10031 size_t size) {
10032 if (!_internal_has_dim_param()) {
10033 clear_value();
10034 set_has_dim_param();
10035 value_.dim_param_.UnsafeSetDefault(&GetEmptyStringAlreadyInited());
10036 }
10037 value_.dim_param_.Set(
10038 &GetEmptyStringAlreadyInited(), ::std::string(
10039 reinterpret_cast<const char*>(value), size),
10040 GetArena());
10041 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorShapeProto.Dimension.dim_param)
10042}
10043inline std::string* TensorShapeProto_Dimension::_internal_mutable_dim_param() {
10044 if (!_internal_has_dim_param()) {
10045 clear_value();
10046 set_has_dim_param();
10047 value_.dim_param_.UnsafeSetDefault(&GetEmptyStringAlreadyInited());
10048 }
10049 return value_.dim_param_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
10050}
10051inline std::string* TensorShapeProto_Dimension::release_dim_param() {
10052 // @@protoc_insertion_point(field_release:onnx_torch.TensorShapeProto.Dimension.dim_param)
10053 if (_internal_has_dim_param()) {
10054 clear_has_value();
10055 return value_.dim_param_.Release(&GetEmptyStringAlreadyInited(), GetArena());
10056 } else {
10057 return nullptr;
10058 }
10059}
10060inline void TensorShapeProto_Dimension::set_allocated_dim_param(std::string* dim_param) {
10061 if (has_value()) {
10062 clear_value();
10063 }
10064 if (dim_param != nullptr) {
10065 set_has_dim_param();
10066 value_.dim_param_.UnsafeSetDefault(dim_param);
10067 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena();
10068 if (arena != nullptr) {
10069 arena->Own(dim_param);
10070 }
10071 }
10072 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorShapeProto.Dimension.dim_param)
10073}
10074
10075// optional string denotation = 3;
10076inline bool TensorShapeProto_Dimension::_internal_has_denotation() const {
10077 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10078 return value;
10079}
10080inline bool TensorShapeProto_Dimension::has_denotation() const {
10081 return _internal_has_denotation();
10082}
10083inline void TensorShapeProto_Dimension::clear_denotation() {
10084 denotation_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
10085 _has_bits_[0] &= ~0x00000001u;
10086}
10087inline const std::string& TensorShapeProto_Dimension::denotation() const {
10088 // @@protoc_insertion_point(field_get:onnx_torch.TensorShapeProto.Dimension.denotation)
10089 return _internal_denotation();
10090}
10091inline void TensorShapeProto_Dimension::set_denotation(const std::string& value) {
10092 _internal_set_denotation(value);
10093 // @@protoc_insertion_point(field_set:onnx_torch.TensorShapeProto.Dimension.denotation)
10094}
10095inline std::string* TensorShapeProto_Dimension::mutable_denotation() {
10096 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorShapeProto.Dimension.denotation)
10097 return _internal_mutable_denotation();
10098}
10099inline const std::string& TensorShapeProto_Dimension::_internal_denotation() const {
10100 return denotation_.Get();
10101}
10102inline void TensorShapeProto_Dimension::_internal_set_denotation(const std::string& value) {
10103 _has_bits_[0] |= 0x00000001u;
10104 denotation_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
10105}
10106inline void TensorShapeProto_Dimension::set_denotation(std::string&& value) {
10107 _has_bits_[0] |= 0x00000001u;
10108 denotation_.Set(
10109 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
10110 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TensorShapeProto.Dimension.denotation)
10111}
10112inline void TensorShapeProto_Dimension::set_denotation(const char* value) {
10113 GOOGLE_DCHECK(value != nullptr);
10114 _has_bits_[0] |= 0x00000001u;
10115 denotation_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
10116 GetArena());
10117 // @@protoc_insertion_point(field_set_char:onnx_torch.TensorShapeProto.Dimension.denotation)
10118}
10119inline void TensorShapeProto_Dimension::set_denotation(const char* value,
10120 size_t size) {
10121 _has_bits_[0] |= 0x00000001u;
10122 denotation_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
10123 reinterpret_cast<const char*>(value), size), GetArena());
10124 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TensorShapeProto.Dimension.denotation)
10125}
10126inline std::string* TensorShapeProto_Dimension::_internal_mutable_denotation() {
10127 _has_bits_[0] |= 0x00000001u;
10128 return denotation_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
10129}
10130inline std::string* TensorShapeProto_Dimension::release_denotation() {
10131 // @@protoc_insertion_point(field_release:onnx_torch.TensorShapeProto.Dimension.denotation)
10132 if (!_internal_has_denotation()) {
10133 return nullptr;
10134 }
10135 _has_bits_[0] &= ~0x00000001u;
10136 return denotation_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
10137}
10138inline void TensorShapeProto_Dimension::set_allocated_denotation(std::string* denotation) {
10139 if (denotation != nullptr) {
10140 _has_bits_[0] |= 0x00000001u;
10141 } else {
10142 _has_bits_[0] &= ~0x00000001u;
10143 }
10144 denotation_.SetAllocated(&GetEmptyStringAlreadyInited(), denotation,
10145 GetArena());
10146 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TensorShapeProto.Dimension.denotation)
10147}
10148
10149inline bool TensorShapeProto_Dimension::has_value() const {
10150 return value_case() != VALUE_NOT_SET;
10151}
10152inline void TensorShapeProto_Dimension::clear_has_value() {
10153 _oneof_case_[0] = VALUE_NOT_SET;
10154}
10155inline TensorShapeProto_Dimension::ValueCase TensorShapeProto_Dimension::value_case() const {
10156 return TensorShapeProto_Dimension::ValueCase(_oneof_case_[0]);
10157}
10158// -------------------------------------------------------------------
10159
10160// TensorShapeProto
10161
10162// repeated .onnx_torch.TensorShapeProto.Dimension dim = 1;
10163inline int TensorShapeProto::_internal_dim_size() const {
10164 return dim_.size();
10165}
10166inline int TensorShapeProto::dim_size() const {
10167 return _internal_dim_size();
10168}
10169inline void TensorShapeProto::clear_dim() {
10170 dim_.Clear();
10171}
10172inline ::onnx_torch::TensorShapeProto_Dimension* TensorShapeProto::mutable_dim(int index) {
10173 // @@protoc_insertion_point(field_mutable:onnx_torch.TensorShapeProto.dim)
10174 return dim_.Mutable(index);
10175}
10176inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorShapeProto_Dimension >*
10177TensorShapeProto::mutable_dim() {
10178 // @@protoc_insertion_point(field_mutable_list:onnx_torch.TensorShapeProto.dim)
10179 return &dim_;
10180}
10181inline const ::onnx_torch::TensorShapeProto_Dimension& TensorShapeProto::_internal_dim(int index) const {
10182 return dim_.Get(index);
10183}
10184inline const ::onnx_torch::TensorShapeProto_Dimension& TensorShapeProto::dim(int index) const {
10185 // @@protoc_insertion_point(field_get:onnx_torch.TensorShapeProto.dim)
10186 return _internal_dim(index);
10187}
10188inline ::onnx_torch::TensorShapeProto_Dimension* TensorShapeProto::_internal_add_dim() {
10189 return dim_.Add();
10190}
10191inline ::onnx_torch::TensorShapeProto_Dimension* TensorShapeProto::add_dim() {
10192 // @@protoc_insertion_point(field_add:onnx_torch.TensorShapeProto.dim)
10193 return _internal_add_dim();
10194}
10195inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::TensorShapeProto_Dimension >&
10196TensorShapeProto::dim() const {
10197 // @@protoc_insertion_point(field_list:onnx_torch.TensorShapeProto.dim)
10198 return dim_;
10199}
10200
10201// -------------------------------------------------------------------
10202
10203// TypeProto_Tensor
10204
10205// optional int32 elem_type = 1;
10206inline bool TypeProto_Tensor::_internal_has_elem_type() const {
10207 bool value = (_has_bits_[0] & 0x00000002u) != 0;
10208 return value;
10209}
10210inline bool TypeProto_Tensor::has_elem_type() const {
10211 return _internal_has_elem_type();
10212}
10213inline void TypeProto_Tensor::clear_elem_type() {
10214 elem_type_ = 0;
10215 _has_bits_[0] &= ~0x00000002u;
10216}
10217inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_Tensor::_internal_elem_type() const {
10218 return elem_type_;
10219}
10220inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_Tensor::elem_type() const {
10221 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Tensor.elem_type)
10222 return _internal_elem_type();
10223}
10224inline void TypeProto_Tensor::_internal_set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10225 _has_bits_[0] |= 0x00000002u;
10226 elem_type_ = value;
10227}
10228inline void TypeProto_Tensor::set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10229 _internal_set_elem_type(value);
10230 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.Tensor.elem_type)
10231}
10232
10233// optional .onnx_torch.TensorShapeProto shape = 2;
10234inline bool TypeProto_Tensor::_internal_has_shape() const {
10235 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10236 PROTOBUF_ASSUME(!value || shape_ != nullptr);
10237 return value;
10238}
10239inline bool TypeProto_Tensor::has_shape() const {
10240 return _internal_has_shape();
10241}
10242inline void TypeProto_Tensor::clear_shape() {
10243 if (shape_ != nullptr) shape_->Clear();
10244 _has_bits_[0] &= ~0x00000001u;
10245}
10246inline const ::onnx_torch::TensorShapeProto& TypeProto_Tensor::_internal_shape() const {
10247 const ::onnx_torch::TensorShapeProto* p = shape_;
10248 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorShapeProto*>(
10249 &::onnx_torch::_TensorShapeProto_default_instance_);
10250}
10251inline const ::onnx_torch::TensorShapeProto& TypeProto_Tensor::shape() const {
10252 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Tensor.shape)
10253 return _internal_shape();
10254}
10255inline void TypeProto_Tensor::unsafe_arena_set_allocated_shape(
10256 ::onnx_torch::TensorShapeProto* shape) {
10257 if (GetArena() == nullptr) {
10258 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
10259 }
10260 shape_ = shape;
10261 if (shape) {
10262 _has_bits_[0] |= 0x00000001u;
10263 } else {
10264 _has_bits_[0] &= ~0x00000001u;
10265 }
10266 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.Tensor.shape)
10267}
10268inline ::onnx_torch::TensorShapeProto* TypeProto_Tensor::release_shape() {
10269 _has_bits_[0] &= ~0x00000001u;
10270 ::onnx_torch::TensorShapeProto* temp = shape_;
10271 shape_ = nullptr;
10272 if (GetArena() != nullptr) {
10273 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10274 }
10275 return temp;
10276}
10277inline ::onnx_torch::TensorShapeProto* TypeProto_Tensor::unsafe_arena_release_shape() {
10278 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Tensor.shape)
10279 _has_bits_[0] &= ~0x00000001u;
10280 ::onnx_torch::TensorShapeProto* temp = shape_;
10281 shape_ = nullptr;
10282 return temp;
10283}
10284inline ::onnx_torch::TensorShapeProto* TypeProto_Tensor::_internal_mutable_shape() {
10285 _has_bits_[0] |= 0x00000001u;
10286 if (shape_ == nullptr) {
10287 auto* p = CreateMaybeMessage<::onnx_torch::TensorShapeProto>(GetArena());
10288 shape_ = p;
10289 }
10290 return shape_;
10291}
10292inline ::onnx_torch::TensorShapeProto* TypeProto_Tensor::mutable_shape() {
10293 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Tensor.shape)
10294 return _internal_mutable_shape();
10295}
10296inline void TypeProto_Tensor::set_allocated_shape(::onnx_torch::TensorShapeProto* shape) {
10297 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
10298 if (message_arena == nullptr) {
10299 delete shape_;
10300 }
10301 if (shape) {
10302 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10303 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(shape);
10304 if (message_arena != submessage_arena) {
10305 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10306 message_arena, shape, submessage_arena);
10307 }
10308 _has_bits_[0] |= 0x00000001u;
10309 } else {
10310 _has_bits_[0] &= ~0x00000001u;
10311 }
10312 shape_ = shape;
10313 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Tensor.shape)
10314}
10315
10316// -------------------------------------------------------------------
10317
10318// TypeProto_Sequence
10319
10320// optional .onnx_torch.TypeProto elem_type = 1;
10321inline bool TypeProto_Sequence::_internal_has_elem_type() const {
10322 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10323 PROTOBUF_ASSUME(!value || elem_type_ != nullptr);
10324 return value;
10325}
10326inline bool TypeProto_Sequence::has_elem_type() const {
10327 return _internal_has_elem_type();
10328}
10329inline void TypeProto_Sequence::clear_elem_type() {
10330 if (elem_type_ != nullptr) elem_type_->Clear();
10331 _has_bits_[0] &= ~0x00000001u;
10332}
10333inline const ::onnx_torch::TypeProto& TypeProto_Sequence::_internal_elem_type() const {
10334 const ::onnx_torch::TypeProto* p = elem_type_;
10335 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TypeProto*>(
10336 &::onnx_torch::_TypeProto_default_instance_);
10337}
10338inline const ::onnx_torch::TypeProto& TypeProto_Sequence::elem_type() const {
10339 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Sequence.elem_type)
10340 return _internal_elem_type();
10341}
10342inline void TypeProto_Sequence::unsafe_arena_set_allocated_elem_type(
10343 ::onnx_torch::TypeProto* elem_type) {
10344 if (GetArena() == nullptr) {
10345 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(elem_type_);
10346 }
10347 elem_type_ = elem_type;
10348 if (elem_type) {
10349 _has_bits_[0] |= 0x00000001u;
10350 } else {
10351 _has_bits_[0] &= ~0x00000001u;
10352 }
10353 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.Sequence.elem_type)
10354}
10355inline ::onnx_torch::TypeProto* TypeProto_Sequence::release_elem_type() {
10356 _has_bits_[0] &= ~0x00000001u;
10357 ::onnx_torch::TypeProto* temp = elem_type_;
10358 elem_type_ = nullptr;
10359 if (GetArena() != nullptr) {
10360 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10361 }
10362 return temp;
10363}
10364inline ::onnx_torch::TypeProto* TypeProto_Sequence::unsafe_arena_release_elem_type() {
10365 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Sequence.elem_type)
10366 _has_bits_[0] &= ~0x00000001u;
10367 ::onnx_torch::TypeProto* temp = elem_type_;
10368 elem_type_ = nullptr;
10369 return temp;
10370}
10371inline ::onnx_torch::TypeProto* TypeProto_Sequence::_internal_mutable_elem_type() {
10372 _has_bits_[0] |= 0x00000001u;
10373 if (elem_type_ == nullptr) {
10374 auto* p = CreateMaybeMessage<::onnx_torch::TypeProto>(GetArena());
10375 elem_type_ = p;
10376 }
10377 return elem_type_;
10378}
10379inline ::onnx_torch::TypeProto* TypeProto_Sequence::mutable_elem_type() {
10380 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Sequence.elem_type)
10381 return _internal_mutable_elem_type();
10382}
10383inline void TypeProto_Sequence::set_allocated_elem_type(::onnx_torch::TypeProto* elem_type) {
10384 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
10385 if (message_arena == nullptr) {
10386 delete elem_type_;
10387 }
10388 if (elem_type) {
10389 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10390 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(elem_type);
10391 if (message_arena != submessage_arena) {
10392 elem_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10393 message_arena, elem_type, submessage_arena);
10394 }
10395 _has_bits_[0] |= 0x00000001u;
10396 } else {
10397 _has_bits_[0] &= ~0x00000001u;
10398 }
10399 elem_type_ = elem_type;
10400 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Sequence.elem_type)
10401}
10402
10403// -------------------------------------------------------------------
10404
10405// TypeProto_Map
10406
10407// optional int32 key_type = 1;
10408inline bool TypeProto_Map::_internal_has_key_type() const {
10409 bool value = (_has_bits_[0] & 0x00000002u) != 0;
10410 return value;
10411}
10412inline bool TypeProto_Map::has_key_type() const {
10413 return _internal_has_key_type();
10414}
10415inline void TypeProto_Map::clear_key_type() {
10416 key_type_ = 0;
10417 _has_bits_[0] &= ~0x00000002u;
10418}
10419inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_Map::_internal_key_type() const {
10420 return key_type_;
10421}
10422inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_Map::key_type() const {
10423 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Map.key_type)
10424 return _internal_key_type();
10425}
10426inline void TypeProto_Map::_internal_set_key_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10427 _has_bits_[0] |= 0x00000002u;
10428 key_type_ = value;
10429}
10430inline void TypeProto_Map::set_key_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10431 _internal_set_key_type(value);
10432 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.Map.key_type)
10433}
10434
10435// optional .onnx_torch.TypeProto value_type = 2;
10436inline bool TypeProto_Map::_internal_has_value_type() const {
10437 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10438 PROTOBUF_ASSUME(!value || value_type_ != nullptr);
10439 return value;
10440}
10441inline bool TypeProto_Map::has_value_type() const {
10442 return _internal_has_value_type();
10443}
10444inline void TypeProto_Map::clear_value_type() {
10445 if (value_type_ != nullptr) value_type_->Clear();
10446 _has_bits_[0] &= ~0x00000001u;
10447}
10448inline const ::onnx_torch::TypeProto& TypeProto_Map::_internal_value_type() const {
10449 const ::onnx_torch::TypeProto* p = value_type_;
10450 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TypeProto*>(
10451 &::onnx_torch::_TypeProto_default_instance_);
10452}
10453inline const ::onnx_torch::TypeProto& TypeProto_Map::value_type() const {
10454 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Map.value_type)
10455 return _internal_value_type();
10456}
10457inline void TypeProto_Map::unsafe_arena_set_allocated_value_type(
10458 ::onnx_torch::TypeProto* value_type) {
10459 if (GetArena() == nullptr) {
10460 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_type_);
10461 }
10462 value_type_ = value_type;
10463 if (value_type) {
10464 _has_bits_[0] |= 0x00000001u;
10465 } else {
10466 _has_bits_[0] &= ~0x00000001u;
10467 }
10468 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.Map.value_type)
10469}
10470inline ::onnx_torch::TypeProto* TypeProto_Map::release_value_type() {
10471 _has_bits_[0] &= ~0x00000001u;
10472 ::onnx_torch::TypeProto* temp = value_type_;
10473 value_type_ = nullptr;
10474 if (GetArena() != nullptr) {
10475 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10476 }
10477 return temp;
10478}
10479inline ::onnx_torch::TypeProto* TypeProto_Map::unsafe_arena_release_value_type() {
10480 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Map.value_type)
10481 _has_bits_[0] &= ~0x00000001u;
10482 ::onnx_torch::TypeProto* temp = value_type_;
10483 value_type_ = nullptr;
10484 return temp;
10485}
10486inline ::onnx_torch::TypeProto* TypeProto_Map::_internal_mutable_value_type() {
10487 _has_bits_[0] |= 0x00000001u;
10488 if (value_type_ == nullptr) {
10489 auto* p = CreateMaybeMessage<::onnx_torch::TypeProto>(GetArena());
10490 value_type_ = p;
10491 }
10492 return value_type_;
10493}
10494inline ::onnx_torch::TypeProto* TypeProto_Map::mutable_value_type() {
10495 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Map.value_type)
10496 return _internal_mutable_value_type();
10497}
10498inline void TypeProto_Map::set_allocated_value_type(::onnx_torch::TypeProto* value_type) {
10499 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
10500 if (message_arena == nullptr) {
10501 delete value_type_;
10502 }
10503 if (value_type) {
10504 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10505 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(value_type);
10506 if (message_arena != submessage_arena) {
10507 value_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10508 message_arena, value_type, submessage_arena);
10509 }
10510 _has_bits_[0] |= 0x00000001u;
10511 } else {
10512 _has_bits_[0] &= ~0x00000001u;
10513 }
10514 value_type_ = value_type;
10515 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Map.value_type)
10516}
10517
10518// -------------------------------------------------------------------
10519
10520// TypeProto_Optional
10521
10522// optional .onnx_torch.TypeProto elem_type = 1;
10523inline bool TypeProto_Optional::_internal_has_elem_type() const {
10524 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10525 PROTOBUF_ASSUME(!value || elem_type_ != nullptr);
10526 return value;
10527}
10528inline bool TypeProto_Optional::has_elem_type() const {
10529 return _internal_has_elem_type();
10530}
10531inline void TypeProto_Optional::clear_elem_type() {
10532 if (elem_type_ != nullptr) elem_type_->Clear();
10533 _has_bits_[0] &= ~0x00000001u;
10534}
10535inline const ::onnx_torch::TypeProto& TypeProto_Optional::_internal_elem_type() const {
10536 const ::onnx_torch::TypeProto* p = elem_type_;
10537 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TypeProto*>(
10538 &::onnx_torch::_TypeProto_default_instance_);
10539}
10540inline const ::onnx_torch::TypeProto& TypeProto_Optional::elem_type() const {
10541 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Optional.elem_type)
10542 return _internal_elem_type();
10543}
10544inline void TypeProto_Optional::unsafe_arena_set_allocated_elem_type(
10545 ::onnx_torch::TypeProto* elem_type) {
10546 if (GetArena() == nullptr) {
10547 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(elem_type_);
10548 }
10549 elem_type_ = elem_type;
10550 if (elem_type) {
10551 _has_bits_[0] |= 0x00000001u;
10552 } else {
10553 _has_bits_[0] &= ~0x00000001u;
10554 }
10555 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.Optional.elem_type)
10556}
10557inline ::onnx_torch::TypeProto* TypeProto_Optional::release_elem_type() {
10558 _has_bits_[0] &= ~0x00000001u;
10559 ::onnx_torch::TypeProto* temp = elem_type_;
10560 elem_type_ = nullptr;
10561 if (GetArena() != nullptr) {
10562 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10563 }
10564 return temp;
10565}
10566inline ::onnx_torch::TypeProto* TypeProto_Optional::unsafe_arena_release_elem_type() {
10567 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Optional.elem_type)
10568 _has_bits_[0] &= ~0x00000001u;
10569 ::onnx_torch::TypeProto* temp = elem_type_;
10570 elem_type_ = nullptr;
10571 return temp;
10572}
10573inline ::onnx_torch::TypeProto* TypeProto_Optional::_internal_mutable_elem_type() {
10574 _has_bits_[0] |= 0x00000001u;
10575 if (elem_type_ == nullptr) {
10576 auto* p = CreateMaybeMessage<::onnx_torch::TypeProto>(GetArena());
10577 elem_type_ = p;
10578 }
10579 return elem_type_;
10580}
10581inline ::onnx_torch::TypeProto* TypeProto_Optional::mutable_elem_type() {
10582 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Optional.elem_type)
10583 return _internal_mutable_elem_type();
10584}
10585inline void TypeProto_Optional::set_allocated_elem_type(::onnx_torch::TypeProto* elem_type) {
10586 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
10587 if (message_arena == nullptr) {
10588 delete elem_type_;
10589 }
10590 if (elem_type) {
10591 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10592 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(elem_type);
10593 if (message_arena != submessage_arena) {
10594 elem_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10595 message_arena, elem_type, submessage_arena);
10596 }
10597 _has_bits_[0] |= 0x00000001u;
10598 } else {
10599 _has_bits_[0] &= ~0x00000001u;
10600 }
10601 elem_type_ = elem_type;
10602 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Optional.elem_type)
10603}
10604
10605// -------------------------------------------------------------------
10606
10607// TypeProto_SparseTensor
10608
10609// optional int32 elem_type = 1;
10610inline bool TypeProto_SparseTensor::_internal_has_elem_type() const {
10611 bool value = (_has_bits_[0] & 0x00000002u) != 0;
10612 return value;
10613}
10614inline bool TypeProto_SparseTensor::has_elem_type() const {
10615 return _internal_has_elem_type();
10616}
10617inline void TypeProto_SparseTensor::clear_elem_type() {
10618 elem_type_ = 0;
10619 _has_bits_[0] &= ~0x00000002u;
10620}
10621inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_SparseTensor::_internal_elem_type() const {
10622 return elem_type_;
10623}
10624inline ::PROTOBUF_NAMESPACE_ID::int32 TypeProto_SparseTensor::elem_type() const {
10625 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.SparseTensor.elem_type)
10626 return _internal_elem_type();
10627}
10628inline void TypeProto_SparseTensor::_internal_set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10629 _has_bits_[0] |= 0x00000002u;
10630 elem_type_ = value;
10631}
10632inline void TypeProto_SparseTensor::set_elem_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
10633 _internal_set_elem_type(value);
10634 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.SparseTensor.elem_type)
10635}
10636
10637// optional .onnx_torch.TensorShapeProto shape = 2;
10638inline bool TypeProto_SparseTensor::_internal_has_shape() const {
10639 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10640 PROTOBUF_ASSUME(!value || shape_ != nullptr);
10641 return value;
10642}
10643inline bool TypeProto_SparseTensor::has_shape() const {
10644 return _internal_has_shape();
10645}
10646inline void TypeProto_SparseTensor::clear_shape() {
10647 if (shape_ != nullptr) shape_->Clear();
10648 _has_bits_[0] &= ~0x00000001u;
10649}
10650inline const ::onnx_torch::TensorShapeProto& TypeProto_SparseTensor::_internal_shape() const {
10651 const ::onnx_torch::TensorShapeProto* p = shape_;
10652 return p != nullptr ? *p : *reinterpret_cast<const ::onnx_torch::TensorShapeProto*>(
10653 &::onnx_torch::_TensorShapeProto_default_instance_);
10654}
10655inline const ::onnx_torch::TensorShapeProto& TypeProto_SparseTensor::shape() const {
10656 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.SparseTensor.shape)
10657 return _internal_shape();
10658}
10659inline void TypeProto_SparseTensor::unsafe_arena_set_allocated_shape(
10660 ::onnx_torch::TensorShapeProto* shape) {
10661 if (GetArena() == nullptr) {
10662 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
10663 }
10664 shape_ = shape;
10665 if (shape) {
10666 _has_bits_[0] |= 0x00000001u;
10667 } else {
10668 _has_bits_[0] &= ~0x00000001u;
10669 }
10670 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.SparseTensor.shape)
10671}
10672inline ::onnx_torch::TensorShapeProto* TypeProto_SparseTensor::release_shape() {
10673 _has_bits_[0] &= ~0x00000001u;
10674 ::onnx_torch::TensorShapeProto* temp = shape_;
10675 shape_ = nullptr;
10676 if (GetArena() != nullptr) {
10677 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10678 }
10679 return temp;
10680}
10681inline ::onnx_torch::TensorShapeProto* TypeProto_SparseTensor::unsafe_arena_release_shape() {
10682 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.SparseTensor.shape)
10683 _has_bits_[0] &= ~0x00000001u;
10684 ::onnx_torch::TensorShapeProto* temp = shape_;
10685 shape_ = nullptr;
10686 return temp;
10687}
10688inline ::onnx_torch::TensorShapeProto* TypeProto_SparseTensor::_internal_mutable_shape() {
10689 _has_bits_[0] |= 0x00000001u;
10690 if (shape_ == nullptr) {
10691 auto* p = CreateMaybeMessage<::onnx_torch::TensorShapeProto>(GetArena());
10692 shape_ = p;
10693 }
10694 return shape_;
10695}
10696inline ::onnx_torch::TensorShapeProto* TypeProto_SparseTensor::mutable_shape() {
10697 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.SparseTensor.shape)
10698 return _internal_mutable_shape();
10699}
10700inline void TypeProto_SparseTensor::set_allocated_shape(::onnx_torch::TensorShapeProto* shape) {
10701 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
10702 if (message_arena == nullptr) {
10703 delete shape_;
10704 }
10705 if (shape) {
10706 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10707 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(shape);
10708 if (message_arena != submessage_arena) {
10709 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10710 message_arena, shape, submessage_arena);
10711 }
10712 _has_bits_[0] |= 0x00000001u;
10713 } else {
10714 _has_bits_[0] &= ~0x00000001u;
10715 }
10716 shape_ = shape;
10717 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.SparseTensor.shape)
10718}
10719
10720// -------------------------------------------------------------------
10721
10722// TypeProto_Opaque
10723
10724// optional string domain = 1;
10725inline bool TypeProto_Opaque::_internal_has_domain() const {
10726 bool value = (_has_bits_[0] & 0x00000001u) != 0;
10727 return value;
10728}
10729inline bool TypeProto_Opaque::has_domain() const {
10730 return _internal_has_domain();
10731}
10732inline void TypeProto_Opaque::clear_domain() {
10733 domain_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
10734 _has_bits_[0] &= ~0x00000001u;
10735}
10736inline const std::string& TypeProto_Opaque::domain() const {
10737 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Opaque.domain)
10738 return _internal_domain();
10739}
10740inline void TypeProto_Opaque::set_domain(const std::string& value) {
10741 _internal_set_domain(value);
10742 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.Opaque.domain)
10743}
10744inline std::string* TypeProto_Opaque::mutable_domain() {
10745 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Opaque.domain)
10746 return _internal_mutable_domain();
10747}
10748inline const std::string& TypeProto_Opaque::_internal_domain() const {
10749 return domain_.Get();
10750}
10751inline void TypeProto_Opaque::_internal_set_domain(const std::string& value) {
10752 _has_bits_[0] |= 0x00000001u;
10753 domain_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
10754}
10755inline void TypeProto_Opaque::set_domain(std::string&& value) {
10756 _has_bits_[0] |= 0x00000001u;
10757 domain_.Set(
10758 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
10759 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TypeProto.Opaque.domain)
10760}
10761inline void TypeProto_Opaque::set_domain(const char* value) {
10762 GOOGLE_DCHECK(value != nullptr);
10763 _has_bits_[0] |= 0x00000001u;
10764 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
10765 GetArena());
10766 // @@protoc_insertion_point(field_set_char:onnx_torch.TypeProto.Opaque.domain)
10767}
10768inline void TypeProto_Opaque::set_domain(const char* value,
10769 size_t size) {
10770 _has_bits_[0] |= 0x00000001u;
10771 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
10772 reinterpret_cast<const char*>(value), size), GetArena());
10773 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TypeProto.Opaque.domain)
10774}
10775inline std::string* TypeProto_Opaque::_internal_mutable_domain() {
10776 _has_bits_[0] |= 0x00000001u;
10777 return domain_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
10778}
10779inline std::string* TypeProto_Opaque::release_domain() {
10780 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Opaque.domain)
10781 if (!_internal_has_domain()) {
10782 return nullptr;
10783 }
10784 _has_bits_[0] &= ~0x00000001u;
10785 return domain_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
10786}
10787inline void TypeProto_Opaque::set_allocated_domain(std::string* domain) {
10788 if (domain != nullptr) {
10789 _has_bits_[0] |= 0x00000001u;
10790 } else {
10791 _has_bits_[0] &= ~0x00000001u;
10792 }
10793 domain_.SetAllocated(&GetEmptyStringAlreadyInited(), domain,
10794 GetArena());
10795 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Opaque.domain)
10796}
10797
10798// optional string name = 2;
10799inline bool TypeProto_Opaque::_internal_has_name() const {
10800 bool value = (_has_bits_[0] & 0x00000002u) != 0;
10801 return value;
10802}
10803inline bool TypeProto_Opaque::has_name() const {
10804 return _internal_has_name();
10805}
10806inline void TypeProto_Opaque::clear_name() {
10807 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
10808 _has_bits_[0] &= ~0x00000002u;
10809}
10810inline const std::string& TypeProto_Opaque::name() const {
10811 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.Opaque.name)
10812 return _internal_name();
10813}
10814inline void TypeProto_Opaque::set_name(const std::string& value) {
10815 _internal_set_name(value);
10816 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.Opaque.name)
10817}
10818inline std::string* TypeProto_Opaque::mutable_name() {
10819 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.Opaque.name)
10820 return _internal_mutable_name();
10821}
10822inline const std::string& TypeProto_Opaque::_internal_name() const {
10823 return name_.Get();
10824}
10825inline void TypeProto_Opaque::_internal_set_name(const std::string& value) {
10826 _has_bits_[0] |= 0x00000002u;
10827 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
10828}
10829inline void TypeProto_Opaque::set_name(std::string&& value) {
10830 _has_bits_[0] |= 0x00000002u;
10831 name_.Set(
10832 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
10833 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TypeProto.Opaque.name)
10834}
10835inline void TypeProto_Opaque::set_name(const char* value) {
10836 GOOGLE_DCHECK(value != nullptr);
10837 _has_bits_[0] |= 0x00000002u;
10838 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
10839 GetArena());
10840 // @@protoc_insertion_point(field_set_char:onnx_torch.TypeProto.Opaque.name)
10841}
10842inline void TypeProto_Opaque::set_name(const char* value,
10843 size_t size) {
10844 _has_bits_[0] |= 0x00000002u;
10845 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
10846 reinterpret_cast<const char*>(value), size), GetArena());
10847 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TypeProto.Opaque.name)
10848}
10849inline std::string* TypeProto_Opaque::_internal_mutable_name() {
10850 _has_bits_[0] |= 0x00000002u;
10851 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
10852}
10853inline std::string* TypeProto_Opaque::release_name() {
10854 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.Opaque.name)
10855 if (!_internal_has_name()) {
10856 return nullptr;
10857 }
10858 _has_bits_[0] &= ~0x00000002u;
10859 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
10860}
10861inline void TypeProto_Opaque::set_allocated_name(std::string* name) {
10862 if (name != nullptr) {
10863 _has_bits_[0] |= 0x00000002u;
10864 } else {
10865 _has_bits_[0] &= ~0x00000002u;
10866 }
10867 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
10868 GetArena());
10869 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.Opaque.name)
10870}
10871
10872// -------------------------------------------------------------------
10873
10874// TypeProto
10875
10876// .onnx_torch.TypeProto.Tensor tensor_type = 1;
10877inline bool TypeProto::_internal_has_tensor_type() const {
10878 return value_case() == kTensorType;
10879}
10880inline bool TypeProto::has_tensor_type() const {
10881 return _internal_has_tensor_type();
10882}
10883inline void TypeProto::set_has_tensor_type() {
10884 _oneof_case_[0] = kTensorType;
10885}
10886inline void TypeProto::clear_tensor_type() {
10887 if (_internal_has_tensor_type()) {
10888 if (GetArena() == nullptr) {
10889 delete value_.tensor_type_;
10890 }
10891 clear_has_value();
10892 }
10893}
10894inline ::onnx_torch::TypeProto_Tensor* TypeProto::release_tensor_type() {
10895 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.tensor_type)
10896 if (_internal_has_tensor_type()) {
10897 clear_has_value();
10898 ::onnx_torch::TypeProto_Tensor* temp = value_.tensor_type_;
10899 if (GetArena() != nullptr) {
10900 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10901 }
10902 value_.tensor_type_ = nullptr;
10903 return temp;
10904 } else {
10905 return nullptr;
10906 }
10907}
10908inline const ::onnx_torch::TypeProto_Tensor& TypeProto::_internal_tensor_type() const {
10909 return _internal_has_tensor_type()
10910 ? *value_.tensor_type_
10911 : *reinterpret_cast< ::onnx_torch::TypeProto_Tensor*>(&::onnx_torch::_TypeProto_Tensor_default_instance_);
10912}
10913inline const ::onnx_torch::TypeProto_Tensor& TypeProto::tensor_type() const {
10914 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.tensor_type)
10915 return _internal_tensor_type();
10916}
10917inline ::onnx_torch::TypeProto_Tensor* TypeProto::unsafe_arena_release_tensor_type() {
10918 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.tensor_type)
10919 if (_internal_has_tensor_type()) {
10920 clear_has_value();
10921 ::onnx_torch::TypeProto_Tensor* temp = value_.tensor_type_;
10922 value_.tensor_type_ = nullptr;
10923 return temp;
10924 } else {
10925 return nullptr;
10926 }
10927}
10928inline void TypeProto::unsafe_arena_set_allocated_tensor_type(::onnx_torch::TypeProto_Tensor* tensor_type) {
10929 clear_value();
10930 if (tensor_type) {
10931 set_has_tensor_type();
10932 value_.tensor_type_ = tensor_type;
10933 }
10934 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.tensor_type)
10935}
10936inline ::onnx_torch::TypeProto_Tensor* TypeProto::_internal_mutable_tensor_type() {
10937 if (!_internal_has_tensor_type()) {
10938 clear_value();
10939 set_has_tensor_type();
10940 value_.tensor_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_Tensor >(GetArena());
10941 }
10942 return value_.tensor_type_;
10943}
10944inline ::onnx_torch::TypeProto_Tensor* TypeProto::mutable_tensor_type() {
10945 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.tensor_type)
10946 return _internal_mutable_tensor_type();
10947}
10948
10949// .onnx_torch.TypeProto.Sequence sequence_type = 4;
10950inline bool TypeProto::_internal_has_sequence_type() const {
10951 return value_case() == kSequenceType;
10952}
10953inline bool TypeProto::has_sequence_type() const {
10954 return _internal_has_sequence_type();
10955}
10956inline void TypeProto::set_has_sequence_type() {
10957 _oneof_case_[0] = kSequenceType;
10958}
10959inline void TypeProto::clear_sequence_type() {
10960 if (_internal_has_sequence_type()) {
10961 if (GetArena() == nullptr) {
10962 delete value_.sequence_type_;
10963 }
10964 clear_has_value();
10965 }
10966}
10967inline ::onnx_torch::TypeProto_Sequence* TypeProto::release_sequence_type() {
10968 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.sequence_type)
10969 if (_internal_has_sequence_type()) {
10970 clear_has_value();
10971 ::onnx_torch::TypeProto_Sequence* temp = value_.sequence_type_;
10972 if (GetArena() != nullptr) {
10973 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
10974 }
10975 value_.sequence_type_ = nullptr;
10976 return temp;
10977 } else {
10978 return nullptr;
10979 }
10980}
10981inline const ::onnx_torch::TypeProto_Sequence& TypeProto::_internal_sequence_type() const {
10982 return _internal_has_sequence_type()
10983 ? *value_.sequence_type_
10984 : *reinterpret_cast< ::onnx_torch::TypeProto_Sequence*>(&::onnx_torch::_TypeProto_Sequence_default_instance_);
10985}
10986inline const ::onnx_torch::TypeProto_Sequence& TypeProto::sequence_type() const {
10987 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.sequence_type)
10988 return _internal_sequence_type();
10989}
10990inline ::onnx_torch::TypeProto_Sequence* TypeProto::unsafe_arena_release_sequence_type() {
10991 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.sequence_type)
10992 if (_internal_has_sequence_type()) {
10993 clear_has_value();
10994 ::onnx_torch::TypeProto_Sequence* temp = value_.sequence_type_;
10995 value_.sequence_type_ = nullptr;
10996 return temp;
10997 } else {
10998 return nullptr;
10999 }
11000}
11001inline void TypeProto::unsafe_arena_set_allocated_sequence_type(::onnx_torch::TypeProto_Sequence* sequence_type) {
11002 clear_value();
11003 if (sequence_type) {
11004 set_has_sequence_type();
11005 value_.sequence_type_ = sequence_type;
11006 }
11007 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.sequence_type)
11008}
11009inline ::onnx_torch::TypeProto_Sequence* TypeProto::_internal_mutable_sequence_type() {
11010 if (!_internal_has_sequence_type()) {
11011 clear_value();
11012 set_has_sequence_type();
11013 value_.sequence_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_Sequence >(GetArena());
11014 }
11015 return value_.sequence_type_;
11016}
11017inline ::onnx_torch::TypeProto_Sequence* TypeProto::mutable_sequence_type() {
11018 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.sequence_type)
11019 return _internal_mutable_sequence_type();
11020}
11021
11022// .onnx_torch.TypeProto.Map map_type = 5;
11023inline bool TypeProto::_internal_has_map_type() const {
11024 return value_case() == kMapType;
11025}
11026inline bool TypeProto::has_map_type() const {
11027 return _internal_has_map_type();
11028}
11029inline void TypeProto::set_has_map_type() {
11030 _oneof_case_[0] = kMapType;
11031}
11032inline void TypeProto::clear_map_type() {
11033 if (_internal_has_map_type()) {
11034 if (GetArena() == nullptr) {
11035 delete value_.map_type_;
11036 }
11037 clear_has_value();
11038 }
11039}
11040inline ::onnx_torch::TypeProto_Map* TypeProto::release_map_type() {
11041 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.map_type)
11042 if (_internal_has_map_type()) {
11043 clear_has_value();
11044 ::onnx_torch::TypeProto_Map* temp = value_.map_type_;
11045 if (GetArena() != nullptr) {
11046 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
11047 }
11048 value_.map_type_ = nullptr;
11049 return temp;
11050 } else {
11051 return nullptr;
11052 }
11053}
11054inline const ::onnx_torch::TypeProto_Map& TypeProto::_internal_map_type() const {
11055 return _internal_has_map_type()
11056 ? *value_.map_type_
11057 : *reinterpret_cast< ::onnx_torch::TypeProto_Map*>(&::onnx_torch::_TypeProto_Map_default_instance_);
11058}
11059inline const ::onnx_torch::TypeProto_Map& TypeProto::map_type() const {
11060 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.map_type)
11061 return _internal_map_type();
11062}
11063inline ::onnx_torch::TypeProto_Map* TypeProto::unsafe_arena_release_map_type() {
11064 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.map_type)
11065 if (_internal_has_map_type()) {
11066 clear_has_value();
11067 ::onnx_torch::TypeProto_Map* temp = value_.map_type_;
11068 value_.map_type_ = nullptr;
11069 return temp;
11070 } else {
11071 return nullptr;
11072 }
11073}
11074inline void TypeProto::unsafe_arena_set_allocated_map_type(::onnx_torch::TypeProto_Map* map_type) {
11075 clear_value();
11076 if (map_type) {
11077 set_has_map_type();
11078 value_.map_type_ = map_type;
11079 }
11080 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.map_type)
11081}
11082inline ::onnx_torch::TypeProto_Map* TypeProto::_internal_mutable_map_type() {
11083 if (!_internal_has_map_type()) {
11084 clear_value();
11085 set_has_map_type();
11086 value_.map_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_Map >(GetArena());
11087 }
11088 return value_.map_type_;
11089}
11090inline ::onnx_torch::TypeProto_Map* TypeProto::mutable_map_type() {
11091 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.map_type)
11092 return _internal_mutable_map_type();
11093}
11094
11095// .onnx_torch.TypeProto.Optional optional_type = 9;
11096inline bool TypeProto::_internal_has_optional_type() const {
11097 return value_case() == kOptionalType;
11098}
11099inline bool TypeProto::has_optional_type() const {
11100 return _internal_has_optional_type();
11101}
11102inline void TypeProto::set_has_optional_type() {
11103 _oneof_case_[0] = kOptionalType;
11104}
11105inline void TypeProto::clear_optional_type() {
11106 if (_internal_has_optional_type()) {
11107 if (GetArena() == nullptr) {
11108 delete value_.optional_type_;
11109 }
11110 clear_has_value();
11111 }
11112}
11113inline ::onnx_torch::TypeProto_Optional* TypeProto::release_optional_type() {
11114 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.optional_type)
11115 if (_internal_has_optional_type()) {
11116 clear_has_value();
11117 ::onnx_torch::TypeProto_Optional* temp = value_.optional_type_;
11118 if (GetArena() != nullptr) {
11119 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
11120 }
11121 value_.optional_type_ = nullptr;
11122 return temp;
11123 } else {
11124 return nullptr;
11125 }
11126}
11127inline const ::onnx_torch::TypeProto_Optional& TypeProto::_internal_optional_type() const {
11128 return _internal_has_optional_type()
11129 ? *value_.optional_type_
11130 : *reinterpret_cast< ::onnx_torch::TypeProto_Optional*>(&::onnx_torch::_TypeProto_Optional_default_instance_);
11131}
11132inline const ::onnx_torch::TypeProto_Optional& TypeProto::optional_type() const {
11133 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.optional_type)
11134 return _internal_optional_type();
11135}
11136inline ::onnx_torch::TypeProto_Optional* TypeProto::unsafe_arena_release_optional_type() {
11137 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.optional_type)
11138 if (_internal_has_optional_type()) {
11139 clear_has_value();
11140 ::onnx_torch::TypeProto_Optional* temp = value_.optional_type_;
11141 value_.optional_type_ = nullptr;
11142 return temp;
11143 } else {
11144 return nullptr;
11145 }
11146}
11147inline void TypeProto::unsafe_arena_set_allocated_optional_type(::onnx_torch::TypeProto_Optional* optional_type) {
11148 clear_value();
11149 if (optional_type) {
11150 set_has_optional_type();
11151 value_.optional_type_ = optional_type;
11152 }
11153 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.optional_type)
11154}
11155inline ::onnx_torch::TypeProto_Optional* TypeProto::_internal_mutable_optional_type() {
11156 if (!_internal_has_optional_type()) {
11157 clear_value();
11158 set_has_optional_type();
11159 value_.optional_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_Optional >(GetArena());
11160 }
11161 return value_.optional_type_;
11162}
11163inline ::onnx_torch::TypeProto_Optional* TypeProto::mutable_optional_type() {
11164 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.optional_type)
11165 return _internal_mutable_optional_type();
11166}
11167
11168// .onnx_torch.TypeProto.SparseTensor sparse_tensor_type = 8;
11169inline bool TypeProto::_internal_has_sparse_tensor_type() const {
11170 return value_case() == kSparseTensorType;
11171}
11172inline bool TypeProto::has_sparse_tensor_type() const {
11173 return _internal_has_sparse_tensor_type();
11174}
11175inline void TypeProto::set_has_sparse_tensor_type() {
11176 _oneof_case_[0] = kSparseTensorType;
11177}
11178inline void TypeProto::clear_sparse_tensor_type() {
11179 if (_internal_has_sparse_tensor_type()) {
11180 if (GetArena() == nullptr) {
11181 delete value_.sparse_tensor_type_;
11182 }
11183 clear_has_value();
11184 }
11185}
11186inline ::onnx_torch::TypeProto_SparseTensor* TypeProto::release_sparse_tensor_type() {
11187 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.sparse_tensor_type)
11188 if (_internal_has_sparse_tensor_type()) {
11189 clear_has_value();
11190 ::onnx_torch::TypeProto_SparseTensor* temp = value_.sparse_tensor_type_;
11191 if (GetArena() != nullptr) {
11192 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
11193 }
11194 value_.sparse_tensor_type_ = nullptr;
11195 return temp;
11196 } else {
11197 return nullptr;
11198 }
11199}
11200inline const ::onnx_torch::TypeProto_SparseTensor& TypeProto::_internal_sparse_tensor_type() const {
11201 return _internal_has_sparse_tensor_type()
11202 ? *value_.sparse_tensor_type_
11203 : *reinterpret_cast< ::onnx_torch::TypeProto_SparseTensor*>(&::onnx_torch::_TypeProto_SparseTensor_default_instance_);
11204}
11205inline const ::onnx_torch::TypeProto_SparseTensor& TypeProto::sparse_tensor_type() const {
11206 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.sparse_tensor_type)
11207 return _internal_sparse_tensor_type();
11208}
11209inline ::onnx_torch::TypeProto_SparseTensor* TypeProto::unsafe_arena_release_sparse_tensor_type() {
11210 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.sparse_tensor_type)
11211 if (_internal_has_sparse_tensor_type()) {
11212 clear_has_value();
11213 ::onnx_torch::TypeProto_SparseTensor* temp = value_.sparse_tensor_type_;
11214 value_.sparse_tensor_type_ = nullptr;
11215 return temp;
11216 } else {
11217 return nullptr;
11218 }
11219}
11220inline void TypeProto::unsafe_arena_set_allocated_sparse_tensor_type(::onnx_torch::TypeProto_SparseTensor* sparse_tensor_type) {
11221 clear_value();
11222 if (sparse_tensor_type) {
11223 set_has_sparse_tensor_type();
11224 value_.sparse_tensor_type_ = sparse_tensor_type;
11225 }
11226 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.sparse_tensor_type)
11227}
11228inline ::onnx_torch::TypeProto_SparseTensor* TypeProto::_internal_mutable_sparse_tensor_type() {
11229 if (!_internal_has_sparse_tensor_type()) {
11230 clear_value();
11231 set_has_sparse_tensor_type();
11232 value_.sparse_tensor_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_SparseTensor >(GetArena());
11233 }
11234 return value_.sparse_tensor_type_;
11235}
11236inline ::onnx_torch::TypeProto_SparseTensor* TypeProto::mutable_sparse_tensor_type() {
11237 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.sparse_tensor_type)
11238 return _internal_mutable_sparse_tensor_type();
11239}
11240
11241// .onnx_torch.TypeProto.Opaque opaque_type = 7;
11242inline bool TypeProto::_internal_has_opaque_type() const {
11243 return value_case() == kOpaqueType;
11244}
11245inline bool TypeProto::has_opaque_type() const {
11246 return _internal_has_opaque_type();
11247}
11248inline void TypeProto::set_has_opaque_type() {
11249 _oneof_case_[0] = kOpaqueType;
11250}
11251inline void TypeProto::clear_opaque_type() {
11252 if (_internal_has_opaque_type()) {
11253 if (GetArena() == nullptr) {
11254 delete value_.opaque_type_;
11255 }
11256 clear_has_value();
11257 }
11258}
11259inline ::onnx_torch::TypeProto_Opaque* TypeProto::release_opaque_type() {
11260 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.opaque_type)
11261 if (_internal_has_opaque_type()) {
11262 clear_has_value();
11263 ::onnx_torch::TypeProto_Opaque* temp = value_.opaque_type_;
11264 if (GetArena() != nullptr) {
11265 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
11266 }
11267 value_.opaque_type_ = nullptr;
11268 return temp;
11269 } else {
11270 return nullptr;
11271 }
11272}
11273inline const ::onnx_torch::TypeProto_Opaque& TypeProto::_internal_opaque_type() const {
11274 return _internal_has_opaque_type()
11275 ? *value_.opaque_type_
11276 : *reinterpret_cast< ::onnx_torch::TypeProto_Opaque*>(&::onnx_torch::_TypeProto_Opaque_default_instance_);
11277}
11278inline const ::onnx_torch::TypeProto_Opaque& TypeProto::opaque_type() const {
11279 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.opaque_type)
11280 return _internal_opaque_type();
11281}
11282inline ::onnx_torch::TypeProto_Opaque* TypeProto::unsafe_arena_release_opaque_type() {
11283 // @@protoc_insertion_point(field_unsafe_arena_release:onnx_torch.TypeProto.opaque_type)
11284 if (_internal_has_opaque_type()) {
11285 clear_has_value();
11286 ::onnx_torch::TypeProto_Opaque* temp = value_.opaque_type_;
11287 value_.opaque_type_ = nullptr;
11288 return temp;
11289 } else {
11290 return nullptr;
11291 }
11292}
11293inline void TypeProto::unsafe_arena_set_allocated_opaque_type(::onnx_torch::TypeProto_Opaque* opaque_type) {
11294 clear_value();
11295 if (opaque_type) {
11296 set_has_opaque_type();
11297 value_.opaque_type_ = opaque_type;
11298 }
11299 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:onnx_torch.TypeProto.opaque_type)
11300}
11301inline ::onnx_torch::TypeProto_Opaque* TypeProto::_internal_mutable_opaque_type() {
11302 if (!_internal_has_opaque_type()) {
11303 clear_value();
11304 set_has_opaque_type();
11305 value_.opaque_type_ = CreateMaybeMessage< ::onnx_torch::TypeProto_Opaque >(GetArena());
11306 }
11307 return value_.opaque_type_;
11308}
11309inline ::onnx_torch::TypeProto_Opaque* TypeProto::mutable_opaque_type() {
11310 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.opaque_type)
11311 return _internal_mutable_opaque_type();
11312}
11313
11314// optional string denotation = 6;
11315inline bool TypeProto::_internal_has_denotation() const {
11316 bool value = (_has_bits_[0] & 0x00000001u) != 0;
11317 return value;
11318}
11319inline bool TypeProto::has_denotation() const {
11320 return _internal_has_denotation();
11321}
11322inline void TypeProto::clear_denotation() {
11323 denotation_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
11324 _has_bits_[0] &= ~0x00000001u;
11325}
11326inline const std::string& TypeProto::denotation() const {
11327 // @@protoc_insertion_point(field_get:onnx_torch.TypeProto.denotation)
11328 return _internal_denotation();
11329}
11330inline void TypeProto::set_denotation(const std::string& value) {
11331 _internal_set_denotation(value);
11332 // @@protoc_insertion_point(field_set:onnx_torch.TypeProto.denotation)
11333}
11334inline std::string* TypeProto::mutable_denotation() {
11335 // @@protoc_insertion_point(field_mutable:onnx_torch.TypeProto.denotation)
11336 return _internal_mutable_denotation();
11337}
11338inline const std::string& TypeProto::_internal_denotation() const {
11339 return denotation_.Get();
11340}
11341inline void TypeProto::_internal_set_denotation(const std::string& value) {
11342 _has_bits_[0] |= 0x00000001u;
11343 denotation_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
11344}
11345inline void TypeProto::set_denotation(std::string&& value) {
11346 _has_bits_[0] |= 0x00000001u;
11347 denotation_.Set(
11348 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
11349 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.TypeProto.denotation)
11350}
11351inline void TypeProto::set_denotation(const char* value) {
11352 GOOGLE_DCHECK(value != nullptr);
11353 _has_bits_[0] |= 0x00000001u;
11354 denotation_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
11355 GetArena());
11356 // @@protoc_insertion_point(field_set_char:onnx_torch.TypeProto.denotation)
11357}
11358inline void TypeProto::set_denotation(const char* value,
11359 size_t size) {
11360 _has_bits_[0] |= 0x00000001u;
11361 denotation_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
11362 reinterpret_cast<const char*>(value), size), GetArena());
11363 // @@protoc_insertion_point(field_set_pointer:onnx_torch.TypeProto.denotation)
11364}
11365inline std::string* TypeProto::_internal_mutable_denotation() {
11366 _has_bits_[0] |= 0x00000001u;
11367 return denotation_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
11368}
11369inline std::string* TypeProto::release_denotation() {
11370 // @@protoc_insertion_point(field_release:onnx_torch.TypeProto.denotation)
11371 if (!_internal_has_denotation()) {
11372 return nullptr;
11373 }
11374 _has_bits_[0] &= ~0x00000001u;
11375 return denotation_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
11376}
11377inline void TypeProto::set_allocated_denotation(std::string* denotation) {
11378 if (denotation != nullptr) {
11379 _has_bits_[0] |= 0x00000001u;
11380 } else {
11381 _has_bits_[0] &= ~0x00000001u;
11382 }
11383 denotation_.SetAllocated(&GetEmptyStringAlreadyInited(), denotation,
11384 GetArena());
11385 // @@protoc_insertion_point(field_set_allocated:onnx_torch.TypeProto.denotation)
11386}
11387
11388inline bool TypeProto::has_value() const {
11389 return value_case() != VALUE_NOT_SET;
11390}
11391inline void TypeProto::clear_has_value() {
11392 _oneof_case_[0] = VALUE_NOT_SET;
11393}
11394inline TypeProto::ValueCase TypeProto::value_case() const {
11395 return TypeProto::ValueCase(_oneof_case_[0]);
11396}
11397// -------------------------------------------------------------------
11398
11399// OperatorSetIdProto
11400
11401// optional string domain = 1;
11402inline bool OperatorSetIdProto::_internal_has_domain() const {
11403 bool value = (_has_bits_[0] & 0x00000001u) != 0;
11404 return value;
11405}
11406inline bool OperatorSetIdProto::has_domain() const {
11407 return _internal_has_domain();
11408}
11409inline void OperatorSetIdProto::clear_domain() {
11410 domain_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
11411 _has_bits_[0] &= ~0x00000001u;
11412}
11413inline const std::string& OperatorSetIdProto::domain() const {
11414 // @@protoc_insertion_point(field_get:onnx_torch.OperatorSetIdProto.domain)
11415 return _internal_domain();
11416}
11417inline void OperatorSetIdProto::set_domain(const std::string& value) {
11418 _internal_set_domain(value);
11419 // @@protoc_insertion_point(field_set:onnx_torch.OperatorSetIdProto.domain)
11420}
11421inline std::string* OperatorSetIdProto::mutable_domain() {
11422 // @@protoc_insertion_point(field_mutable:onnx_torch.OperatorSetIdProto.domain)
11423 return _internal_mutable_domain();
11424}
11425inline const std::string& OperatorSetIdProto::_internal_domain() const {
11426 return domain_.Get();
11427}
11428inline void OperatorSetIdProto::_internal_set_domain(const std::string& value) {
11429 _has_bits_[0] |= 0x00000001u;
11430 domain_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
11431}
11432inline void OperatorSetIdProto::set_domain(std::string&& value) {
11433 _has_bits_[0] |= 0x00000001u;
11434 domain_.Set(
11435 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
11436 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.OperatorSetIdProto.domain)
11437}
11438inline void OperatorSetIdProto::set_domain(const char* value) {
11439 GOOGLE_DCHECK(value != nullptr);
11440 _has_bits_[0] |= 0x00000001u;
11441 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
11442 GetArena());
11443 // @@protoc_insertion_point(field_set_char:onnx_torch.OperatorSetIdProto.domain)
11444}
11445inline void OperatorSetIdProto::set_domain(const char* value,
11446 size_t size) {
11447 _has_bits_[0] |= 0x00000001u;
11448 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
11449 reinterpret_cast<const char*>(value), size), GetArena());
11450 // @@protoc_insertion_point(field_set_pointer:onnx_torch.OperatorSetIdProto.domain)
11451}
11452inline std::string* OperatorSetIdProto::_internal_mutable_domain() {
11453 _has_bits_[0] |= 0x00000001u;
11454 return domain_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
11455}
11456inline std::string* OperatorSetIdProto::release_domain() {
11457 // @@protoc_insertion_point(field_release:onnx_torch.OperatorSetIdProto.domain)
11458 if (!_internal_has_domain()) {
11459 return nullptr;
11460 }
11461 _has_bits_[0] &= ~0x00000001u;
11462 return domain_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
11463}
11464inline void OperatorSetIdProto::set_allocated_domain(std::string* domain) {
11465 if (domain != nullptr) {
11466 _has_bits_[0] |= 0x00000001u;
11467 } else {
11468 _has_bits_[0] &= ~0x00000001u;
11469 }
11470 domain_.SetAllocated(&GetEmptyStringAlreadyInited(), domain,
11471 GetArena());
11472 // @@protoc_insertion_point(field_set_allocated:onnx_torch.OperatorSetIdProto.domain)
11473}
11474
11475// optional int64 version = 2;
11476inline bool OperatorSetIdProto::_internal_has_version() const {
11477 bool value = (_has_bits_[0] & 0x00000002u) != 0;
11478 return value;
11479}
11480inline bool OperatorSetIdProto::has_version() const {
11481 return _internal_has_version();
11482}
11483inline void OperatorSetIdProto::clear_version() {
11484 version_ = PROTOBUF_LONGLONG(0);
11485 _has_bits_[0] &= ~0x00000002u;
11486}
11487inline ::PROTOBUF_NAMESPACE_ID::int64 OperatorSetIdProto::_internal_version() const {
11488 return version_;
11489}
11490inline ::PROTOBUF_NAMESPACE_ID::int64 OperatorSetIdProto::version() const {
11491 // @@protoc_insertion_point(field_get:onnx_torch.OperatorSetIdProto.version)
11492 return _internal_version();
11493}
11494inline void OperatorSetIdProto::_internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
11495 _has_bits_[0] |= 0x00000002u;
11496 version_ = value;
11497}
11498inline void OperatorSetIdProto::set_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
11499 _internal_set_version(value);
11500 // @@protoc_insertion_point(field_set:onnx_torch.OperatorSetIdProto.version)
11501}
11502
11503// -------------------------------------------------------------------
11504
11505// FunctionProto
11506
11507// optional string name = 1;
11508inline bool FunctionProto::_internal_has_name() const {
11509 bool value = (_has_bits_[0] & 0x00000001u) != 0;
11510 return value;
11511}
11512inline bool FunctionProto::has_name() const {
11513 return _internal_has_name();
11514}
11515inline void FunctionProto::clear_name() {
11516 name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
11517 _has_bits_[0] &= ~0x00000001u;
11518}
11519inline const std::string& FunctionProto::name() const {
11520 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.name)
11521 return _internal_name();
11522}
11523inline void FunctionProto::set_name(const std::string& value) {
11524 _internal_set_name(value);
11525 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.name)
11526}
11527inline std::string* FunctionProto::mutable_name() {
11528 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.name)
11529 return _internal_mutable_name();
11530}
11531inline const std::string& FunctionProto::_internal_name() const {
11532 return name_.Get();
11533}
11534inline void FunctionProto::_internal_set_name(const std::string& value) {
11535 _has_bits_[0] |= 0x00000001u;
11536 name_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
11537}
11538inline void FunctionProto::set_name(std::string&& value) {
11539 _has_bits_[0] |= 0x00000001u;
11540 name_.Set(
11541 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
11542 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.FunctionProto.name)
11543}
11544inline void FunctionProto::set_name(const char* value) {
11545 GOOGLE_DCHECK(value != nullptr);
11546 _has_bits_[0] |= 0x00000001u;
11547 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
11548 GetArena());
11549 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.name)
11550}
11551inline void FunctionProto::set_name(const char* value,
11552 size_t size) {
11553 _has_bits_[0] |= 0x00000001u;
11554 name_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
11555 reinterpret_cast<const char*>(value), size), GetArena());
11556 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.name)
11557}
11558inline std::string* FunctionProto::_internal_mutable_name() {
11559 _has_bits_[0] |= 0x00000001u;
11560 return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
11561}
11562inline std::string* FunctionProto::release_name() {
11563 // @@protoc_insertion_point(field_release:onnx_torch.FunctionProto.name)
11564 if (!_internal_has_name()) {
11565 return nullptr;
11566 }
11567 _has_bits_[0] &= ~0x00000001u;
11568 return name_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
11569}
11570inline void FunctionProto::set_allocated_name(std::string* name) {
11571 if (name != nullptr) {
11572 _has_bits_[0] |= 0x00000001u;
11573 } else {
11574 _has_bits_[0] &= ~0x00000001u;
11575 }
11576 name_.SetAllocated(&GetEmptyStringAlreadyInited(), name,
11577 GetArena());
11578 // @@protoc_insertion_point(field_set_allocated:onnx_torch.FunctionProto.name)
11579}
11580
11581// repeated string input = 4;
11582inline int FunctionProto::_internal_input_size() const {
11583 return input_.size();
11584}
11585inline int FunctionProto::input_size() const {
11586 return _internal_input_size();
11587}
11588inline void FunctionProto::clear_input() {
11589 input_.Clear();
11590}
11591inline std::string* FunctionProto::add_input() {
11592 // @@protoc_insertion_point(field_add_mutable:onnx_torch.FunctionProto.input)
11593 return _internal_add_input();
11594}
11595inline const std::string& FunctionProto::_internal_input(int index) const {
11596 return input_.Get(index);
11597}
11598inline const std::string& FunctionProto::input(int index) const {
11599 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.input)
11600 return _internal_input(index);
11601}
11602inline std::string* FunctionProto::mutable_input(int index) {
11603 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.input)
11604 return input_.Mutable(index);
11605}
11606inline void FunctionProto::set_input(int index, const std::string& value) {
11607 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.input)
11608 input_.Mutable(index)->assign(value);
11609}
11610inline void FunctionProto::set_input(int index, std::string&& value) {
11611 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.input)
11612 input_.Mutable(index)->assign(std::move(value));
11613}
11614inline void FunctionProto::set_input(int index, const char* value) {
11615 GOOGLE_DCHECK(value != nullptr);
11616 input_.Mutable(index)->assign(value);
11617 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.input)
11618}
11619inline void FunctionProto::set_input(int index, const char* value, size_t size) {
11620 input_.Mutable(index)->assign(
11621 reinterpret_cast<const char*>(value), size);
11622 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.input)
11623}
11624inline std::string* FunctionProto::_internal_add_input() {
11625 return input_.Add();
11626}
11627inline void FunctionProto::add_input(const std::string& value) {
11628 input_.Add()->assign(value);
11629 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.input)
11630}
11631inline void FunctionProto::add_input(std::string&& value) {
11632 input_.Add(std::move(value));
11633 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.input)
11634}
11635inline void FunctionProto::add_input(const char* value) {
11636 GOOGLE_DCHECK(value != nullptr);
11637 input_.Add()->assign(value);
11638 // @@protoc_insertion_point(field_add_char:onnx_torch.FunctionProto.input)
11639}
11640inline void FunctionProto::add_input(const char* value, size_t size) {
11641 input_.Add()->assign(reinterpret_cast<const char*>(value), size);
11642 // @@protoc_insertion_point(field_add_pointer:onnx_torch.FunctionProto.input)
11643}
11644inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
11645FunctionProto::input() const {
11646 // @@protoc_insertion_point(field_list:onnx_torch.FunctionProto.input)
11647 return input_;
11648}
11649inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
11650FunctionProto::mutable_input() {
11651 // @@protoc_insertion_point(field_mutable_list:onnx_torch.FunctionProto.input)
11652 return &input_;
11653}
11654
11655// repeated string output = 5;
11656inline int FunctionProto::_internal_output_size() const {
11657 return output_.size();
11658}
11659inline int FunctionProto::output_size() const {
11660 return _internal_output_size();
11661}
11662inline void FunctionProto::clear_output() {
11663 output_.Clear();
11664}
11665inline std::string* FunctionProto::add_output() {
11666 // @@protoc_insertion_point(field_add_mutable:onnx_torch.FunctionProto.output)
11667 return _internal_add_output();
11668}
11669inline const std::string& FunctionProto::_internal_output(int index) const {
11670 return output_.Get(index);
11671}
11672inline const std::string& FunctionProto::output(int index) const {
11673 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.output)
11674 return _internal_output(index);
11675}
11676inline std::string* FunctionProto::mutable_output(int index) {
11677 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.output)
11678 return output_.Mutable(index);
11679}
11680inline void FunctionProto::set_output(int index, const std::string& value) {
11681 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.output)
11682 output_.Mutable(index)->assign(value);
11683}
11684inline void FunctionProto::set_output(int index, std::string&& value) {
11685 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.output)
11686 output_.Mutable(index)->assign(std::move(value));
11687}
11688inline void FunctionProto::set_output(int index, const char* value) {
11689 GOOGLE_DCHECK(value != nullptr);
11690 output_.Mutable(index)->assign(value);
11691 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.output)
11692}
11693inline void FunctionProto::set_output(int index, const char* value, size_t size) {
11694 output_.Mutable(index)->assign(
11695 reinterpret_cast<const char*>(value), size);
11696 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.output)
11697}
11698inline std::string* FunctionProto::_internal_add_output() {
11699 return output_.Add();
11700}
11701inline void FunctionProto::add_output(const std::string& value) {
11702 output_.Add()->assign(value);
11703 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.output)
11704}
11705inline void FunctionProto::add_output(std::string&& value) {
11706 output_.Add(std::move(value));
11707 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.output)
11708}
11709inline void FunctionProto::add_output(const char* value) {
11710 GOOGLE_DCHECK(value != nullptr);
11711 output_.Add()->assign(value);
11712 // @@protoc_insertion_point(field_add_char:onnx_torch.FunctionProto.output)
11713}
11714inline void FunctionProto::add_output(const char* value, size_t size) {
11715 output_.Add()->assign(reinterpret_cast<const char*>(value), size);
11716 // @@protoc_insertion_point(field_add_pointer:onnx_torch.FunctionProto.output)
11717}
11718inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
11719FunctionProto::output() const {
11720 // @@protoc_insertion_point(field_list:onnx_torch.FunctionProto.output)
11721 return output_;
11722}
11723inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
11724FunctionProto::mutable_output() {
11725 // @@protoc_insertion_point(field_mutable_list:onnx_torch.FunctionProto.output)
11726 return &output_;
11727}
11728
11729// repeated string attribute = 6;
11730inline int FunctionProto::_internal_attribute_size() const {
11731 return attribute_.size();
11732}
11733inline int FunctionProto::attribute_size() const {
11734 return _internal_attribute_size();
11735}
11736inline void FunctionProto::clear_attribute() {
11737 attribute_.Clear();
11738}
11739inline std::string* FunctionProto::add_attribute() {
11740 // @@protoc_insertion_point(field_add_mutable:onnx_torch.FunctionProto.attribute)
11741 return _internal_add_attribute();
11742}
11743inline const std::string& FunctionProto::_internal_attribute(int index) const {
11744 return attribute_.Get(index);
11745}
11746inline const std::string& FunctionProto::attribute(int index) const {
11747 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.attribute)
11748 return _internal_attribute(index);
11749}
11750inline std::string* FunctionProto::mutable_attribute(int index) {
11751 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.attribute)
11752 return attribute_.Mutable(index);
11753}
11754inline void FunctionProto::set_attribute(int index, const std::string& value) {
11755 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.attribute)
11756 attribute_.Mutable(index)->assign(value);
11757}
11758inline void FunctionProto::set_attribute(int index, std::string&& value) {
11759 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.attribute)
11760 attribute_.Mutable(index)->assign(std::move(value));
11761}
11762inline void FunctionProto::set_attribute(int index, const char* value) {
11763 GOOGLE_DCHECK(value != nullptr);
11764 attribute_.Mutable(index)->assign(value);
11765 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.attribute)
11766}
11767inline void FunctionProto::set_attribute(int index, const char* value, size_t size) {
11768 attribute_.Mutable(index)->assign(
11769 reinterpret_cast<const char*>(value), size);
11770 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.attribute)
11771}
11772inline std::string* FunctionProto::_internal_add_attribute() {
11773 return attribute_.Add();
11774}
11775inline void FunctionProto::add_attribute(const std::string& value) {
11776 attribute_.Add()->assign(value);
11777 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.attribute)
11778}
11779inline void FunctionProto::add_attribute(std::string&& value) {
11780 attribute_.Add(std::move(value));
11781 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.attribute)
11782}
11783inline void FunctionProto::add_attribute(const char* value) {
11784 GOOGLE_DCHECK(value != nullptr);
11785 attribute_.Add()->assign(value);
11786 // @@protoc_insertion_point(field_add_char:onnx_torch.FunctionProto.attribute)
11787}
11788inline void FunctionProto::add_attribute(const char* value, size_t size) {
11789 attribute_.Add()->assign(reinterpret_cast<const char*>(value), size);
11790 // @@protoc_insertion_point(field_add_pointer:onnx_torch.FunctionProto.attribute)
11791}
11792inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
11793FunctionProto::attribute() const {
11794 // @@protoc_insertion_point(field_list:onnx_torch.FunctionProto.attribute)
11795 return attribute_;
11796}
11797inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
11798FunctionProto::mutable_attribute() {
11799 // @@protoc_insertion_point(field_mutable_list:onnx_torch.FunctionProto.attribute)
11800 return &attribute_;
11801}
11802
11803// repeated .onnx_torch.NodeProto node = 7;
11804inline int FunctionProto::_internal_node_size() const {
11805 return node_.size();
11806}
11807inline int FunctionProto::node_size() const {
11808 return _internal_node_size();
11809}
11810inline void FunctionProto::clear_node() {
11811 node_.Clear();
11812}
11813inline ::onnx_torch::NodeProto* FunctionProto::mutable_node(int index) {
11814 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.node)
11815 return node_.Mutable(index);
11816}
11817inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >*
11818FunctionProto::mutable_node() {
11819 // @@protoc_insertion_point(field_mutable_list:onnx_torch.FunctionProto.node)
11820 return &node_;
11821}
11822inline const ::onnx_torch::NodeProto& FunctionProto::_internal_node(int index) const {
11823 return node_.Get(index);
11824}
11825inline const ::onnx_torch::NodeProto& FunctionProto::node(int index) const {
11826 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.node)
11827 return _internal_node(index);
11828}
11829inline ::onnx_torch::NodeProto* FunctionProto::_internal_add_node() {
11830 return node_.Add();
11831}
11832inline ::onnx_torch::NodeProto* FunctionProto::add_node() {
11833 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.node)
11834 return _internal_add_node();
11835}
11836inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::NodeProto >&
11837FunctionProto::node() const {
11838 // @@protoc_insertion_point(field_list:onnx_torch.FunctionProto.node)
11839 return node_;
11840}
11841
11842// optional string doc_string = 8;
11843inline bool FunctionProto::_internal_has_doc_string() const {
11844 bool value = (_has_bits_[0] & 0x00000002u) != 0;
11845 return value;
11846}
11847inline bool FunctionProto::has_doc_string() const {
11848 return _internal_has_doc_string();
11849}
11850inline void FunctionProto::clear_doc_string() {
11851 doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
11852 _has_bits_[0] &= ~0x00000002u;
11853}
11854inline const std::string& FunctionProto::doc_string() const {
11855 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.doc_string)
11856 return _internal_doc_string();
11857}
11858inline void FunctionProto::set_doc_string(const std::string& value) {
11859 _internal_set_doc_string(value);
11860 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.doc_string)
11861}
11862inline std::string* FunctionProto::mutable_doc_string() {
11863 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.doc_string)
11864 return _internal_mutable_doc_string();
11865}
11866inline const std::string& FunctionProto::_internal_doc_string() const {
11867 return doc_string_.Get();
11868}
11869inline void FunctionProto::_internal_set_doc_string(const std::string& value) {
11870 _has_bits_[0] |= 0x00000002u;
11871 doc_string_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
11872}
11873inline void FunctionProto::set_doc_string(std::string&& value) {
11874 _has_bits_[0] |= 0x00000002u;
11875 doc_string_.Set(
11876 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
11877 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.FunctionProto.doc_string)
11878}
11879inline void FunctionProto::set_doc_string(const char* value) {
11880 GOOGLE_DCHECK(value != nullptr);
11881 _has_bits_[0] |= 0x00000002u;
11882 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
11883 GetArena());
11884 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.doc_string)
11885}
11886inline void FunctionProto::set_doc_string(const char* value,
11887 size_t size) {
11888 _has_bits_[0] |= 0x00000002u;
11889 doc_string_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
11890 reinterpret_cast<const char*>(value), size), GetArena());
11891 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.doc_string)
11892}
11893inline std::string* FunctionProto::_internal_mutable_doc_string() {
11894 _has_bits_[0] |= 0x00000002u;
11895 return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
11896}
11897inline std::string* FunctionProto::release_doc_string() {
11898 // @@protoc_insertion_point(field_release:onnx_torch.FunctionProto.doc_string)
11899 if (!_internal_has_doc_string()) {
11900 return nullptr;
11901 }
11902 _has_bits_[0] &= ~0x00000002u;
11903 return doc_string_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
11904}
11905inline void FunctionProto::set_allocated_doc_string(std::string* doc_string) {
11906 if (doc_string != nullptr) {
11907 _has_bits_[0] |= 0x00000002u;
11908 } else {
11909 _has_bits_[0] &= ~0x00000002u;
11910 }
11911 doc_string_.SetAllocated(&GetEmptyStringAlreadyInited(), doc_string,
11912 GetArena());
11913 // @@protoc_insertion_point(field_set_allocated:onnx_torch.FunctionProto.doc_string)
11914}
11915
11916// repeated .onnx_torch.OperatorSetIdProto opset_import = 9;
11917inline int FunctionProto::_internal_opset_import_size() const {
11918 return opset_import_.size();
11919}
11920inline int FunctionProto::opset_import_size() const {
11921 return _internal_opset_import_size();
11922}
11923inline void FunctionProto::clear_opset_import() {
11924 opset_import_.Clear();
11925}
11926inline ::onnx_torch::OperatorSetIdProto* FunctionProto::mutable_opset_import(int index) {
11927 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.opset_import)
11928 return opset_import_.Mutable(index);
11929}
11930inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >*
11931FunctionProto::mutable_opset_import() {
11932 // @@protoc_insertion_point(field_mutable_list:onnx_torch.FunctionProto.opset_import)
11933 return &opset_import_;
11934}
11935inline const ::onnx_torch::OperatorSetIdProto& FunctionProto::_internal_opset_import(int index) const {
11936 return opset_import_.Get(index);
11937}
11938inline const ::onnx_torch::OperatorSetIdProto& FunctionProto::opset_import(int index) const {
11939 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.opset_import)
11940 return _internal_opset_import(index);
11941}
11942inline ::onnx_torch::OperatorSetIdProto* FunctionProto::_internal_add_opset_import() {
11943 return opset_import_.Add();
11944}
11945inline ::onnx_torch::OperatorSetIdProto* FunctionProto::add_opset_import() {
11946 // @@protoc_insertion_point(field_add:onnx_torch.FunctionProto.opset_import)
11947 return _internal_add_opset_import();
11948}
11949inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::onnx_torch::OperatorSetIdProto >&
11950FunctionProto::opset_import() const {
11951 // @@protoc_insertion_point(field_list:onnx_torch.FunctionProto.opset_import)
11952 return opset_import_;
11953}
11954
11955// optional string domain = 10;
11956inline bool FunctionProto::_internal_has_domain() const {
11957 bool value = (_has_bits_[0] & 0x00000004u) != 0;
11958 return value;
11959}
11960inline bool FunctionProto::has_domain() const {
11961 return _internal_has_domain();
11962}
11963inline void FunctionProto::clear_domain() {
11964 domain_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
11965 _has_bits_[0] &= ~0x00000004u;
11966}
11967inline const std::string& FunctionProto::domain() const {
11968 // @@protoc_insertion_point(field_get:onnx_torch.FunctionProto.domain)
11969 return _internal_domain();
11970}
11971inline void FunctionProto::set_domain(const std::string& value) {
11972 _internal_set_domain(value);
11973 // @@protoc_insertion_point(field_set:onnx_torch.FunctionProto.domain)
11974}
11975inline std::string* FunctionProto::mutable_domain() {
11976 // @@protoc_insertion_point(field_mutable:onnx_torch.FunctionProto.domain)
11977 return _internal_mutable_domain();
11978}
11979inline const std::string& FunctionProto::_internal_domain() const {
11980 return domain_.Get();
11981}
11982inline void FunctionProto::_internal_set_domain(const std::string& value) {
11983 _has_bits_[0] |= 0x00000004u;
11984 domain_.Set(&GetEmptyStringAlreadyInited(), value, GetArena());
11985}
11986inline void FunctionProto::set_domain(std::string&& value) {
11987 _has_bits_[0] |= 0x00000004u;
11988 domain_.Set(
11989 &GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
11990 // @@protoc_insertion_point(field_set_rvalue:onnx_torch.FunctionProto.domain)
11991}
11992inline void FunctionProto::set_domain(const char* value) {
11993 GOOGLE_DCHECK(value != nullptr);
11994 _has_bits_[0] |= 0x00000004u;
11995 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(value),
11996 GetArena());
11997 // @@protoc_insertion_point(field_set_char:onnx_torch.FunctionProto.domain)
11998}
11999inline void FunctionProto::set_domain(const char* value,
12000 size_t size) {
12001 _has_bits_[0] |= 0x00000004u;
12002 domain_.Set(&GetEmptyStringAlreadyInited(), ::std::string(
12003 reinterpret_cast<const char*>(value), size), GetArena());
12004 // @@protoc_insertion_point(field_set_pointer:onnx_torch.FunctionProto.domain)
12005}
12006inline std::string* FunctionProto::_internal_mutable_domain() {
12007 _has_bits_[0] |= 0x00000004u;
12008 return domain_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
12009}
12010inline std::string* FunctionProto::release_domain() {
12011 // @@protoc_insertion_point(field_release:onnx_torch.FunctionProto.domain)
12012 if (!_internal_has_domain()) {
12013 return nullptr;
12014 }
12015 _has_bits_[0] &= ~0x00000004u;
12016 return domain_.ReleaseNonDefault(&GetEmptyStringAlreadyInited(), GetArena());
12017}
12018inline void FunctionProto::set_allocated_domain(std::string* domain) {
12019 if (domain != nullptr) {
12020 _has_bits_[0] |= 0x00000004u;
12021 } else {
12022 _has_bits_[0] &= ~0x00000004u;
12023 }
12024 domain_.SetAllocated(&GetEmptyStringAlreadyInited(), domain,
12025 GetArena());
12026 // @@protoc_insertion_point(field_set_allocated:onnx_torch.FunctionProto.domain)
12027}
12028
12029#ifdef __GNUC__
12030 #pragma GCC diagnostic pop
12031#endif // __GNUC__
12032// -------------------------------------------------------------------
12033
12034// -------------------------------------------------------------------
12035
12036// -------------------------------------------------------------------
12037
12038// -------------------------------------------------------------------
12039
12040// -------------------------------------------------------------------
12041
12042// -------------------------------------------------------------------
12043
12044// -------------------------------------------------------------------
12045
12046// -------------------------------------------------------------------
12047
12048// -------------------------------------------------------------------
12049
12050// -------------------------------------------------------------------
12051
12052// -------------------------------------------------------------------
12053
12054// -------------------------------------------------------------------
12055
12056// -------------------------------------------------------------------
12057
12058// -------------------------------------------------------------------
12059
12060// -------------------------------------------------------------------
12061
12062// -------------------------------------------------------------------
12063
12064// -------------------------------------------------------------------
12065
12066// -------------------------------------------------------------------
12067
12068// -------------------------------------------------------------------
12069
12070// -------------------------------------------------------------------
12071
12072// -------------------------------------------------------------------
12073
12074
12075// @@protoc_insertion_point(namespace_scope)
12076
12077} // namespace onnx_torch
12078
12079PROTOBUF_NAMESPACE_OPEN
12080
12081template <> struct is_proto_enum< ::onnx_torch::AttributeProto_AttributeType> : ::std::true_type {};
12082template <>
12083inline const EnumDescriptor* GetEnumDescriptor< ::onnx_torch::AttributeProto_AttributeType>() {
12084 return ::onnx_torch::AttributeProto_AttributeType_descriptor();
12085}
12086template <> struct is_proto_enum< ::onnx_torch::TensorProto_DataType> : ::std::true_type {};
12087template <>
12088inline const EnumDescriptor* GetEnumDescriptor< ::onnx_torch::TensorProto_DataType>() {
12089 return ::onnx_torch::TensorProto_DataType_descriptor();
12090}
12091template <> struct is_proto_enum< ::onnx_torch::TensorProto_DataLocation> : ::std::true_type {};
12092template <>
12093inline const EnumDescriptor* GetEnumDescriptor< ::onnx_torch::TensorProto_DataLocation>() {
12094 return ::onnx_torch::TensorProto_DataLocation_descriptor();
12095}
12096template <> struct is_proto_enum< ::onnx_torch::Version> : ::std::true_type {};
12097template <>
12098inline const EnumDescriptor* GetEnumDescriptor< ::onnx_torch::Version>() {
12099 return ::onnx_torch::Version_descriptor();
12100}
12101template <> struct is_proto_enum< ::onnx_torch::OperatorStatus> : ::std::true_type {};
12102template <>
12103inline const EnumDescriptor* GetEnumDescriptor< ::onnx_torch::OperatorStatus>() {
12104 return ::onnx_torch::OperatorStatus_descriptor();
12105}
12106
12107PROTOBUF_NAMESPACE_CLOSE
12108
12109// @@protoc_insertion_point(global_scope)
12110
12111#include <google/protobuf/port_undef.inc>
12112#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_onnx_2fonnx_5fonnx_5ftorch_2dml_2eproto
12113