1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/model.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fmodel_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fmodel_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
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 3009002 < 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.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/map.h> // IWYU pragma: export |
35 | #include <google/protobuf/map_entry.h> |
36 | #include <google/protobuf/map_field_inl.h> |
37 | #include <google/protobuf/generated_enum_reflection.h> |
38 | #include <google/protobuf/unknown_field_set.h> |
39 | // @@protoc_insertion_point(includes) |
40 | #include <google/protobuf/port_def.inc> |
41 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fmodel_2eproto |
42 | PROTOBUF_NAMESPACE_OPEN |
43 | namespace internal { |
44 | class AnyMetadata; |
45 | } // namespace internal |
46 | PROTOBUF_NAMESPACE_CLOSE |
47 | |
48 | // Internal implementation detail -- do not use these members. |
49 | struct TableStruct_tensorflow_2fcore_2fframework_2fmodel_2eproto { |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
53 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] |
55 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
56 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
57 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
58 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
59 | }; |
60 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto; |
61 | namespace tensorflow { |
62 | namespace data { |
63 | namespace model { |
64 | class ModelProto; |
65 | class ModelProtoDefaultTypeInternal; |
66 | extern ModelProtoDefaultTypeInternal _ModelProto_default_instance_; |
67 | class ModelProto_Node; |
68 | class ModelProto_NodeDefaultTypeInternal; |
69 | extern ModelProto_NodeDefaultTypeInternal _ModelProto_Node_default_instance_; |
70 | class ModelProto_Node_Parameter; |
71 | class ModelProto_Node_ParameterDefaultTypeInternal; |
72 | extern ModelProto_Node_ParameterDefaultTypeInternal _ModelProto_Node_Parameter_default_instance_; |
73 | class ModelProto_NodesEntry_DoNotUse; |
74 | class ModelProto_NodesEntry_DoNotUseDefaultTypeInternal; |
75 | extern ModelProto_NodesEntry_DoNotUseDefaultTypeInternal _ModelProto_NodesEntry_DoNotUse_default_instance_; |
76 | class ModelProto_OptimizationParams; |
77 | class ModelProto_OptimizationParamsDefaultTypeInternal; |
78 | extern ModelProto_OptimizationParamsDefaultTypeInternal _ModelProto_OptimizationParams_default_instance_; |
79 | } // namespace model |
80 | } // namespace data |
81 | } // namespace tensorflow |
82 | PROTOBUF_NAMESPACE_OPEN |
83 | template<> ::tensorflow::data::model::ModelProto* Arena::CreateMaybeMessage<::tensorflow::data::model::ModelProto>(Arena*); |
84 | template<> ::tensorflow::data::model::ModelProto_Node* Arena::CreateMaybeMessage<::tensorflow::data::model::ModelProto_Node>(Arena*); |
85 | template<> ::tensorflow::data::model::ModelProto_Node_Parameter* Arena::CreateMaybeMessage<::tensorflow::data::model::ModelProto_Node_Parameter>(Arena*); |
86 | template<> ::tensorflow::data::model::ModelProto_NodesEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::data::model::ModelProto_NodesEntry_DoNotUse>(Arena*); |
87 | template<> ::tensorflow::data::model::ModelProto_OptimizationParams* Arena::CreateMaybeMessage<::tensorflow::data::model::ModelProto_OptimizationParams>(Arena*); |
88 | PROTOBUF_NAMESPACE_CLOSE |
89 | namespace tensorflow { |
90 | namespace data { |
91 | namespace model { |
92 | |
93 | enum NodeClass : int { |
94 | UNKNOWN = 0, |
95 | INTERLEAVE_MANY = 1, |
96 | ASYNC_INTERLEAVE_MANY = 2, |
97 | KNOWN_RATIO = 3, |
98 | ASYNC_KNOWN_RATIO = 4, |
99 | UNKNOWN_RATIO = 5, |
100 | ASYNC_UNKNOWN_RATIO = 6, |
101 | NodeClass_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
102 | NodeClass_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
103 | }; |
104 | bool NodeClass_IsValid(int value); |
105 | constexpr NodeClass NodeClass_MIN = UNKNOWN; |
106 | constexpr NodeClass NodeClass_MAX = ASYNC_UNKNOWN_RATIO; |
107 | constexpr int NodeClass_ARRAYSIZE = NodeClass_MAX + 1; |
108 | |
109 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NodeClass_descriptor(); |
110 | template<typename T> |
111 | inline const std::string& NodeClass_Name(T enum_t_value) { |
112 | static_assert(::std::is_same<T, NodeClass>::value || |
113 | ::std::is_integral<T>::value, |
114 | "Incorrect type passed to function NodeClass_Name." ); |
115 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
116 | NodeClass_descriptor(), enum_t_value); |
117 | } |
118 | inline bool NodeClass_Parse( |
119 | const std::string& name, NodeClass* value) { |
120 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<NodeClass>( |
121 | NodeClass_descriptor(), name, value); |
122 | } |
123 | enum AutotuneAlgorithm : int { |
124 | DEFAULT = 0, |
125 | HILL_CLIMB = 1, |
126 | GRADIENT_DESCENT = 2, |
127 | MAX_PARALLELISM = 3, |
128 | STAGE_BASED = 4, |
129 | AutotuneAlgorithm_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
130 | AutotuneAlgorithm_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
131 | }; |
132 | bool AutotuneAlgorithm_IsValid(int value); |
133 | constexpr AutotuneAlgorithm AutotuneAlgorithm_MIN = DEFAULT; |
134 | constexpr AutotuneAlgorithm AutotuneAlgorithm_MAX = STAGE_BASED; |
135 | constexpr int AutotuneAlgorithm_ARRAYSIZE = AutotuneAlgorithm_MAX + 1; |
136 | |
137 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AutotuneAlgorithm_descriptor(); |
138 | template<typename T> |
139 | inline const std::string& AutotuneAlgorithm_Name(T enum_t_value) { |
140 | static_assert(::std::is_same<T, AutotuneAlgorithm>::value || |
141 | ::std::is_integral<T>::value, |
142 | "Incorrect type passed to function AutotuneAlgorithm_Name." ); |
143 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
144 | AutotuneAlgorithm_descriptor(), enum_t_value); |
145 | } |
146 | inline bool AutotuneAlgorithm_Parse( |
147 | const std::string& name, AutotuneAlgorithm* value) { |
148 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AutotuneAlgorithm>( |
149 | AutotuneAlgorithm_descriptor(), name, value); |
150 | } |
151 | // =================================================================== |
152 | |
153 | class ModelProto_Node_Parameter : |
154 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.model.ModelProto.Node.Parameter) */ { |
155 | public: |
156 | ModelProto_Node_Parameter(); |
157 | virtual ~ModelProto_Node_Parameter(); |
158 | |
159 | ModelProto_Node_Parameter(const ModelProto_Node_Parameter& from); |
160 | ModelProto_Node_Parameter(ModelProto_Node_Parameter&& from) noexcept |
161 | : ModelProto_Node_Parameter() { |
162 | *this = ::std::move(from); |
163 | } |
164 | |
165 | inline ModelProto_Node_Parameter& operator=(const ModelProto_Node_Parameter& from) { |
166 | CopyFrom(from); |
167 | return *this; |
168 | } |
169 | inline ModelProto_Node_Parameter& operator=(ModelProto_Node_Parameter&& from) noexcept { |
170 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
171 | if (this != &from) InternalSwap(&from); |
172 | } else { |
173 | CopyFrom(from); |
174 | } |
175 | return *this; |
176 | } |
177 | |
178 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
179 | return GetArenaNoVirtual(); |
180 | } |
181 | inline void* GetMaybeArenaPointer() const final { |
182 | return MaybeArenaPtr(); |
183 | } |
184 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
185 | return GetDescriptor(); |
186 | } |
187 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
188 | return GetMetadataStatic().descriptor; |
189 | } |
190 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
191 | return GetMetadataStatic().reflection; |
192 | } |
193 | static const ModelProto_Node_Parameter& default_instance(); |
194 | |
195 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
196 | static inline const ModelProto_Node_Parameter* internal_default_instance() { |
197 | return reinterpret_cast<const ModelProto_Node_Parameter*>( |
198 | &_ModelProto_Node_Parameter_default_instance_); |
199 | } |
200 | static constexpr int kIndexInFileMessages = |
201 | 0; |
202 | |
203 | friend void swap(ModelProto_Node_Parameter& a, ModelProto_Node_Parameter& b) { |
204 | a.Swap(&b); |
205 | } |
206 | inline void Swap(ModelProto_Node_Parameter* other) { |
207 | if (other == this) return; |
208 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
209 | InternalSwap(other); |
210 | } else { |
211 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
212 | } |
213 | } |
214 | void UnsafeArenaSwap(ModelProto_Node_Parameter* other) { |
215 | if (other == this) return; |
216 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
217 | InternalSwap(other); |
218 | } |
219 | |
220 | // implements Message ---------------------------------------------- |
221 | |
222 | inline ModelProto_Node_Parameter* New() const final { |
223 | return CreateMaybeMessage<ModelProto_Node_Parameter>(nullptr); |
224 | } |
225 | |
226 | ModelProto_Node_Parameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
227 | return CreateMaybeMessage<ModelProto_Node_Parameter>(arena); |
228 | } |
229 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
230 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
231 | void CopyFrom(const ModelProto_Node_Parameter& from); |
232 | void MergeFrom(const ModelProto_Node_Parameter& from); |
233 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
234 | bool IsInitialized() const final; |
235 | |
236 | size_t ByteSizeLong() const final; |
237 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
238 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
239 | #else |
240 | bool MergePartialFromCodedStream( |
241 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
242 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
243 | void SerializeWithCachedSizes( |
244 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
245 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
246 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
247 | int GetCachedSize() const final { return _cached_size_.Get(); } |
248 | |
249 | private: |
250 | inline void SharedCtor(); |
251 | inline void SharedDtor(); |
252 | void SetCachedSize(int size) const final; |
253 | void InternalSwap(ModelProto_Node_Parameter* other); |
254 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
255 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
256 | return "tensorflow.data.model.ModelProto.Node.Parameter" ; |
257 | } |
258 | protected: |
259 | explicit ModelProto_Node_Parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
260 | private: |
261 | static void ArenaDtor(void* object); |
262 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
263 | private: |
264 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
265 | return _internal_metadata_.arena(); |
266 | } |
267 | inline void* MaybeArenaPtr() const { |
268 | return _internal_metadata_.raw_arena_ptr(); |
269 | } |
270 | public: |
271 | |
272 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
273 | private: |
274 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
275 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto); |
276 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto.file_level_metadata[kIndexInFileMessages]; |
277 | } |
278 | |
279 | public: |
280 | |
281 | // nested types ---------------------------------------------------- |
282 | |
283 | // accessors ------------------------------------------------------- |
284 | |
285 | enum : int { |
286 | kNameFieldNumber = 1, |
287 | kValueFieldNumber = 2, |
288 | kStateValueFieldNumber = 3, |
289 | kMinFieldNumber = 4, |
290 | kMaxFieldNumber = 5, |
291 | kTunableFieldNumber = 6, |
292 | }; |
293 | // string name = 1; |
294 | void clear_name(); |
295 | const std::string& name() const; |
296 | void set_name(const std::string& value); |
297 | void set_name(std::string&& value); |
298 | void set_name(const char* value); |
299 | void set_name(const char* value, size_t size); |
300 | std::string* mutable_name(); |
301 | std::string* release_name(); |
302 | void set_allocated_name(std::string* name); |
303 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
304 | " string fields are deprecated and will be removed in a" |
305 | " future release." ) |
306 | std::string* unsafe_arena_release_name(); |
307 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
308 | " string fields are deprecated and will be removed in a" |
309 | " future release." ) |
310 | void unsafe_arena_set_allocated_name( |
311 | std::string* name); |
312 | |
313 | // double value = 2; |
314 | void clear_value(); |
315 | double value() const; |
316 | void set_value(double value); |
317 | |
318 | // double state_value = 3; |
319 | void clear_state_value(); |
320 | double state_value() const; |
321 | void set_state_value(double value); |
322 | |
323 | // double min = 4; |
324 | void clear_min(); |
325 | double min() const; |
326 | void set_min(double value); |
327 | |
328 | // double max = 5; |
329 | void clear_max(); |
330 | double max() const; |
331 | void set_max(double value); |
332 | |
333 | // bool tunable = 6; |
334 | void clear_tunable(); |
335 | bool tunable() const; |
336 | void set_tunable(bool value); |
337 | |
338 | // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node.Parameter) |
339 | private: |
340 | class _Internal; |
341 | |
342 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
343 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
344 | typedef void InternalArenaConstructable_; |
345 | typedef void DestructorSkippable_; |
346 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
347 | double value_; |
348 | double state_value_; |
349 | double min_; |
350 | double max_; |
351 | bool tunable_; |
352 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
353 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fmodel_2eproto; |
354 | }; |
355 | // ------------------------------------------------------------------- |
356 | |
357 | class ModelProto_Node : |
358 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.model.ModelProto.Node) */ { |
359 | public: |
360 | ModelProto_Node(); |
361 | virtual ~ModelProto_Node(); |
362 | |
363 | ModelProto_Node(const ModelProto_Node& from); |
364 | ModelProto_Node(ModelProto_Node&& from) noexcept |
365 | : ModelProto_Node() { |
366 | *this = ::std::move(from); |
367 | } |
368 | |
369 | inline ModelProto_Node& operator=(const ModelProto_Node& from) { |
370 | CopyFrom(from); |
371 | return *this; |
372 | } |
373 | inline ModelProto_Node& operator=(ModelProto_Node&& from) noexcept { |
374 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
375 | if (this != &from) InternalSwap(&from); |
376 | } else { |
377 | CopyFrom(from); |
378 | } |
379 | return *this; |
380 | } |
381 | |
382 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
383 | return GetArenaNoVirtual(); |
384 | } |
385 | inline void* GetMaybeArenaPointer() const final { |
386 | return MaybeArenaPtr(); |
387 | } |
388 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
389 | return GetDescriptor(); |
390 | } |
391 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
392 | return GetMetadataStatic().descriptor; |
393 | } |
394 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
395 | return GetMetadataStatic().reflection; |
396 | } |
397 | static const ModelProto_Node& default_instance(); |
398 | |
399 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
400 | static inline const ModelProto_Node* internal_default_instance() { |
401 | return reinterpret_cast<const ModelProto_Node*>( |
402 | &_ModelProto_Node_default_instance_); |
403 | } |
404 | static constexpr int kIndexInFileMessages = |
405 | 1; |
406 | |
407 | friend void swap(ModelProto_Node& a, ModelProto_Node& b) { |
408 | a.Swap(&b); |
409 | } |
410 | inline void Swap(ModelProto_Node* other) { |
411 | if (other == this) return; |
412 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
413 | InternalSwap(other); |
414 | } else { |
415 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
416 | } |
417 | } |
418 | void UnsafeArenaSwap(ModelProto_Node* other) { |
419 | if (other == this) return; |
420 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
421 | InternalSwap(other); |
422 | } |
423 | |
424 | // implements Message ---------------------------------------------- |
425 | |
426 | inline ModelProto_Node* New() const final { |
427 | return CreateMaybeMessage<ModelProto_Node>(nullptr); |
428 | } |
429 | |
430 | ModelProto_Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
431 | return CreateMaybeMessage<ModelProto_Node>(arena); |
432 | } |
433 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
434 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
435 | void CopyFrom(const ModelProto_Node& from); |
436 | void MergeFrom(const ModelProto_Node& from); |
437 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
438 | bool IsInitialized() const final; |
439 | |
440 | size_t ByteSizeLong() const final; |
441 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
442 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
443 | #else |
444 | bool MergePartialFromCodedStream( |
445 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
446 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
447 | void SerializeWithCachedSizes( |
448 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
449 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
450 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
451 | int GetCachedSize() const final { return _cached_size_.Get(); } |
452 | |
453 | private: |
454 | inline void SharedCtor(); |
455 | inline void SharedDtor(); |
456 | void SetCachedSize(int size) const final; |
457 | void InternalSwap(ModelProto_Node* other); |
458 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
459 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
460 | return "tensorflow.data.model.ModelProto.Node" ; |
461 | } |
462 | protected: |
463 | explicit ModelProto_Node(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
464 | private: |
465 | static void ArenaDtor(void* object); |
466 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
467 | private: |
468 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
469 | return _internal_metadata_.arena(); |
470 | } |
471 | inline void* MaybeArenaPtr() const { |
472 | return _internal_metadata_.raw_arena_ptr(); |
473 | } |
474 | public: |
475 | |
476 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
477 | private: |
478 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
479 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto); |
480 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto.file_level_metadata[kIndexInFileMessages]; |
481 | } |
482 | |
483 | public: |
484 | |
485 | // nested types ---------------------------------------------------- |
486 | |
487 | typedef ModelProto_Node_Parameter Parameter; |
488 | |
489 | // accessors ------------------------------------------------------- |
490 | |
491 | enum : int { |
492 | kParametersFieldNumber = 11, |
493 | kInputsFieldNumber = 14, |
494 | kNameFieldNumber = 2, |
495 | kIdFieldNumber = 1, |
496 | kBufferedBytesFieldNumber = 4, |
497 | kBufferedElementsFieldNumber = 5, |
498 | kBytesConsumedFieldNumber = 6, |
499 | kBytesProducedFieldNumber = 7, |
500 | kNumElementsFieldNumber = 8, |
501 | kProcessingTimeFieldNumber = 9, |
502 | kAutotuneFieldNumber = 3, |
503 | kRecordMetricsFieldNumber = 10, |
504 | kNodeClassFieldNumber = 15, |
505 | kInputProcessingTimeSumFieldNumber = 12, |
506 | kInputProcessingTimeCountFieldNumber = 13, |
507 | kRatioFieldNumber = 16, |
508 | kMemoryRatioFieldNumber = 17, |
509 | }; |
510 | // repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; |
511 | int parameters_size() const; |
512 | void clear_parameters(); |
513 | ::tensorflow::data::model::ModelProto_Node_Parameter* mutable_parameters(int index); |
514 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::model::ModelProto_Node_Parameter >* |
515 | mutable_parameters(); |
516 | const ::tensorflow::data::model::ModelProto_Node_Parameter& parameters(int index) const; |
517 | ::tensorflow::data::model::ModelProto_Node_Parameter* add_parameters(); |
518 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::model::ModelProto_Node_Parameter >& |
519 | parameters() const; |
520 | |
521 | // repeated int64 inputs = 14; |
522 | int inputs_size() const; |
523 | void clear_inputs(); |
524 | ::PROTOBUF_NAMESPACE_ID::int64 inputs(int index) const; |
525 | void set_inputs(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); |
526 | void add_inputs(::PROTOBUF_NAMESPACE_ID::int64 value); |
527 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
528 | inputs() const; |
529 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
530 | mutable_inputs(); |
531 | |
532 | // string name = 2; |
533 | void clear_name(); |
534 | const std::string& name() const; |
535 | void set_name(const std::string& value); |
536 | void set_name(std::string&& value); |
537 | void set_name(const char* value); |
538 | void set_name(const char* value, size_t size); |
539 | std::string* mutable_name(); |
540 | std::string* release_name(); |
541 | void set_allocated_name(std::string* name); |
542 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
543 | " string fields are deprecated and will be removed in a" |
544 | " future release." ) |
545 | std::string* unsafe_arena_release_name(); |
546 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
547 | " string fields are deprecated and will be removed in a" |
548 | " future release." ) |
549 | void unsafe_arena_set_allocated_name( |
550 | std::string* name); |
551 | |
552 | // int64 id = 1; |
553 | void clear_id(); |
554 | ::PROTOBUF_NAMESPACE_ID::int64 id() const; |
555 | void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); |
556 | |
557 | // int64 buffered_bytes = 4; |
558 | void clear_buffered_bytes(); |
559 | ::PROTOBUF_NAMESPACE_ID::int64 buffered_bytes() const; |
560 | void set_buffered_bytes(::PROTOBUF_NAMESPACE_ID::int64 value); |
561 | |
562 | // int64 buffered_elements = 5; |
563 | void clear_buffered_elements(); |
564 | ::PROTOBUF_NAMESPACE_ID::int64 buffered_elements() const; |
565 | void set_buffered_elements(::PROTOBUF_NAMESPACE_ID::int64 value); |
566 | |
567 | // int64 bytes_consumed = 6; |
568 | void clear_bytes_consumed(); |
569 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_consumed() const; |
570 | void set_bytes_consumed(::PROTOBUF_NAMESPACE_ID::int64 value); |
571 | |
572 | // int64 bytes_produced = 7; |
573 | void clear_bytes_produced(); |
574 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_produced() const; |
575 | void set_bytes_produced(::PROTOBUF_NAMESPACE_ID::int64 value); |
576 | |
577 | // int64 num_elements = 8; |
578 | void clear_num_elements(); |
579 | ::PROTOBUF_NAMESPACE_ID::int64 num_elements() const; |
580 | void set_num_elements(::PROTOBUF_NAMESPACE_ID::int64 value); |
581 | |
582 | // int64 processing_time = 9; |
583 | void clear_processing_time(); |
584 | ::PROTOBUF_NAMESPACE_ID::int64 processing_time() const; |
585 | void set_processing_time(::PROTOBUF_NAMESPACE_ID::int64 value); |
586 | |
587 | // bool autotune = 3; |
588 | void clear_autotune(); |
589 | bool autotune() const; |
590 | void set_autotune(bool value); |
591 | |
592 | // bool record_metrics = 10; |
593 | void clear_record_metrics(); |
594 | bool record_metrics() const; |
595 | void set_record_metrics(bool value); |
596 | |
597 | // .tensorflow.data.model.NodeClass node_class = 15; |
598 | void clear_node_class(); |
599 | ::tensorflow::data::model::NodeClass node_class() const; |
600 | void set_node_class(::tensorflow::data::model::NodeClass value); |
601 | |
602 | // double input_processing_time_sum = 12; |
603 | void clear_input_processing_time_sum(); |
604 | double input_processing_time_sum() const; |
605 | void set_input_processing_time_sum(double value); |
606 | |
607 | // int64 input_processing_time_count = 13; |
608 | void clear_input_processing_time_count(); |
609 | ::PROTOBUF_NAMESPACE_ID::int64 input_processing_time_count() const; |
610 | void set_input_processing_time_count(::PROTOBUF_NAMESPACE_ID::int64 value); |
611 | |
612 | // double ratio = 16; |
613 | void clear_ratio(); |
614 | double ratio() const; |
615 | void set_ratio(double value); |
616 | |
617 | // double memory_ratio = 17; |
618 | void clear_memory_ratio(); |
619 | double memory_ratio() const; |
620 | void set_memory_ratio(double value); |
621 | |
622 | // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node) |
623 | private: |
624 | class _Internal; |
625 | |
626 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
627 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
628 | typedef void InternalArenaConstructable_; |
629 | typedef void DestructorSkippable_; |
630 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::model::ModelProto_Node_Parameter > parameters_; |
631 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > inputs_; |
632 | mutable std::atomic<int> _inputs_cached_byte_size_; |
633 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
634 | ::PROTOBUF_NAMESPACE_ID::int64 id_; |
635 | ::PROTOBUF_NAMESPACE_ID::int64 buffered_bytes_; |
636 | ::PROTOBUF_NAMESPACE_ID::int64 buffered_elements_; |
637 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_consumed_; |
638 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_produced_; |
639 | ::PROTOBUF_NAMESPACE_ID::int64 num_elements_; |
640 | ::PROTOBUF_NAMESPACE_ID::int64 processing_time_; |
641 | bool autotune_; |
642 | bool record_metrics_; |
643 | int node_class_; |
644 | double input_processing_time_sum_; |
645 | ::PROTOBUF_NAMESPACE_ID::int64 input_processing_time_count_; |
646 | double ratio_; |
647 | double memory_ratio_; |
648 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
649 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fmodel_2eproto; |
650 | }; |
651 | // ------------------------------------------------------------------- |
652 | |
653 | class ModelProto_NodesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ModelProto_NodesEntry_DoNotUse, |
654 | ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node, |
655 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, |
656 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
657 | 0 > { |
658 | public: |
659 | typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<ModelProto_NodesEntry_DoNotUse, |
660 | ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node, |
661 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, |
662 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
663 | 0 > SuperType; |
664 | ModelProto_NodesEntry_DoNotUse(); |
665 | ModelProto_NodesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
666 | void MergeFrom(const ModelProto_NodesEntry_DoNotUse& other); |
667 | static const ModelProto_NodesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ModelProto_NodesEntry_DoNotUse*>(&_ModelProto_NodesEntry_DoNotUse_default_instance_); } |
668 | static bool ValidateKey(void*) { return true; } |
669 | static bool ValidateValue(void*) { return true; } |
670 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; |
671 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
672 | private: |
673 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
674 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto); |
675 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto.file_level_metadata[2]; |
676 | } |
677 | |
678 | public: |
679 | }; |
680 | |
681 | // ------------------------------------------------------------------- |
682 | |
683 | class ModelProto_OptimizationParams : |
684 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.model.ModelProto.OptimizationParams) */ { |
685 | public: |
686 | ModelProto_OptimizationParams(); |
687 | virtual ~ModelProto_OptimizationParams(); |
688 | |
689 | ModelProto_OptimizationParams(const ModelProto_OptimizationParams& from); |
690 | ModelProto_OptimizationParams(ModelProto_OptimizationParams&& from) noexcept |
691 | : ModelProto_OptimizationParams() { |
692 | *this = ::std::move(from); |
693 | } |
694 | |
695 | inline ModelProto_OptimizationParams& operator=(const ModelProto_OptimizationParams& from) { |
696 | CopyFrom(from); |
697 | return *this; |
698 | } |
699 | inline ModelProto_OptimizationParams& operator=(ModelProto_OptimizationParams&& from) noexcept { |
700 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
701 | if (this != &from) InternalSwap(&from); |
702 | } else { |
703 | CopyFrom(from); |
704 | } |
705 | return *this; |
706 | } |
707 | |
708 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
709 | return GetArenaNoVirtual(); |
710 | } |
711 | inline void* GetMaybeArenaPointer() const final { |
712 | return MaybeArenaPtr(); |
713 | } |
714 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
715 | return GetDescriptor(); |
716 | } |
717 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
718 | return GetMetadataStatic().descriptor; |
719 | } |
720 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
721 | return GetMetadataStatic().reflection; |
722 | } |
723 | static const ModelProto_OptimizationParams& default_instance(); |
724 | |
725 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
726 | static inline const ModelProto_OptimizationParams* internal_default_instance() { |
727 | return reinterpret_cast<const ModelProto_OptimizationParams*>( |
728 | &_ModelProto_OptimizationParams_default_instance_); |
729 | } |
730 | static constexpr int kIndexInFileMessages = |
731 | 3; |
732 | |
733 | friend void swap(ModelProto_OptimizationParams& a, ModelProto_OptimizationParams& b) { |
734 | a.Swap(&b); |
735 | } |
736 | inline void Swap(ModelProto_OptimizationParams* other) { |
737 | if (other == this) return; |
738 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
739 | InternalSwap(other); |
740 | } else { |
741 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
742 | } |
743 | } |
744 | void UnsafeArenaSwap(ModelProto_OptimizationParams* other) { |
745 | if (other == this) return; |
746 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
747 | InternalSwap(other); |
748 | } |
749 | |
750 | // implements Message ---------------------------------------------- |
751 | |
752 | inline ModelProto_OptimizationParams* New() const final { |
753 | return CreateMaybeMessage<ModelProto_OptimizationParams>(nullptr); |
754 | } |
755 | |
756 | ModelProto_OptimizationParams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
757 | return CreateMaybeMessage<ModelProto_OptimizationParams>(arena); |
758 | } |
759 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
760 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
761 | void CopyFrom(const ModelProto_OptimizationParams& from); |
762 | void MergeFrom(const ModelProto_OptimizationParams& from); |
763 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
764 | bool IsInitialized() const final; |
765 | |
766 | size_t ByteSizeLong() const final; |
767 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
768 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
769 | #else |
770 | bool MergePartialFromCodedStream( |
771 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
772 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
773 | void SerializeWithCachedSizes( |
774 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
775 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
776 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
777 | int GetCachedSize() const final { return _cached_size_.Get(); } |
778 | |
779 | private: |
780 | inline void SharedCtor(); |
781 | inline void SharedDtor(); |
782 | void SetCachedSize(int size) const final; |
783 | void InternalSwap(ModelProto_OptimizationParams* other); |
784 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
785 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
786 | return "tensorflow.data.model.ModelProto.OptimizationParams" ; |
787 | } |
788 | protected: |
789 | explicit ModelProto_OptimizationParams(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
790 | private: |
791 | static void ArenaDtor(void* object); |
792 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
793 | private: |
794 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
795 | return _internal_metadata_.arena(); |
796 | } |
797 | inline void* MaybeArenaPtr() const { |
798 | return _internal_metadata_.raw_arena_ptr(); |
799 | } |
800 | public: |
801 | |
802 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
803 | private: |
804 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
805 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto); |
806 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto.file_level_metadata[kIndexInFileMessages]; |
807 | } |
808 | |
809 | public: |
810 | |
811 | // nested types ---------------------------------------------------- |
812 | |
813 | // accessors ------------------------------------------------------- |
814 | |
815 | enum : int { |
816 | kCpuBudgetFieldNumber = 2, |
817 | kRamBudgetFieldNumber = 3, |
818 | kModelInputTimeFieldNumber = 4, |
819 | kAlgorithmFieldNumber = 1, |
820 | }; |
821 | // int64 cpu_budget = 2; |
822 | void clear_cpu_budget(); |
823 | ::PROTOBUF_NAMESPACE_ID::int64 cpu_budget() const; |
824 | void set_cpu_budget(::PROTOBUF_NAMESPACE_ID::int64 value); |
825 | |
826 | // int64 ram_budget = 3; |
827 | void clear_ram_budget(); |
828 | ::PROTOBUF_NAMESPACE_ID::int64 ram_budget() const; |
829 | void set_ram_budget(::PROTOBUF_NAMESPACE_ID::int64 value); |
830 | |
831 | // double model_input_time = 4; |
832 | void clear_model_input_time(); |
833 | double model_input_time() const; |
834 | void set_model_input_time(double value); |
835 | |
836 | // .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; |
837 | void clear_algorithm(); |
838 | ::tensorflow::data::model::AutotuneAlgorithm algorithm() const; |
839 | void set_algorithm(::tensorflow::data::model::AutotuneAlgorithm value); |
840 | |
841 | // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.OptimizationParams) |
842 | private: |
843 | class _Internal; |
844 | |
845 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
846 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
847 | typedef void InternalArenaConstructable_; |
848 | typedef void DestructorSkippable_; |
849 | ::PROTOBUF_NAMESPACE_ID::int64 cpu_budget_; |
850 | ::PROTOBUF_NAMESPACE_ID::int64 ram_budget_; |
851 | double model_input_time_; |
852 | int algorithm_; |
853 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
854 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fmodel_2eproto; |
855 | }; |
856 | // ------------------------------------------------------------------- |
857 | |
858 | class ModelProto : |
859 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.model.ModelProto) */ { |
860 | public: |
861 | ModelProto(); |
862 | virtual ~ModelProto(); |
863 | |
864 | ModelProto(const ModelProto& from); |
865 | ModelProto(ModelProto&& from) noexcept |
866 | : ModelProto() { |
867 | *this = ::std::move(from); |
868 | } |
869 | |
870 | inline ModelProto& operator=(const ModelProto& from) { |
871 | CopyFrom(from); |
872 | return *this; |
873 | } |
874 | inline ModelProto& operator=(ModelProto&& from) noexcept { |
875 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
876 | if (this != &from) InternalSwap(&from); |
877 | } else { |
878 | CopyFrom(from); |
879 | } |
880 | return *this; |
881 | } |
882 | |
883 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
884 | return GetArenaNoVirtual(); |
885 | } |
886 | inline void* GetMaybeArenaPointer() const final { |
887 | return MaybeArenaPtr(); |
888 | } |
889 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
890 | return GetDescriptor(); |
891 | } |
892 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
893 | return GetMetadataStatic().descriptor; |
894 | } |
895 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
896 | return GetMetadataStatic().reflection; |
897 | } |
898 | static const ModelProto& default_instance(); |
899 | |
900 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
901 | static inline const ModelProto* internal_default_instance() { |
902 | return reinterpret_cast<const ModelProto*>( |
903 | &_ModelProto_default_instance_); |
904 | } |
905 | static constexpr int kIndexInFileMessages = |
906 | 4; |
907 | |
908 | friend void swap(ModelProto& a, ModelProto& b) { |
909 | a.Swap(&b); |
910 | } |
911 | inline void Swap(ModelProto* other) { |
912 | if (other == this) return; |
913 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
914 | InternalSwap(other); |
915 | } else { |
916 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
917 | } |
918 | } |
919 | void UnsafeArenaSwap(ModelProto* other) { |
920 | if (other == this) return; |
921 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
922 | InternalSwap(other); |
923 | } |
924 | |
925 | // implements Message ---------------------------------------------- |
926 | |
927 | inline ModelProto* New() const final { |
928 | return CreateMaybeMessage<ModelProto>(nullptr); |
929 | } |
930 | |
931 | ModelProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
932 | return CreateMaybeMessage<ModelProto>(arena); |
933 | } |
934 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
935 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
936 | void CopyFrom(const ModelProto& from); |
937 | void MergeFrom(const ModelProto& from); |
938 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
939 | bool IsInitialized() const final; |
940 | |
941 | size_t ByteSizeLong() const final; |
942 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
943 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
944 | #else |
945 | bool MergePartialFromCodedStream( |
946 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
947 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
948 | void SerializeWithCachedSizes( |
949 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
950 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
951 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
952 | int GetCachedSize() const final { return _cached_size_.Get(); } |
953 | |
954 | private: |
955 | inline void SharedCtor(); |
956 | inline void SharedDtor(); |
957 | void SetCachedSize(int size) const final; |
958 | void InternalSwap(ModelProto* other); |
959 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
960 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
961 | return "tensorflow.data.model.ModelProto" ; |
962 | } |
963 | protected: |
964 | explicit ModelProto(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
965 | private: |
966 | static void ArenaDtor(void* object); |
967 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
968 | private: |
969 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
970 | return _internal_metadata_.arena(); |
971 | } |
972 | inline void* MaybeArenaPtr() const { |
973 | return _internal_metadata_.raw_arena_ptr(); |
974 | } |
975 | public: |
976 | |
977 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
978 | private: |
979 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
980 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto); |
981 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fmodel_2eproto.file_level_metadata[kIndexInFileMessages]; |
982 | } |
983 | |
984 | public: |
985 | |
986 | // nested types ---------------------------------------------------- |
987 | |
988 | typedef ModelProto_Node Node; |
989 | typedef ModelProto_OptimizationParams OptimizationParams; |
990 | |
991 | // accessors ------------------------------------------------------- |
992 | |
993 | enum : int { |
994 | kNodesFieldNumber = 1, |
995 | kOptimizationParamsFieldNumber = 5, |
996 | kOutputFieldNumber = 2, |
997 | kIdCounterFieldNumber = 3, |
998 | }; |
999 | // map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; |
1000 | int nodes_size() const; |
1001 | void clear_nodes(); |
1002 | const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node >& |
1003 | nodes() const; |
1004 | ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node >* |
1005 | mutable_nodes(); |
1006 | |
1007 | // .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; |
1008 | bool has_optimization_params() const; |
1009 | void clear_optimization_params(); |
1010 | const ::tensorflow::data::model::ModelProto_OptimizationParams& optimization_params() const; |
1011 | ::tensorflow::data::model::ModelProto_OptimizationParams* release_optimization_params(); |
1012 | ::tensorflow::data::model::ModelProto_OptimizationParams* mutable_optimization_params(); |
1013 | void set_allocated_optimization_params(::tensorflow::data::model::ModelProto_OptimizationParams* optimization_params); |
1014 | void unsafe_arena_set_allocated_optimization_params( |
1015 | ::tensorflow::data::model::ModelProto_OptimizationParams* optimization_params); |
1016 | ::tensorflow::data::model::ModelProto_OptimizationParams* unsafe_arena_release_optimization_params(); |
1017 | |
1018 | // int64 output = 2; |
1019 | void clear_output(); |
1020 | ::PROTOBUF_NAMESPACE_ID::int64 output() const; |
1021 | void set_output(::PROTOBUF_NAMESPACE_ID::int64 value); |
1022 | |
1023 | // int64 id_counter = 3; |
1024 | void clear_id_counter(); |
1025 | ::PROTOBUF_NAMESPACE_ID::int64 id_counter() const; |
1026 | void set_id_counter(::PROTOBUF_NAMESPACE_ID::int64 value); |
1027 | |
1028 | // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto) |
1029 | private: |
1030 | class _Internal; |
1031 | |
1032 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1033 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1034 | typedef void InternalArenaConstructable_; |
1035 | typedef void DestructorSkippable_; |
1036 | ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1037 | ModelProto_NodesEntry_DoNotUse, |
1038 | ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node, |
1039 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, |
1040 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
1041 | 0 > nodes_; |
1042 | ::tensorflow::data::model::ModelProto_OptimizationParams* optimization_params_; |
1043 | ::PROTOBUF_NAMESPACE_ID::int64 output_; |
1044 | ::PROTOBUF_NAMESPACE_ID::int64 id_counter_; |
1045 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1046 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fmodel_2eproto; |
1047 | }; |
1048 | // =================================================================== |
1049 | |
1050 | |
1051 | // =================================================================== |
1052 | |
1053 | #ifdef __GNUC__ |
1054 | #pragma GCC diagnostic push |
1055 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1056 | #endif // __GNUC__ |
1057 | // ModelProto_Node_Parameter |
1058 | |
1059 | // string name = 1; |
1060 | inline void ModelProto_Node_Parameter::clear_name() { |
1061 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1062 | } |
1063 | inline const std::string& ModelProto_Node_Parameter::name() const { |
1064 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1065 | return name_.Get(); |
1066 | } |
1067 | inline void ModelProto_Node_Parameter::set_name(const std::string& value) { |
1068 | |
1069 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
1070 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1071 | } |
1072 | inline void ModelProto_Node_Parameter::set_name(std::string&& value) { |
1073 | |
1074 | name_.Set( |
1075 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
1076 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1077 | } |
1078 | inline void ModelProto_Node_Parameter::set_name(const char* value) { |
1079 | GOOGLE_DCHECK(value != nullptr); |
1080 | |
1081 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
1082 | GetArenaNoVirtual()); |
1083 | // @@protoc_insertion_point(field_set_char:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1084 | } |
1085 | inline void ModelProto_Node_Parameter::set_name(const char* value, |
1086 | size_t size) { |
1087 | |
1088 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
1089 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
1090 | // @@protoc_insertion_point(field_set_pointer:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1091 | } |
1092 | inline std::string* ModelProto_Node_Parameter::mutable_name() { |
1093 | |
1094 | // @@protoc_insertion_point(field_mutable:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1095 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1096 | } |
1097 | inline std::string* ModelProto_Node_Parameter::release_name() { |
1098 | // @@protoc_insertion_point(field_release:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1099 | |
1100 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1101 | } |
1102 | inline void ModelProto_Node_Parameter::set_allocated_name(std::string* name) { |
1103 | if (name != nullptr) { |
1104 | |
1105 | } else { |
1106 | |
1107 | } |
1108 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
1109 | GetArenaNoVirtual()); |
1110 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1111 | } |
1112 | inline std::string* ModelProto_Node_Parameter::unsafe_arena_release_name() { |
1113 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1114 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1115 | |
1116 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1117 | GetArenaNoVirtual()); |
1118 | } |
1119 | inline void ModelProto_Node_Parameter::unsafe_arena_set_allocated_name( |
1120 | std::string* name) { |
1121 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1122 | if (name != nullptr) { |
1123 | |
1124 | } else { |
1125 | |
1126 | } |
1127 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1128 | name, GetArenaNoVirtual()); |
1129 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.data.model.ModelProto.Node.Parameter.name) |
1130 | } |
1131 | |
1132 | // double value = 2; |
1133 | inline void ModelProto_Node_Parameter::clear_value() { |
1134 | value_ = 0; |
1135 | } |
1136 | inline double ModelProto_Node_Parameter::value() const { |
1137 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.value) |
1138 | return value_; |
1139 | } |
1140 | inline void ModelProto_Node_Parameter::set_value(double value) { |
1141 | |
1142 | value_ = value; |
1143 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.value) |
1144 | } |
1145 | |
1146 | // double state_value = 3; |
1147 | inline void ModelProto_Node_Parameter::clear_state_value() { |
1148 | state_value_ = 0; |
1149 | } |
1150 | inline double ModelProto_Node_Parameter::state_value() const { |
1151 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.state_value) |
1152 | return state_value_; |
1153 | } |
1154 | inline void ModelProto_Node_Parameter::set_state_value(double value) { |
1155 | |
1156 | state_value_ = value; |
1157 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.state_value) |
1158 | } |
1159 | |
1160 | // double min = 4; |
1161 | inline void ModelProto_Node_Parameter::clear_min() { |
1162 | min_ = 0; |
1163 | } |
1164 | inline double ModelProto_Node_Parameter::min() const { |
1165 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.min) |
1166 | return min_; |
1167 | } |
1168 | inline void ModelProto_Node_Parameter::set_min(double value) { |
1169 | |
1170 | min_ = value; |
1171 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.min) |
1172 | } |
1173 | |
1174 | // double max = 5; |
1175 | inline void ModelProto_Node_Parameter::clear_max() { |
1176 | max_ = 0; |
1177 | } |
1178 | inline double ModelProto_Node_Parameter::max() const { |
1179 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.max) |
1180 | return max_; |
1181 | } |
1182 | inline void ModelProto_Node_Parameter::set_max(double value) { |
1183 | |
1184 | max_ = value; |
1185 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.max) |
1186 | } |
1187 | |
1188 | // bool tunable = 6; |
1189 | inline void ModelProto_Node_Parameter::clear_tunable() { |
1190 | tunable_ = false; |
1191 | } |
1192 | inline bool ModelProto_Node_Parameter::tunable() const { |
1193 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.Parameter.tunable) |
1194 | return tunable_; |
1195 | } |
1196 | inline void ModelProto_Node_Parameter::set_tunable(bool value) { |
1197 | |
1198 | tunable_ = value; |
1199 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.Parameter.tunable) |
1200 | } |
1201 | |
1202 | // ------------------------------------------------------------------- |
1203 | |
1204 | // ModelProto_Node |
1205 | |
1206 | // int64 id = 1; |
1207 | inline void ModelProto_Node::clear_id() { |
1208 | id_ = PROTOBUF_LONGLONG(0); |
1209 | } |
1210 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::id() const { |
1211 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.id) |
1212 | return id_; |
1213 | } |
1214 | inline void ModelProto_Node::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1215 | |
1216 | id_ = value; |
1217 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.id) |
1218 | } |
1219 | |
1220 | // string name = 2; |
1221 | inline void ModelProto_Node::clear_name() { |
1222 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1223 | } |
1224 | inline const std::string& ModelProto_Node::name() const { |
1225 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.name) |
1226 | return name_.Get(); |
1227 | } |
1228 | inline void ModelProto_Node::set_name(const std::string& value) { |
1229 | |
1230 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
1231 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.name) |
1232 | } |
1233 | inline void ModelProto_Node::set_name(std::string&& value) { |
1234 | |
1235 | name_.Set( |
1236 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
1237 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.data.model.ModelProto.Node.name) |
1238 | } |
1239 | inline void ModelProto_Node::set_name(const char* value) { |
1240 | GOOGLE_DCHECK(value != nullptr); |
1241 | |
1242 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
1243 | GetArenaNoVirtual()); |
1244 | // @@protoc_insertion_point(field_set_char:tensorflow.data.model.ModelProto.Node.name) |
1245 | } |
1246 | inline void ModelProto_Node::set_name(const char* value, |
1247 | size_t size) { |
1248 | |
1249 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
1250 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
1251 | // @@protoc_insertion_point(field_set_pointer:tensorflow.data.model.ModelProto.Node.name) |
1252 | } |
1253 | inline std::string* ModelProto_Node::mutable_name() { |
1254 | |
1255 | // @@protoc_insertion_point(field_mutable:tensorflow.data.model.ModelProto.Node.name) |
1256 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1257 | } |
1258 | inline std::string* ModelProto_Node::release_name() { |
1259 | // @@protoc_insertion_point(field_release:tensorflow.data.model.ModelProto.Node.name) |
1260 | |
1261 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1262 | } |
1263 | inline void ModelProto_Node::set_allocated_name(std::string* name) { |
1264 | if (name != nullptr) { |
1265 | |
1266 | } else { |
1267 | |
1268 | } |
1269 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
1270 | GetArenaNoVirtual()); |
1271 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.model.ModelProto.Node.name) |
1272 | } |
1273 | inline std::string* ModelProto_Node::unsafe_arena_release_name() { |
1274 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.data.model.ModelProto.Node.name) |
1275 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1276 | |
1277 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1278 | GetArenaNoVirtual()); |
1279 | } |
1280 | inline void ModelProto_Node::unsafe_arena_set_allocated_name( |
1281 | std::string* name) { |
1282 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1283 | if (name != nullptr) { |
1284 | |
1285 | } else { |
1286 | |
1287 | } |
1288 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1289 | name, GetArenaNoVirtual()); |
1290 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.data.model.ModelProto.Node.name) |
1291 | } |
1292 | |
1293 | // bool autotune = 3; |
1294 | inline void ModelProto_Node::clear_autotune() { |
1295 | autotune_ = false; |
1296 | } |
1297 | inline bool ModelProto_Node::autotune() const { |
1298 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.autotune) |
1299 | return autotune_; |
1300 | } |
1301 | inline void ModelProto_Node::set_autotune(bool value) { |
1302 | |
1303 | autotune_ = value; |
1304 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.autotune) |
1305 | } |
1306 | |
1307 | // int64 buffered_bytes = 4; |
1308 | inline void ModelProto_Node::clear_buffered_bytes() { |
1309 | buffered_bytes_ = PROTOBUF_LONGLONG(0); |
1310 | } |
1311 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::buffered_bytes() const { |
1312 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.buffered_bytes) |
1313 | return buffered_bytes_; |
1314 | } |
1315 | inline void ModelProto_Node::set_buffered_bytes(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1316 | |
1317 | buffered_bytes_ = value; |
1318 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.buffered_bytes) |
1319 | } |
1320 | |
1321 | // int64 buffered_elements = 5; |
1322 | inline void ModelProto_Node::clear_buffered_elements() { |
1323 | buffered_elements_ = PROTOBUF_LONGLONG(0); |
1324 | } |
1325 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::buffered_elements() const { |
1326 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.buffered_elements) |
1327 | return buffered_elements_; |
1328 | } |
1329 | inline void ModelProto_Node::set_buffered_elements(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1330 | |
1331 | buffered_elements_ = value; |
1332 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.buffered_elements) |
1333 | } |
1334 | |
1335 | // int64 bytes_consumed = 6; |
1336 | inline void ModelProto_Node::clear_bytes_consumed() { |
1337 | bytes_consumed_ = PROTOBUF_LONGLONG(0); |
1338 | } |
1339 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::bytes_consumed() const { |
1340 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.bytes_consumed) |
1341 | return bytes_consumed_; |
1342 | } |
1343 | inline void ModelProto_Node::set_bytes_consumed(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1344 | |
1345 | bytes_consumed_ = value; |
1346 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.bytes_consumed) |
1347 | } |
1348 | |
1349 | // int64 bytes_produced = 7; |
1350 | inline void ModelProto_Node::clear_bytes_produced() { |
1351 | bytes_produced_ = PROTOBUF_LONGLONG(0); |
1352 | } |
1353 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::bytes_produced() const { |
1354 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.bytes_produced) |
1355 | return bytes_produced_; |
1356 | } |
1357 | inline void ModelProto_Node::set_bytes_produced(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1358 | |
1359 | bytes_produced_ = value; |
1360 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.bytes_produced) |
1361 | } |
1362 | |
1363 | // int64 num_elements = 8; |
1364 | inline void ModelProto_Node::clear_num_elements() { |
1365 | num_elements_ = PROTOBUF_LONGLONG(0); |
1366 | } |
1367 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::num_elements() const { |
1368 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.num_elements) |
1369 | return num_elements_; |
1370 | } |
1371 | inline void ModelProto_Node::set_num_elements(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1372 | |
1373 | num_elements_ = value; |
1374 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.num_elements) |
1375 | } |
1376 | |
1377 | // int64 processing_time = 9; |
1378 | inline void ModelProto_Node::clear_processing_time() { |
1379 | processing_time_ = PROTOBUF_LONGLONG(0); |
1380 | } |
1381 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::processing_time() const { |
1382 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.processing_time) |
1383 | return processing_time_; |
1384 | } |
1385 | inline void ModelProto_Node::set_processing_time(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1386 | |
1387 | processing_time_ = value; |
1388 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.processing_time) |
1389 | } |
1390 | |
1391 | // bool record_metrics = 10; |
1392 | inline void ModelProto_Node::clear_record_metrics() { |
1393 | record_metrics_ = false; |
1394 | } |
1395 | inline bool ModelProto_Node::record_metrics() const { |
1396 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.record_metrics) |
1397 | return record_metrics_; |
1398 | } |
1399 | inline void ModelProto_Node::set_record_metrics(bool value) { |
1400 | |
1401 | record_metrics_ = value; |
1402 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.record_metrics) |
1403 | } |
1404 | |
1405 | // repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; |
1406 | inline int ModelProto_Node::parameters_size() const { |
1407 | return parameters_.size(); |
1408 | } |
1409 | inline void ModelProto_Node::clear_parameters() { |
1410 | parameters_.Clear(); |
1411 | } |
1412 | inline ::tensorflow::data::model::ModelProto_Node_Parameter* ModelProto_Node::mutable_parameters(int index) { |
1413 | // @@protoc_insertion_point(field_mutable:tensorflow.data.model.ModelProto.Node.parameters) |
1414 | return parameters_.Mutable(index); |
1415 | } |
1416 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::model::ModelProto_Node_Parameter >* |
1417 | ModelProto_Node::mutable_parameters() { |
1418 | // @@protoc_insertion_point(field_mutable_list:tensorflow.data.model.ModelProto.Node.parameters) |
1419 | return ¶meters_; |
1420 | } |
1421 | inline const ::tensorflow::data::model::ModelProto_Node_Parameter& ModelProto_Node::parameters(int index) const { |
1422 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.parameters) |
1423 | return parameters_.Get(index); |
1424 | } |
1425 | inline ::tensorflow::data::model::ModelProto_Node_Parameter* ModelProto_Node::add_parameters() { |
1426 | // @@protoc_insertion_point(field_add:tensorflow.data.model.ModelProto.Node.parameters) |
1427 | return parameters_.Add(); |
1428 | } |
1429 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::model::ModelProto_Node_Parameter >& |
1430 | ModelProto_Node::parameters() const { |
1431 | // @@protoc_insertion_point(field_list:tensorflow.data.model.ModelProto.Node.parameters) |
1432 | return parameters_; |
1433 | } |
1434 | |
1435 | // double input_processing_time_sum = 12; |
1436 | inline void ModelProto_Node::clear_input_processing_time_sum() { |
1437 | input_processing_time_sum_ = 0; |
1438 | } |
1439 | inline double ModelProto_Node::input_processing_time_sum() const { |
1440 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.input_processing_time_sum) |
1441 | return input_processing_time_sum_; |
1442 | } |
1443 | inline void ModelProto_Node::set_input_processing_time_sum(double value) { |
1444 | |
1445 | input_processing_time_sum_ = value; |
1446 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.input_processing_time_sum) |
1447 | } |
1448 | |
1449 | // int64 input_processing_time_count = 13; |
1450 | inline void ModelProto_Node::clear_input_processing_time_count() { |
1451 | input_processing_time_count_ = PROTOBUF_LONGLONG(0); |
1452 | } |
1453 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::input_processing_time_count() const { |
1454 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.input_processing_time_count) |
1455 | return input_processing_time_count_; |
1456 | } |
1457 | inline void ModelProto_Node::set_input_processing_time_count(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1458 | |
1459 | input_processing_time_count_ = value; |
1460 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.input_processing_time_count) |
1461 | } |
1462 | |
1463 | // repeated int64 inputs = 14; |
1464 | inline int ModelProto_Node::inputs_size() const { |
1465 | return inputs_.size(); |
1466 | } |
1467 | inline void ModelProto_Node::clear_inputs() { |
1468 | inputs_.Clear(); |
1469 | } |
1470 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_Node::inputs(int index) const { |
1471 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.inputs) |
1472 | return inputs_.Get(index); |
1473 | } |
1474 | inline void ModelProto_Node::set_inputs(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { |
1475 | inputs_.Set(index, value); |
1476 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.inputs) |
1477 | } |
1478 | inline void ModelProto_Node::add_inputs(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1479 | inputs_.Add(value); |
1480 | // @@protoc_insertion_point(field_add:tensorflow.data.model.ModelProto.Node.inputs) |
1481 | } |
1482 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
1483 | ModelProto_Node::inputs() const { |
1484 | // @@protoc_insertion_point(field_list:tensorflow.data.model.ModelProto.Node.inputs) |
1485 | return inputs_; |
1486 | } |
1487 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
1488 | ModelProto_Node::mutable_inputs() { |
1489 | // @@protoc_insertion_point(field_mutable_list:tensorflow.data.model.ModelProto.Node.inputs) |
1490 | return &inputs_; |
1491 | } |
1492 | |
1493 | // .tensorflow.data.model.NodeClass node_class = 15; |
1494 | inline void ModelProto_Node::clear_node_class() { |
1495 | node_class_ = 0; |
1496 | } |
1497 | inline ::tensorflow::data::model::NodeClass ModelProto_Node::node_class() const { |
1498 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.node_class) |
1499 | return static_cast< ::tensorflow::data::model::NodeClass >(node_class_); |
1500 | } |
1501 | inline void ModelProto_Node::set_node_class(::tensorflow::data::model::NodeClass value) { |
1502 | |
1503 | node_class_ = value; |
1504 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.node_class) |
1505 | } |
1506 | |
1507 | // double ratio = 16; |
1508 | inline void ModelProto_Node::clear_ratio() { |
1509 | ratio_ = 0; |
1510 | } |
1511 | inline double ModelProto_Node::ratio() const { |
1512 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.ratio) |
1513 | return ratio_; |
1514 | } |
1515 | inline void ModelProto_Node::set_ratio(double value) { |
1516 | |
1517 | ratio_ = value; |
1518 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.ratio) |
1519 | } |
1520 | |
1521 | // double memory_ratio = 17; |
1522 | inline void ModelProto_Node::clear_memory_ratio() { |
1523 | memory_ratio_ = 0; |
1524 | } |
1525 | inline double ModelProto_Node::memory_ratio() const { |
1526 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.Node.memory_ratio) |
1527 | return memory_ratio_; |
1528 | } |
1529 | inline void ModelProto_Node::set_memory_ratio(double value) { |
1530 | |
1531 | memory_ratio_ = value; |
1532 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.Node.memory_ratio) |
1533 | } |
1534 | |
1535 | // ------------------------------------------------------------------- |
1536 | |
1537 | // ------------------------------------------------------------------- |
1538 | |
1539 | // ModelProto_OptimizationParams |
1540 | |
1541 | // .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; |
1542 | inline void ModelProto_OptimizationParams::clear_algorithm() { |
1543 | algorithm_ = 0; |
1544 | } |
1545 | inline ::tensorflow::data::model::AutotuneAlgorithm ModelProto_OptimizationParams::algorithm() const { |
1546 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.OptimizationParams.algorithm) |
1547 | return static_cast< ::tensorflow::data::model::AutotuneAlgorithm >(algorithm_); |
1548 | } |
1549 | inline void ModelProto_OptimizationParams::set_algorithm(::tensorflow::data::model::AutotuneAlgorithm value) { |
1550 | |
1551 | algorithm_ = value; |
1552 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.OptimizationParams.algorithm) |
1553 | } |
1554 | |
1555 | // int64 cpu_budget = 2; |
1556 | inline void ModelProto_OptimizationParams::clear_cpu_budget() { |
1557 | cpu_budget_ = PROTOBUF_LONGLONG(0); |
1558 | } |
1559 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_OptimizationParams::cpu_budget() const { |
1560 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.OptimizationParams.cpu_budget) |
1561 | return cpu_budget_; |
1562 | } |
1563 | inline void ModelProto_OptimizationParams::set_cpu_budget(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1564 | |
1565 | cpu_budget_ = value; |
1566 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.OptimizationParams.cpu_budget) |
1567 | } |
1568 | |
1569 | // int64 ram_budget = 3; |
1570 | inline void ModelProto_OptimizationParams::clear_ram_budget() { |
1571 | ram_budget_ = PROTOBUF_LONGLONG(0); |
1572 | } |
1573 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto_OptimizationParams::ram_budget() const { |
1574 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.OptimizationParams.ram_budget) |
1575 | return ram_budget_; |
1576 | } |
1577 | inline void ModelProto_OptimizationParams::set_ram_budget(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1578 | |
1579 | ram_budget_ = value; |
1580 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.OptimizationParams.ram_budget) |
1581 | } |
1582 | |
1583 | // double model_input_time = 4; |
1584 | inline void ModelProto_OptimizationParams::clear_model_input_time() { |
1585 | model_input_time_ = 0; |
1586 | } |
1587 | inline double ModelProto_OptimizationParams::model_input_time() const { |
1588 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.OptimizationParams.model_input_time) |
1589 | return model_input_time_; |
1590 | } |
1591 | inline void ModelProto_OptimizationParams::set_model_input_time(double value) { |
1592 | |
1593 | model_input_time_ = value; |
1594 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.OptimizationParams.model_input_time) |
1595 | } |
1596 | |
1597 | // ------------------------------------------------------------------- |
1598 | |
1599 | // ModelProto |
1600 | |
1601 | // map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; |
1602 | inline int ModelProto::nodes_size() const { |
1603 | return nodes_.size(); |
1604 | } |
1605 | inline void ModelProto::clear_nodes() { |
1606 | nodes_.Clear(); |
1607 | } |
1608 | inline const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node >& |
1609 | ModelProto::nodes() const { |
1610 | // @@protoc_insertion_point(field_map:tensorflow.data.model.ModelProto.nodes) |
1611 | return nodes_.GetMap(); |
1612 | } |
1613 | inline ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int64, ::tensorflow::data::model::ModelProto_Node >* |
1614 | ModelProto::mutable_nodes() { |
1615 | // @@protoc_insertion_point(field_mutable_map:tensorflow.data.model.ModelProto.nodes) |
1616 | return nodes_.MutableMap(); |
1617 | } |
1618 | |
1619 | // int64 output = 2; |
1620 | inline void ModelProto::clear_output() { |
1621 | output_ = PROTOBUF_LONGLONG(0); |
1622 | } |
1623 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::output() const { |
1624 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.output) |
1625 | return output_; |
1626 | } |
1627 | inline void ModelProto::set_output(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1628 | |
1629 | output_ = value; |
1630 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.output) |
1631 | } |
1632 | |
1633 | // int64 id_counter = 3; |
1634 | inline void ModelProto::clear_id_counter() { |
1635 | id_counter_ = PROTOBUF_LONGLONG(0); |
1636 | } |
1637 | inline ::PROTOBUF_NAMESPACE_ID::int64 ModelProto::id_counter() const { |
1638 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.id_counter) |
1639 | return id_counter_; |
1640 | } |
1641 | inline void ModelProto::set_id_counter(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1642 | |
1643 | id_counter_ = value; |
1644 | // @@protoc_insertion_point(field_set:tensorflow.data.model.ModelProto.id_counter) |
1645 | } |
1646 | |
1647 | // .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; |
1648 | inline bool ModelProto::has_optimization_params() const { |
1649 | return this != internal_default_instance() && optimization_params_ != nullptr; |
1650 | } |
1651 | inline void ModelProto::clear_optimization_params() { |
1652 | if (GetArenaNoVirtual() == nullptr && optimization_params_ != nullptr) { |
1653 | delete optimization_params_; |
1654 | } |
1655 | optimization_params_ = nullptr; |
1656 | } |
1657 | inline const ::tensorflow::data::model::ModelProto_OptimizationParams& ModelProto::optimization_params() const { |
1658 | const ::tensorflow::data::model::ModelProto_OptimizationParams* p = optimization_params_; |
1659 | // @@protoc_insertion_point(field_get:tensorflow.data.model.ModelProto.optimization_params) |
1660 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::data::model::ModelProto_OptimizationParams*>( |
1661 | &::tensorflow::data::model::_ModelProto_OptimizationParams_default_instance_); |
1662 | } |
1663 | inline ::tensorflow::data::model::ModelProto_OptimizationParams* ModelProto::release_optimization_params() { |
1664 | // @@protoc_insertion_point(field_release:tensorflow.data.model.ModelProto.optimization_params) |
1665 | |
1666 | ::tensorflow::data::model::ModelProto_OptimizationParams* temp = optimization_params_; |
1667 | if (GetArenaNoVirtual() != nullptr) { |
1668 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1669 | } |
1670 | optimization_params_ = nullptr; |
1671 | return temp; |
1672 | } |
1673 | inline ::tensorflow::data::model::ModelProto_OptimizationParams* ModelProto::unsafe_arena_release_optimization_params() { |
1674 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.data.model.ModelProto.optimization_params) |
1675 | |
1676 | ::tensorflow::data::model::ModelProto_OptimizationParams* temp = optimization_params_; |
1677 | optimization_params_ = nullptr; |
1678 | return temp; |
1679 | } |
1680 | inline ::tensorflow::data::model::ModelProto_OptimizationParams* ModelProto::mutable_optimization_params() { |
1681 | |
1682 | if (optimization_params_ == nullptr) { |
1683 | auto* p = CreateMaybeMessage<::tensorflow::data::model::ModelProto_OptimizationParams>(GetArenaNoVirtual()); |
1684 | optimization_params_ = p; |
1685 | } |
1686 | // @@protoc_insertion_point(field_mutable:tensorflow.data.model.ModelProto.optimization_params) |
1687 | return optimization_params_; |
1688 | } |
1689 | inline void ModelProto::set_allocated_optimization_params(::tensorflow::data::model::ModelProto_OptimizationParams* optimization_params) { |
1690 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1691 | if (message_arena == nullptr) { |
1692 | delete optimization_params_; |
1693 | } |
1694 | if (optimization_params) { |
1695 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1696 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(optimization_params); |
1697 | if (message_arena != submessage_arena) { |
1698 | optimization_params = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1699 | message_arena, optimization_params, submessage_arena); |
1700 | } |
1701 | |
1702 | } else { |
1703 | |
1704 | } |
1705 | optimization_params_ = optimization_params; |
1706 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.model.ModelProto.optimization_params) |
1707 | } |
1708 | |
1709 | #ifdef __GNUC__ |
1710 | #pragma GCC diagnostic pop |
1711 | #endif // __GNUC__ |
1712 | // ------------------------------------------------------------------- |
1713 | |
1714 | // ------------------------------------------------------------------- |
1715 | |
1716 | // ------------------------------------------------------------------- |
1717 | |
1718 | // ------------------------------------------------------------------- |
1719 | |
1720 | |
1721 | // @@protoc_insertion_point(namespace_scope) |
1722 | |
1723 | } // namespace model |
1724 | } // namespace data |
1725 | } // namespace tensorflow |
1726 | |
1727 | PROTOBUF_NAMESPACE_OPEN |
1728 | |
1729 | template <> struct is_proto_enum< ::tensorflow::data::model::NodeClass> : ::std::true_type {}; |
1730 | template <> |
1731 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::data::model::NodeClass>() { |
1732 | return ::tensorflow::data::model::NodeClass_descriptor(); |
1733 | } |
1734 | template <> struct is_proto_enum< ::tensorflow::data::model::AutotuneAlgorithm> : ::std::true_type {}; |
1735 | template <> |
1736 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::data::model::AutotuneAlgorithm>() { |
1737 | return ::tensorflow::data::model::AutotuneAlgorithm_descriptor(); |
1738 | } |
1739 | |
1740 | PROTOBUF_NAMESPACE_CLOSE |
1741 | |
1742 | // @@protoc_insertion_point(global_scope) |
1743 | |
1744 | #include <google/protobuf/port_undef.inc> |
1745 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fmodel_2eproto |
1746 | |