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