1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/bfc_memory_map.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_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 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto { |
46 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
47 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
57 | namespace tensorflow { |
58 | class BinSummary; |
59 | class BinSummaryDefaultTypeInternal; |
60 | extern BinSummaryDefaultTypeInternal _BinSummary_default_instance_; |
61 | class MemAllocatorStats; |
62 | class MemAllocatorStatsDefaultTypeInternal; |
63 | extern MemAllocatorStatsDefaultTypeInternal _MemAllocatorStats_default_instance_; |
64 | class MemChunk; |
65 | class MemChunkDefaultTypeInternal; |
66 | extern MemChunkDefaultTypeInternal _MemChunk_default_instance_; |
67 | class MemoryDump; |
68 | class MemoryDumpDefaultTypeInternal; |
69 | extern MemoryDumpDefaultTypeInternal _MemoryDump_default_instance_; |
70 | class SnapShot; |
71 | class SnapShotDefaultTypeInternal; |
72 | extern SnapShotDefaultTypeInternal _SnapShot_default_instance_; |
73 | } // namespace tensorflow |
74 | PROTOBUF_NAMESPACE_OPEN |
75 | template<> ::tensorflow::BinSummary* Arena::CreateMaybeMessage<::tensorflow::BinSummary>(Arena*); |
76 | template<> ::tensorflow::MemAllocatorStats* Arena::CreateMaybeMessage<::tensorflow::MemAllocatorStats>(Arena*); |
77 | template<> ::tensorflow::MemChunk* Arena::CreateMaybeMessage<::tensorflow::MemChunk>(Arena*); |
78 | template<> ::tensorflow::MemoryDump* Arena::CreateMaybeMessage<::tensorflow::MemoryDump>(Arena*); |
79 | template<> ::tensorflow::SnapShot* Arena::CreateMaybeMessage<::tensorflow::SnapShot>(Arena*); |
80 | PROTOBUF_NAMESPACE_CLOSE |
81 | namespace tensorflow { |
82 | |
83 | // =================================================================== |
84 | |
85 | class MemAllocatorStats : |
86 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemAllocatorStats) */ { |
87 | public: |
88 | MemAllocatorStats(); |
89 | virtual ~MemAllocatorStats(); |
90 | |
91 | MemAllocatorStats(const MemAllocatorStats& from); |
92 | MemAllocatorStats(MemAllocatorStats&& from) noexcept |
93 | : MemAllocatorStats() { |
94 | *this = ::std::move(from); |
95 | } |
96 | |
97 | inline MemAllocatorStats& operator=(const MemAllocatorStats& from) { |
98 | CopyFrom(from); |
99 | return *this; |
100 | } |
101 | inline MemAllocatorStats& operator=(MemAllocatorStats&& from) noexcept { |
102 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
103 | if (this != &from) InternalSwap(&from); |
104 | } else { |
105 | CopyFrom(from); |
106 | } |
107 | return *this; |
108 | } |
109 | |
110 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
111 | return GetDescriptor(); |
112 | } |
113 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
114 | return GetMetadataStatic().descriptor; |
115 | } |
116 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
117 | return GetMetadataStatic().reflection; |
118 | } |
119 | static const MemAllocatorStats& default_instance(); |
120 | |
121 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
122 | static inline const MemAllocatorStats* internal_default_instance() { |
123 | return reinterpret_cast<const MemAllocatorStats*>( |
124 | &_MemAllocatorStats_default_instance_); |
125 | } |
126 | static constexpr int kIndexInFileMessages = |
127 | 0; |
128 | |
129 | friend void swap(MemAllocatorStats& a, MemAllocatorStats& b) { |
130 | a.Swap(&b); |
131 | } |
132 | inline void Swap(MemAllocatorStats* other) { |
133 | if (other == this) return; |
134 | InternalSwap(other); |
135 | } |
136 | |
137 | // implements Message ---------------------------------------------- |
138 | |
139 | inline MemAllocatorStats* New() const final { |
140 | return CreateMaybeMessage<MemAllocatorStats>(nullptr); |
141 | } |
142 | |
143 | MemAllocatorStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
144 | return CreateMaybeMessage<MemAllocatorStats>(arena); |
145 | } |
146 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
147 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
148 | void CopyFrom(const MemAllocatorStats& from); |
149 | void MergeFrom(const MemAllocatorStats& from); |
150 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
151 | bool IsInitialized() const final; |
152 | |
153 | size_t ByteSizeLong() const final; |
154 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
155 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
156 | #else |
157 | bool MergePartialFromCodedStream( |
158 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
159 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
160 | void SerializeWithCachedSizes( |
161 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
162 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
163 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
164 | int GetCachedSize() const final { return _cached_size_.Get(); } |
165 | |
166 | private: |
167 | inline void SharedCtor(); |
168 | inline void SharedDtor(); |
169 | void SetCachedSize(int size) const final; |
170 | void InternalSwap(MemAllocatorStats* other); |
171 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
172 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
173 | return "tensorflow.MemAllocatorStats" ; |
174 | } |
175 | private: |
176 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
177 | return nullptr; |
178 | } |
179 | inline void* MaybeArenaPtr() const { |
180 | return nullptr; |
181 | } |
182 | public: |
183 | |
184 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
185 | private: |
186 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
187 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto); |
188 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto.file_level_metadata[kIndexInFileMessages]; |
189 | } |
190 | |
191 | public: |
192 | |
193 | // nested types ---------------------------------------------------- |
194 | |
195 | // accessors ------------------------------------------------------- |
196 | |
197 | enum : int { |
198 | kNumAllocsFieldNumber = 1, |
199 | kBytesInUseFieldNumber = 2, |
200 | kPeakBytesInUseFieldNumber = 3, |
201 | kLargestAllocSizeFieldNumber = 4, |
202 | kFragmentationMetricFieldNumber = 5, |
203 | }; |
204 | // int64 num_allocs = 1; |
205 | void clear_num_allocs(); |
206 | ::PROTOBUF_NAMESPACE_ID::int64 num_allocs() const; |
207 | void set_num_allocs(::PROTOBUF_NAMESPACE_ID::int64 value); |
208 | |
209 | // int64 bytes_in_use = 2; |
210 | void clear_bytes_in_use(); |
211 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_in_use() const; |
212 | void set_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value); |
213 | |
214 | // int64 peak_bytes_in_use = 3; |
215 | void clear_peak_bytes_in_use(); |
216 | ::PROTOBUF_NAMESPACE_ID::int64 peak_bytes_in_use() const; |
217 | void set_peak_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value); |
218 | |
219 | // int64 largest_alloc_size = 4; |
220 | void clear_largest_alloc_size(); |
221 | ::PROTOBUF_NAMESPACE_ID::int64 largest_alloc_size() const; |
222 | void set_largest_alloc_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
223 | |
224 | // float fragmentation_metric = 5; |
225 | void clear_fragmentation_metric(); |
226 | float fragmentation_metric() const; |
227 | void set_fragmentation_metric(float value); |
228 | |
229 | // @@protoc_insertion_point(class_scope:tensorflow.MemAllocatorStats) |
230 | private: |
231 | class _Internal; |
232 | |
233 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
234 | ::PROTOBUF_NAMESPACE_ID::int64 num_allocs_; |
235 | ::PROTOBUF_NAMESPACE_ID::int64 bytes_in_use_; |
236 | ::PROTOBUF_NAMESPACE_ID::int64 peak_bytes_in_use_; |
237 | ::PROTOBUF_NAMESPACE_ID::int64 largest_alloc_size_; |
238 | float fragmentation_metric_; |
239 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
240 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
241 | }; |
242 | // ------------------------------------------------------------------- |
243 | |
244 | class MemChunk : |
245 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemChunk) */ { |
246 | public: |
247 | MemChunk(); |
248 | virtual ~MemChunk(); |
249 | |
250 | MemChunk(const MemChunk& from); |
251 | MemChunk(MemChunk&& from) noexcept |
252 | : MemChunk() { |
253 | *this = ::std::move(from); |
254 | } |
255 | |
256 | inline MemChunk& operator=(const MemChunk& from) { |
257 | CopyFrom(from); |
258 | return *this; |
259 | } |
260 | inline MemChunk& operator=(MemChunk&& from) noexcept { |
261 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
262 | if (this != &from) InternalSwap(&from); |
263 | } else { |
264 | CopyFrom(from); |
265 | } |
266 | return *this; |
267 | } |
268 | |
269 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
270 | return GetDescriptor(); |
271 | } |
272 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
273 | return GetMetadataStatic().descriptor; |
274 | } |
275 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
276 | return GetMetadataStatic().reflection; |
277 | } |
278 | static const MemChunk& default_instance(); |
279 | |
280 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
281 | static inline const MemChunk* internal_default_instance() { |
282 | return reinterpret_cast<const MemChunk*>( |
283 | &_MemChunk_default_instance_); |
284 | } |
285 | static constexpr int kIndexInFileMessages = |
286 | 1; |
287 | |
288 | friend void swap(MemChunk& a, MemChunk& b) { |
289 | a.Swap(&b); |
290 | } |
291 | inline void Swap(MemChunk* other) { |
292 | if (other == this) return; |
293 | InternalSwap(other); |
294 | } |
295 | |
296 | // implements Message ---------------------------------------------- |
297 | |
298 | inline MemChunk* New() const final { |
299 | return CreateMaybeMessage<MemChunk>(nullptr); |
300 | } |
301 | |
302 | MemChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
303 | return CreateMaybeMessage<MemChunk>(arena); |
304 | } |
305 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
306 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
307 | void CopyFrom(const MemChunk& from); |
308 | void MergeFrom(const MemChunk& from); |
309 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
310 | bool IsInitialized() const final; |
311 | |
312 | size_t ByteSizeLong() const final; |
313 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
314 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
315 | #else |
316 | bool MergePartialFromCodedStream( |
317 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
318 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
319 | void SerializeWithCachedSizes( |
320 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
321 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
322 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
323 | int GetCachedSize() const final { return _cached_size_.Get(); } |
324 | |
325 | private: |
326 | inline void SharedCtor(); |
327 | inline void SharedDtor(); |
328 | void SetCachedSize(int size) const final; |
329 | void InternalSwap(MemChunk* other); |
330 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
331 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
332 | return "tensorflow.MemChunk" ; |
333 | } |
334 | private: |
335 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
336 | return nullptr; |
337 | } |
338 | inline void* MaybeArenaPtr() const { |
339 | return nullptr; |
340 | } |
341 | public: |
342 | |
343 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
344 | private: |
345 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
346 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto); |
347 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto.file_level_metadata[kIndexInFileMessages]; |
348 | } |
349 | |
350 | public: |
351 | |
352 | // nested types ---------------------------------------------------- |
353 | |
354 | // accessors ------------------------------------------------------- |
355 | |
356 | enum : int { |
357 | kOpNameFieldNumber = 5, |
358 | kAddressFieldNumber = 1, |
359 | kSizeFieldNumber = 2, |
360 | kRequestedSizeFieldNumber = 3, |
361 | kFreedAtCountFieldNumber = 6, |
362 | kBinFieldNumber = 4, |
363 | kInUseFieldNumber = 8, |
364 | kActionCountFieldNumber = 7, |
365 | kStepIdFieldNumber = 9, |
366 | }; |
367 | // string op_name = 5; |
368 | void clear_op_name(); |
369 | const std::string& op_name() const; |
370 | void set_op_name(const std::string& value); |
371 | void set_op_name(std::string&& value); |
372 | void set_op_name(const char* value); |
373 | void set_op_name(const char* value, size_t size); |
374 | std::string* mutable_op_name(); |
375 | std::string* release_op_name(); |
376 | void set_allocated_op_name(std::string* op_name); |
377 | |
378 | // uint64 address = 1; |
379 | void clear_address(); |
380 | ::PROTOBUF_NAMESPACE_ID::uint64 address() const; |
381 | void set_address(::PROTOBUF_NAMESPACE_ID::uint64 value); |
382 | |
383 | // int64 size = 2; |
384 | void clear_size(); |
385 | ::PROTOBUF_NAMESPACE_ID::int64 size() const; |
386 | void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
387 | |
388 | // int64 requested_size = 3; |
389 | void clear_requested_size(); |
390 | ::PROTOBUF_NAMESPACE_ID::int64 requested_size() const; |
391 | void set_requested_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
392 | |
393 | // uint64 freed_at_count = 6; |
394 | void clear_freed_at_count(); |
395 | ::PROTOBUF_NAMESPACE_ID::uint64 freed_at_count() const; |
396 | void set_freed_at_count(::PROTOBUF_NAMESPACE_ID::uint64 value); |
397 | |
398 | // int32 bin = 4; |
399 | void clear_bin(); |
400 | ::PROTOBUF_NAMESPACE_ID::int32 bin() const; |
401 | void set_bin(::PROTOBUF_NAMESPACE_ID::int32 value); |
402 | |
403 | // bool in_use = 8; |
404 | void clear_in_use(); |
405 | bool in_use() const; |
406 | void set_in_use(bool value); |
407 | |
408 | // uint64 action_count = 7; |
409 | void clear_action_count(); |
410 | ::PROTOBUF_NAMESPACE_ID::uint64 action_count() const; |
411 | void set_action_count(::PROTOBUF_NAMESPACE_ID::uint64 value); |
412 | |
413 | // uint64 step_id = 9; |
414 | void clear_step_id(); |
415 | ::PROTOBUF_NAMESPACE_ID::uint64 step_id() const; |
416 | void set_step_id(::PROTOBUF_NAMESPACE_ID::uint64 value); |
417 | |
418 | // @@protoc_insertion_point(class_scope:tensorflow.MemChunk) |
419 | private: |
420 | class _Internal; |
421 | |
422 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
423 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_name_; |
424 | ::PROTOBUF_NAMESPACE_ID::uint64 address_; |
425 | ::PROTOBUF_NAMESPACE_ID::int64 size_; |
426 | ::PROTOBUF_NAMESPACE_ID::int64 requested_size_; |
427 | ::PROTOBUF_NAMESPACE_ID::uint64 freed_at_count_; |
428 | ::PROTOBUF_NAMESPACE_ID::int32 bin_; |
429 | bool in_use_; |
430 | ::PROTOBUF_NAMESPACE_ID::uint64 action_count_; |
431 | ::PROTOBUF_NAMESPACE_ID::uint64 step_id_; |
432 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
433 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
434 | }; |
435 | // ------------------------------------------------------------------- |
436 | |
437 | class BinSummary : |
438 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.BinSummary) */ { |
439 | public: |
440 | BinSummary(); |
441 | virtual ~BinSummary(); |
442 | |
443 | BinSummary(const BinSummary& from); |
444 | BinSummary(BinSummary&& from) noexcept |
445 | : BinSummary() { |
446 | *this = ::std::move(from); |
447 | } |
448 | |
449 | inline BinSummary& operator=(const BinSummary& from) { |
450 | CopyFrom(from); |
451 | return *this; |
452 | } |
453 | inline BinSummary& operator=(BinSummary&& from) noexcept { |
454 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
455 | if (this != &from) InternalSwap(&from); |
456 | } else { |
457 | CopyFrom(from); |
458 | } |
459 | return *this; |
460 | } |
461 | |
462 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
463 | return GetDescriptor(); |
464 | } |
465 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
466 | return GetMetadataStatic().descriptor; |
467 | } |
468 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
469 | return GetMetadataStatic().reflection; |
470 | } |
471 | static const BinSummary& default_instance(); |
472 | |
473 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
474 | static inline const BinSummary* internal_default_instance() { |
475 | return reinterpret_cast<const BinSummary*>( |
476 | &_BinSummary_default_instance_); |
477 | } |
478 | static constexpr int kIndexInFileMessages = |
479 | 2; |
480 | |
481 | friend void swap(BinSummary& a, BinSummary& b) { |
482 | a.Swap(&b); |
483 | } |
484 | inline void Swap(BinSummary* other) { |
485 | if (other == this) return; |
486 | InternalSwap(other); |
487 | } |
488 | |
489 | // implements Message ---------------------------------------------- |
490 | |
491 | inline BinSummary* New() const final { |
492 | return CreateMaybeMessage<BinSummary>(nullptr); |
493 | } |
494 | |
495 | BinSummary* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
496 | return CreateMaybeMessage<BinSummary>(arena); |
497 | } |
498 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
499 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
500 | void CopyFrom(const BinSummary& from); |
501 | void MergeFrom(const BinSummary& from); |
502 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
503 | bool IsInitialized() const final; |
504 | |
505 | size_t ByteSizeLong() const final; |
506 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
507 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
508 | #else |
509 | bool MergePartialFromCodedStream( |
510 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
511 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
512 | void SerializeWithCachedSizes( |
513 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
514 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
515 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
516 | int GetCachedSize() const final { return _cached_size_.Get(); } |
517 | |
518 | private: |
519 | inline void SharedCtor(); |
520 | inline void SharedDtor(); |
521 | void SetCachedSize(int size) const final; |
522 | void InternalSwap(BinSummary* other); |
523 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
524 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
525 | return "tensorflow.BinSummary" ; |
526 | } |
527 | private: |
528 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
529 | return nullptr; |
530 | } |
531 | inline void* MaybeArenaPtr() const { |
532 | return nullptr; |
533 | } |
534 | public: |
535 | |
536 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
537 | private: |
538 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
539 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto); |
540 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto.file_level_metadata[kIndexInFileMessages]; |
541 | } |
542 | |
543 | public: |
544 | |
545 | // nested types ---------------------------------------------------- |
546 | |
547 | // accessors ------------------------------------------------------- |
548 | |
549 | enum : int { |
550 | kTotalBytesInUseFieldNumber = 2, |
551 | kTotalBytesInBinFieldNumber = 3, |
552 | kTotalChunksInUseFieldNumber = 4, |
553 | kTotalChunksInBinFieldNumber = 5, |
554 | kBinFieldNumber = 1, |
555 | }; |
556 | // int64 total_bytes_in_use = 2; |
557 | void clear_total_bytes_in_use(); |
558 | ::PROTOBUF_NAMESPACE_ID::int64 total_bytes_in_use() const; |
559 | void set_total_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value); |
560 | |
561 | // int64 total_bytes_in_bin = 3; |
562 | void clear_total_bytes_in_bin(); |
563 | ::PROTOBUF_NAMESPACE_ID::int64 total_bytes_in_bin() const; |
564 | void set_total_bytes_in_bin(::PROTOBUF_NAMESPACE_ID::int64 value); |
565 | |
566 | // int64 total_chunks_in_use = 4; |
567 | void clear_total_chunks_in_use(); |
568 | ::PROTOBUF_NAMESPACE_ID::int64 total_chunks_in_use() const; |
569 | void set_total_chunks_in_use(::PROTOBUF_NAMESPACE_ID::int64 value); |
570 | |
571 | // int64 total_chunks_in_bin = 5; |
572 | void clear_total_chunks_in_bin(); |
573 | ::PROTOBUF_NAMESPACE_ID::int64 total_chunks_in_bin() const; |
574 | void set_total_chunks_in_bin(::PROTOBUF_NAMESPACE_ID::int64 value); |
575 | |
576 | // int32 bin = 1; |
577 | void clear_bin(); |
578 | ::PROTOBUF_NAMESPACE_ID::int32 bin() const; |
579 | void set_bin(::PROTOBUF_NAMESPACE_ID::int32 value); |
580 | |
581 | // @@protoc_insertion_point(class_scope:tensorflow.BinSummary) |
582 | private: |
583 | class _Internal; |
584 | |
585 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
586 | ::PROTOBUF_NAMESPACE_ID::int64 total_bytes_in_use_; |
587 | ::PROTOBUF_NAMESPACE_ID::int64 total_bytes_in_bin_; |
588 | ::PROTOBUF_NAMESPACE_ID::int64 total_chunks_in_use_; |
589 | ::PROTOBUF_NAMESPACE_ID::int64 total_chunks_in_bin_; |
590 | ::PROTOBUF_NAMESPACE_ID::int32 bin_; |
591 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
592 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
593 | }; |
594 | // ------------------------------------------------------------------- |
595 | |
596 | class SnapShot : |
597 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SnapShot) */ { |
598 | public: |
599 | SnapShot(); |
600 | virtual ~SnapShot(); |
601 | |
602 | SnapShot(const SnapShot& from); |
603 | SnapShot(SnapShot&& from) noexcept |
604 | : SnapShot() { |
605 | *this = ::std::move(from); |
606 | } |
607 | |
608 | inline SnapShot& operator=(const SnapShot& from) { |
609 | CopyFrom(from); |
610 | return *this; |
611 | } |
612 | inline SnapShot& operator=(SnapShot&& from) noexcept { |
613 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
614 | if (this != &from) InternalSwap(&from); |
615 | } else { |
616 | CopyFrom(from); |
617 | } |
618 | return *this; |
619 | } |
620 | |
621 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
622 | return GetDescriptor(); |
623 | } |
624 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
625 | return GetMetadataStatic().descriptor; |
626 | } |
627 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
628 | return GetMetadataStatic().reflection; |
629 | } |
630 | static const SnapShot& default_instance(); |
631 | |
632 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
633 | static inline const SnapShot* internal_default_instance() { |
634 | return reinterpret_cast<const SnapShot*>( |
635 | &_SnapShot_default_instance_); |
636 | } |
637 | static constexpr int kIndexInFileMessages = |
638 | 3; |
639 | |
640 | friend void swap(SnapShot& a, SnapShot& b) { |
641 | a.Swap(&b); |
642 | } |
643 | inline void Swap(SnapShot* other) { |
644 | if (other == this) return; |
645 | InternalSwap(other); |
646 | } |
647 | |
648 | // implements Message ---------------------------------------------- |
649 | |
650 | inline SnapShot* New() const final { |
651 | return CreateMaybeMessage<SnapShot>(nullptr); |
652 | } |
653 | |
654 | SnapShot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
655 | return CreateMaybeMessage<SnapShot>(arena); |
656 | } |
657 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
658 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
659 | void CopyFrom(const SnapShot& from); |
660 | void MergeFrom(const SnapShot& from); |
661 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
662 | bool IsInitialized() const final; |
663 | |
664 | size_t ByteSizeLong() const final; |
665 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
666 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
667 | #else |
668 | bool MergePartialFromCodedStream( |
669 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
670 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
671 | void SerializeWithCachedSizes( |
672 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
673 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
674 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
675 | int GetCachedSize() const final { return _cached_size_.Get(); } |
676 | |
677 | private: |
678 | inline void SharedCtor(); |
679 | inline void SharedDtor(); |
680 | void SetCachedSize(int size) const final; |
681 | void InternalSwap(SnapShot* other); |
682 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
683 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
684 | return "tensorflow.SnapShot" ; |
685 | } |
686 | private: |
687 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
688 | return nullptr; |
689 | } |
690 | inline void* MaybeArenaPtr() const { |
691 | return nullptr; |
692 | } |
693 | public: |
694 | |
695 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
696 | private: |
697 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
698 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto); |
699 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto.file_level_metadata[kIndexInFileMessages]; |
700 | } |
701 | |
702 | public: |
703 | |
704 | // nested types ---------------------------------------------------- |
705 | |
706 | // accessors ------------------------------------------------------- |
707 | |
708 | enum : int { |
709 | kActionCountFieldNumber = 1, |
710 | kSizeFieldNumber = 2, |
711 | }; |
712 | // uint64 action_count = 1; |
713 | void clear_action_count(); |
714 | ::PROTOBUF_NAMESPACE_ID::uint64 action_count() const; |
715 | void set_action_count(::PROTOBUF_NAMESPACE_ID::uint64 value); |
716 | |
717 | // int64 size = 2; |
718 | void clear_size(); |
719 | ::PROTOBUF_NAMESPACE_ID::int64 size() const; |
720 | void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
721 | |
722 | // @@protoc_insertion_point(class_scope:tensorflow.SnapShot) |
723 | private: |
724 | class _Internal; |
725 | |
726 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
727 | ::PROTOBUF_NAMESPACE_ID::uint64 action_count_; |
728 | ::PROTOBUF_NAMESPACE_ID::int64 size_; |
729 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
730 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
731 | }; |
732 | // ------------------------------------------------------------------- |
733 | |
734 | class MemoryDump : |
735 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryDump) */ { |
736 | public: |
737 | MemoryDump(); |
738 | virtual ~MemoryDump(); |
739 | |
740 | MemoryDump(const MemoryDump& from); |
741 | MemoryDump(MemoryDump&& from) noexcept |
742 | : MemoryDump() { |
743 | *this = ::std::move(from); |
744 | } |
745 | |
746 | inline MemoryDump& operator=(const MemoryDump& from) { |
747 | CopyFrom(from); |
748 | return *this; |
749 | } |
750 | inline MemoryDump& operator=(MemoryDump&& from) noexcept { |
751 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
752 | if (this != &from) InternalSwap(&from); |
753 | } else { |
754 | CopyFrom(from); |
755 | } |
756 | return *this; |
757 | } |
758 | |
759 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
760 | return GetDescriptor(); |
761 | } |
762 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
763 | return GetMetadataStatic().descriptor; |
764 | } |
765 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
766 | return GetMetadataStatic().reflection; |
767 | } |
768 | static const MemoryDump& default_instance(); |
769 | |
770 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
771 | static inline const MemoryDump* internal_default_instance() { |
772 | return reinterpret_cast<const MemoryDump*>( |
773 | &_MemoryDump_default_instance_); |
774 | } |
775 | static constexpr int kIndexInFileMessages = |
776 | 4; |
777 | |
778 | friend void swap(MemoryDump& a, MemoryDump& b) { |
779 | a.Swap(&b); |
780 | } |
781 | inline void Swap(MemoryDump* other) { |
782 | if (other == this) return; |
783 | InternalSwap(other); |
784 | } |
785 | |
786 | // implements Message ---------------------------------------------- |
787 | |
788 | inline MemoryDump* New() const final { |
789 | return CreateMaybeMessage<MemoryDump>(nullptr); |
790 | } |
791 | |
792 | MemoryDump* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
793 | return CreateMaybeMessage<MemoryDump>(arena); |
794 | } |
795 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
796 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
797 | void CopyFrom(const MemoryDump& from); |
798 | void MergeFrom(const MemoryDump& from); |
799 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
800 | bool IsInitialized() const final; |
801 | |
802 | size_t ByteSizeLong() const final; |
803 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
804 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
805 | #else |
806 | bool MergePartialFromCodedStream( |
807 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
808 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
809 | void SerializeWithCachedSizes( |
810 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
811 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
812 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
813 | int GetCachedSize() const final { return _cached_size_.Get(); } |
814 | |
815 | private: |
816 | inline void SharedCtor(); |
817 | inline void SharedDtor(); |
818 | void SetCachedSize(int size) const final; |
819 | void InternalSwap(MemoryDump* other); |
820 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
821 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
822 | return "tensorflow.MemoryDump" ; |
823 | } |
824 | private: |
825 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
826 | return nullptr; |
827 | } |
828 | inline void* MaybeArenaPtr() const { |
829 | return nullptr; |
830 | } |
831 | public: |
832 | |
833 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
834 | private: |
835 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
836 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto); |
837 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto.file_level_metadata[kIndexInFileMessages]; |
838 | } |
839 | |
840 | public: |
841 | |
842 | // nested types ---------------------------------------------------- |
843 | |
844 | // accessors ------------------------------------------------------- |
845 | |
846 | enum : int { |
847 | kBinSummaryFieldNumber = 2, |
848 | kChunkFieldNumber = 3, |
849 | kSnapShotFieldNumber = 4, |
850 | kAllocatorNameFieldNumber = 1, |
851 | kStatsFieldNumber = 5, |
852 | }; |
853 | // repeated .tensorflow.BinSummary bin_summary = 2; |
854 | int bin_summary_size() const; |
855 | void clear_bin_summary(); |
856 | ::tensorflow::BinSummary* mutable_bin_summary(int index); |
857 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::BinSummary >* |
858 | mutable_bin_summary(); |
859 | const ::tensorflow::BinSummary& bin_summary(int index) const; |
860 | ::tensorflow::BinSummary* add_bin_summary(); |
861 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::BinSummary >& |
862 | bin_summary() const; |
863 | |
864 | // repeated .tensorflow.MemChunk chunk = 3; |
865 | int chunk_size() const; |
866 | void clear_chunk(); |
867 | ::tensorflow::MemChunk* mutable_chunk(int index); |
868 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MemChunk >* |
869 | mutable_chunk(); |
870 | const ::tensorflow::MemChunk& chunk(int index) const; |
871 | ::tensorflow::MemChunk* add_chunk(); |
872 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MemChunk >& |
873 | chunk() const; |
874 | |
875 | // repeated .tensorflow.SnapShot snap_shot = 4; |
876 | int snap_shot_size() const; |
877 | void clear_snap_shot(); |
878 | ::tensorflow::SnapShot* mutable_snap_shot(int index); |
879 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SnapShot >* |
880 | mutable_snap_shot(); |
881 | const ::tensorflow::SnapShot& snap_shot(int index) const; |
882 | ::tensorflow::SnapShot* add_snap_shot(); |
883 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SnapShot >& |
884 | snap_shot() const; |
885 | |
886 | // string allocator_name = 1; |
887 | void clear_allocator_name(); |
888 | const std::string& allocator_name() const; |
889 | void set_allocator_name(const std::string& value); |
890 | void set_allocator_name(std::string&& value); |
891 | void set_allocator_name(const char* value); |
892 | void set_allocator_name(const char* value, size_t size); |
893 | std::string* mutable_allocator_name(); |
894 | std::string* release_allocator_name(); |
895 | void set_allocated_allocator_name(std::string* allocator_name); |
896 | |
897 | // .tensorflow.MemAllocatorStats stats = 5; |
898 | bool has_stats() const; |
899 | void clear_stats(); |
900 | const ::tensorflow::MemAllocatorStats& stats() const; |
901 | ::tensorflow::MemAllocatorStats* release_stats(); |
902 | ::tensorflow::MemAllocatorStats* mutable_stats(); |
903 | void set_allocated_stats(::tensorflow::MemAllocatorStats* stats); |
904 | |
905 | // @@protoc_insertion_point(class_scope:tensorflow.MemoryDump) |
906 | private: |
907 | class _Internal; |
908 | |
909 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
910 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::BinSummary > bin_summary_; |
911 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MemChunk > chunk_; |
912 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SnapShot > snap_shot_; |
913 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr allocator_name_; |
914 | ::tensorflow::MemAllocatorStats* stats_; |
915 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
916 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto; |
917 | }; |
918 | // =================================================================== |
919 | |
920 | |
921 | // =================================================================== |
922 | |
923 | #ifdef __GNUC__ |
924 | #pragma GCC diagnostic push |
925 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
926 | #endif // __GNUC__ |
927 | // MemAllocatorStats |
928 | |
929 | // int64 num_allocs = 1; |
930 | inline void MemAllocatorStats::clear_num_allocs() { |
931 | num_allocs_ = PROTOBUF_LONGLONG(0); |
932 | } |
933 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemAllocatorStats::num_allocs() const { |
934 | // @@protoc_insertion_point(field_get:tensorflow.MemAllocatorStats.num_allocs) |
935 | return num_allocs_; |
936 | } |
937 | inline void MemAllocatorStats::set_num_allocs(::PROTOBUF_NAMESPACE_ID::int64 value) { |
938 | |
939 | num_allocs_ = value; |
940 | // @@protoc_insertion_point(field_set:tensorflow.MemAllocatorStats.num_allocs) |
941 | } |
942 | |
943 | // int64 bytes_in_use = 2; |
944 | inline void MemAllocatorStats::clear_bytes_in_use() { |
945 | bytes_in_use_ = PROTOBUF_LONGLONG(0); |
946 | } |
947 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemAllocatorStats::bytes_in_use() const { |
948 | // @@protoc_insertion_point(field_get:tensorflow.MemAllocatorStats.bytes_in_use) |
949 | return bytes_in_use_; |
950 | } |
951 | inline void MemAllocatorStats::set_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value) { |
952 | |
953 | bytes_in_use_ = value; |
954 | // @@protoc_insertion_point(field_set:tensorflow.MemAllocatorStats.bytes_in_use) |
955 | } |
956 | |
957 | // int64 peak_bytes_in_use = 3; |
958 | inline void MemAllocatorStats::clear_peak_bytes_in_use() { |
959 | peak_bytes_in_use_ = PROTOBUF_LONGLONG(0); |
960 | } |
961 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemAllocatorStats::peak_bytes_in_use() const { |
962 | // @@protoc_insertion_point(field_get:tensorflow.MemAllocatorStats.peak_bytes_in_use) |
963 | return peak_bytes_in_use_; |
964 | } |
965 | inline void MemAllocatorStats::set_peak_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value) { |
966 | |
967 | peak_bytes_in_use_ = value; |
968 | // @@protoc_insertion_point(field_set:tensorflow.MemAllocatorStats.peak_bytes_in_use) |
969 | } |
970 | |
971 | // int64 largest_alloc_size = 4; |
972 | inline void MemAllocatorStats::clear_largest_alloc_size() { |
973 | largest_alloc_size_ = PROTOBUF_LONGLONG(0); |
974 | } |
975 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemAllocatorStats::largest_alloc_size() const { |
976 | // @@protoc_insertion_point(field_get:tensorflow.MemAllocatorStats.largest_alloc_size) |
977 | return largest_alloc_size_; |
978 | } |
979 | inline void MemAllocatorStats::set_largest_alloc_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
980 | |
981 | largest_alloc_size_ = value; |
982 | // @@protoc_insertion_point(field_set:tensorflow.MemAllocatorStats.largest_alloc_size) |
983 | } |
984 | |
985 | // float fragmentation_metric = 5; |
986 | inline void MemAllocatorStats::clear_fragmentation_metric() { |
987 | fragmentation_metric_ = 0; |
988 | } |
989 | inline float MemAllocatorStats::fragmentation_metric() const { |
990 | // @@protoc_insertion_point(field_get:tensorflow.MemAllocatorStats.fragmentation_metric) |
991 | return fragmentation_metric_; |
992 | } |
993 | inline void MemAllocatorStats::set_fragmentation_metric(float value) { |
994 | |
995 | fragmentation_metric_ = value; |
996 | // @@protoc_insertion_point(field_set:tensorflow.MemAllocatorStats.fragmentation_metric) |
997 | } |
998 | |
999 | // ------------------------------------------------------------------- |
1000 | |
1001 | // MemChunk |
1002 | |
1003 | // uint64 address = 1; |
1004 | inline void MemChunk::clear_address() { |
1005 | address_ = PROTOBUF_ULONGLONG(0); |
1006 | } |
1007 | inline ::PROTOBUF_NAMESPACE_ID::uint64 MemChunk::address() const { |
1008 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.address) |
1009 | return address_; |
1010 | } |
1011 | inline void MemChunk::set_address(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
1012 | |
1013 | address_ = value; |
1014 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.address) |
1015 | } |
1016 | |
1017 | // int64 size = 2; |
1018 | inline void MemChunk::clear_size() { |
1019 | size_ = PROTOBUF_LONGLONG(0); |
1020 | } |
1021 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemChunk::size() const { |
1022 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.size) |
1023 | return size_; |
1024 | } |
1025 | inline void MemChunk::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1026 | |
1027 | size_ = value; |
1028 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.size) |
1029 | } |
1030 | |
1031 | // int64 requested_size = 3; |
1032 | inline void MemChunk::clear_requested_size() { |
1033 | requested_size_ = PROTOBUF_LONGLONG(0); |
1034 | } |
1035 | inline ::PROTOBUF_NAMESPACE_ID::int64 MemChunk::requested_size() const { |
1036 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.requested_size) |
1037 | return requested_size_; |
1038 | } |
1039 | inline void MemChunk::set_requested_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1040 | |
1041 | requested_size_ = value; |
1042 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.requested_size) |
1043 | } |
1044 | |
1045 | // int32 bin = 4; |
1046 | inline void MemChunk::clear_bin() { |
1047 | bin_ = 0; |
1048 | } |
1049 | inline ::PROTOBUF_NAMESPACE_ID::int32 MemChunk::bin() const { |
1050 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.bin) |
1051 | return bin_; |
1052 | } |
1053 | inline void MemChunk::set_bin(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1054 | |
1055 | bin_ = value; |
1056 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.bin) |
1057 | } |
1058 | |
1059 | // string op_name = 5; |
1060 | inline void MemChunk::clear_op_name() { |
1061 | op_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1062 | } |
1063 | inline const std::string& MemChunk::op_name() const { |
1064 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.op_name) |
1065 | return op_name_.GetNoArena(); |
1066 | } |
1067 | inline void MemChunk::set_op_name(const std::string& value) { |
1068 | |
1069 | op_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
1070 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.op_name) |
1071 | } |
1072 | inline void MemChunk::set_op_name(std::string&& value) { |
1073 | |
1074 | op_name_.SetNoArena( |
1075 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1076 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemChunk.op_name) |
1077 | } |
1078 | inline void MemChunk::set_op_name(const char* value) { |
1079 | GOOGLE_DCHECK(value != nullptr); |
1080 | |
1081 | op_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1082 | // @@protoc_insertion_point(field_set_char:tensorflow.MemChunk.op_name) |
1083 | } |
1084 | inline void MemChunk::set_op_name(const char* value, size_t size) { |
1085 | |
1086 | op_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1087 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1088 | // @@protoc_insertion_point(field_set_pointer:tensorflow.MemChunk.op_name) |
1089 | } |
1090 | inline std::string* MemChunk::mutable_op_name() { |
1091 | |
1092 | // @@protoc_insertion_point(field_mutable:tensorflow.MemChunk.op_name) |
1093 | return op_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1094 | } |
1095 | inline std::string* MemChunk::release_op_name() { |
1096 | // @@protoc_insertion_point(field_release:tensorflow.MemChunk.op_name) |
1097 | |
1098 | return op_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1099 | } |
1100 | inline void MemChunk::set_allocated_op_name(std::string* op_name) { |
1101 | if (op_name != nullptr) { |
1102 | |
1103 | } else { |
1104 | |
1105 | } |
1106 | op_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op_name); |
1107 | // @@protoc_insertion_point(field_set_allocated:tensorflow.MemChunk.op_name) |
1108 | } |
1109 | |
1110 | // uint64 freed_at_count = 6; |
1111 | inline void MemChunk::clear_freed_at_count() { |
1112 | freed_at_count_ = PROTOBUF_ULONGLONG(0); |
1113 | } |
1114 | inline ::PROTOBUF_NAMESPACE_ID::uint64 MemChunk::freed_at_count() const { |
1115 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.freed_at_count) |
1116 | return freed_at_count_; |
1117 | } |
1118 | inline void MemChunk::set_freed_at_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
1119 | |
1120 | freed_at_count_ = value; |
1121 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.freed_at_count) |
1122 | } |
1123 | |
1124 | // uint64 action_count = 7; |
1125 | inline void MemChunk::clear_action_count() { |
1126 | action_count_ = PROTOBUF_ULONGLONG(0); |
1127 | } |
1128 | inline ::PROTOBUF_NAMESPACE_ID::uint64 MemChunk::action_count() const { |
1129 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.action_count) |
1130 | return action_count_; |
1131 | } |
1132 | inline void MemChunk::set_action_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
1133 | |
1134 | action_count_ = value; |
1135 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.action_count) |
1136 | } |
1137 | |
1138 | // bool in_use = 8; |
1139 | inline void MemChunk::clear_in_use() { |
1140 | in_use_ = false; |
1141 | } |
1142 | inline bool MemChunk::in_use() const { |
1143 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.in_use) |
1144 | return in_use_; |
1145 | } |
1146 | inline void MemChunk::set_in_use(bool value) { |
1147 | |
1148 | in_use_ = value; |
1149 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.in_use) |
1150 | } |
1151 | |
1152 | // uint64 step_id = 9; |
1153 | inline void MemChunk::clear_step_id() { |
1154 | step_id_ = PROTOBUF_ULONGLONG(0); |
1155 | } |
1156 | inline ::PROTOBUF_NAMESPACE_ID::uint64 MemChunk::step_id() const { |
1157 | // @@protoc_insertion_point(field_get:tensorflow.MemChunk.step_id) |
1158 | return step_id_; |
1159 | } |
1160 | inline void MemChunk::set_step_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
1161 | |
1162 | step_id_ = value; |
1163 | // @@protoc_insertion_point(field_set:tensorflow.MemChunk.step_id) |
1164 | } |
1165 | |
1166 | // ------------------------------------------------------------------- |
1167 | |
1168 | // BinSummary |
1169 | |
1170 | // int32 bin = 1; |
1171 | inline void BinSummary::clear_bin() { |
1172 | bin_ = 0; |
1173 | } |
1174 | inline ::PROTOBUF_NAMESPACE_ID::int32 BinSummary::bin() const { |
1175 | // @@protoc_insertion_point(field_get:tensorflow.BinSummary.bin) |
1176 | return bin_; |
1177 | } |
1178 | inline void BinSummary::set_bin(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1179 | |
1180 | bin_ = value; |
1181 | // @@protoc_insertion_point(field_set:tensorflow.BinSummary.bin) |
1182 | } |
1183 | |
1184 | // int64 total_bytes_in_use = 2; |
1185 | inline void BinSummary::clear_total_bytes_in_use() { |
1186 | total_bytes_in_use_ = PROTOBUF_LONGLONG(0); |
1187 | } |
1188 | inline ::PROTOBUF_NAMESPACE_ID::int64 BinSummary::total_bytes_in_use() const { |
1189 | // @@protoc_insertion_point(field_get:tensorflow.BinSummary.total_bytes_in_use) |
1190 | return total_bytes_in_use_; |
1191 | } |
1192 | inline void BinSummary::set_total_bytes_in_use(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1193 | |
1194 | total_bytes_in_use_ = value; |
1195 | // @@protoc_insertion_point(field_set:tensorflow.BinSummary.total_bytes_in_use) |
1196 | } |
1197 | |
1198 | // int64 total_bytes_in_bin = 3; |
1199 | inline void BinSummary::clear_total_bytes_in_bin() { |
1200 | total_bytes_in_bin_ = PROTOBUF_LONGLONG(0); |
1201 | } |
1202 | inline ::PROTOBUF_NAMESPACE_ID::int64 BinSummary::total_bytes_in_bin() const { |
1203 | // @@protoc_insertion_point(field_get:tensorflow.BinSummary.total_bytes_in_bin) |
1204 | return total_bytes_in_bin_; |
1205 | } |
1206 | inline void BinSummary::set_total_bytes_in_bin(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1207 | |
1208 | total_bytes_in_bin_ = value; |
1209 | // @@protoc_insertion_point(field_set:tensorflow.BinSummary.total_bytes_in_bin) |
1210 | } |
1211 | |
1212 | // int64 total_chunks_in_use = 4; |
1213 | inline void BinSummary::clear_total_chunks_in_use() { |
1214 | total_chunks_in_use_ = PROTOBUF_LONGLONG(0); |
1215 | } |
1216 | inline ::PROTOBUF_NAMESPACE_ID::int64 BinSummary::total_chunks_in_use() const { |
1217 | // @@protoc_insertion_point(field_get:tensorflow.BinSummary.total_chunks_in_use) |
1218 | return total_chunks_in_use_; |
1219 | } |
1220 | inline void BinSummary::set_total_chunks_in_use(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1221 | |
1222 | total_chunks_in_use_ = value; |
1223 | // @@protoc_insertion_point(field_set:tensorflow.BinSummary.total_chunks_in_use) |
1224 | } |
1225 | |
1226 | // int64 total_chunks_in_bin = 5; |
1227 | inline void BinSummary::clear_total_chunks_in_bin() { |
1228 | total_chunks_in_bin_ = PROTOBUF_LONGLONG(0); |
1229 | } |
1230 | inline ::PROTOBUF_NAMESPACE_ID::int64 BinSummary::total_chunks_in_bin() const { |
1231 | // @@protoc_insertion_point(field_get:tensorflow.BinSummary.total_chunks_in_bin) |
1232 | return total_chunks_in_bin_; |
1233 | } |
1234 | inline void BinSummary::set_total_chunks_in_bin(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1235 | |
1236 | total_chunks_in_bin_ = value; |
1237 | // @@protoc_insertion_point(field_set:tensorflow.BinSummary.total_chunks_in_bin) |
1238 | } |
1239 | |
1240 | // ------------------------------------------------------------------- |
1241 | |
1242 | // SnapShot |
1243 | |
1244 | // uint64 action_count = 1; |
1245 | inline void SnapShot::clear_action_count() { |
1246 | action_count_ = PROTOBUF_ULONGLONG(0); |
1247 | } |
1248 | inline ::PROTOBUF_NAMESPACE_ID::uint64 SnapShot::action_count() const { |
1249 | // @@protoc_insertion_point(field_get:tensorflow.SnapShot.action_count) |
1250 | return action_count_; |
1251 | } |
1252 | inline void SnapShot::set_action_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
1253 | |
1254 | action_count_ = value; |
1255 | // @@protoc_insertion_point(field_set:tensorflow.SnapShot.action_count) |
1256 | } |
1257 | |
1258 | // int64 size = 2; |
1259 | inline void SnapShot::clear_size() { |
1260 | size_ = PROTOBUF_LONGLONG(0); |
1261 | } |
1262 | inline ::PROTOBUF_NAMESPACE_ID::int64 SnapShot::size() const { |
1263 | // @@protoc_insertion_point(field_get:tensorflow.SnapShot.size) |
1264 | return size_; |
1265 | } |
1266 | inline void SnapShot::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1267 | |
1268 | size_ = value; |
1269 | // @@protoc_insertion_point(field_set:tensorflow.SnapShot.size) |
1270 | } |
1271 | |
1272 | // ------------------------------------------------------------------- |
1273 | |
1274 | // MemoryDump |
1275 | |
1276 | // string allocator_name = 1; |
1277 | inline void MemoryDump::clear_allocator_name() { |
1278 | allocator_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1279 | } |
1280 | inline const std::string& MemoryDump::allocator_name() const { |
1281 | // @@protoc_insertion_point(field_get:tensorflow.MemoryDump.allocator_name) |
1282 | return allocator_name_.GetNoArena(); |
1283 | } |
1284 | inline void MemoryDump::set_allocator_name(const std::string& value) { |
1285 | |
1286 | allocator_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
1287 | // @@protoc_insertion_point(field_set:tensorflow.MemoryDump.allocator_name) |
1288 | } |
1289 | inline void MemoryDump::set_allocator_name(std::string&& value) { |
1290 | |
1291 | allocator_name_.SetNoArena( |
1292 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1293 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryDump.allocator_name) |
1294 | } |
1295 | inline void MemoryDump::set_allocator_name(const char* value) { |
1296 | GOOGLE_DCHECK(value != nullptr); |
1297 | |
1298 | allocator_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1299 | // @@protoc_insertion_point(field_set_char:tensorflow.MemoryDump.allocator_name) |
1300 | } |
1301 | inline void MemoryDump::set_allocator_name(const char* value, size_t size) { |
1302 | |
1303 | allocator_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1304 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1305 | // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryDump.allocator_name) |
1306 | } |
1307 | inline std::string* MemoryDump::mutable_allocator_name() { |
1308 | |
1309 | // @@protoc_insertion_point(field_mutable:tensorflow.MemoryDump.allocator_name) |
1310 | return allocator_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1311 | } |
1312 | inline std::string* MemoryDump::release_allocator_name() { |
1313 | // @@protoc_insertion_point(field_release:tensorflow.MemoryDump.allocator_name) |
1314 | |
1315 | return allocator_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1316 | } |
1317 | inline void MemoryDump::set_allocated_allocator_name(std::string* allocator_name) { |
1318 | if (allocator_name != nullptr) { |
1319 | |
1320 | } else { |
1321 | |
1322 | } |
1323 | allocator_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), allocator_name); |
1324 | // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryDump.allocator_name) |
1325 | } |
1326 | |
1327 | // repeated .tensorflow.BinSummary bin_summary = 2; |
1328 | inline int MemoryDump::bin_summary_size() const { |
1329 | return bin_summary_.size(); |
1330 | } |
1331 | inline void MemoryDump::clear_bin_summary() { |
1332 | bin_summary_.Clear(); |
1333 | } |
1334 | inline ::tensorflow::BinSummary* MemoryDump::mutable_bin_summary(int index) { |
1335 | // @@protoc_insertion_point(field_mutable:tensorflow.MemoryDump.bin_summary) |
1336 | return bin_summary_.Mutable(index); |
1337 | } |
1338 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::BinSummary >* |
1339 | MemoryDump::mutable_bin_summary() { |
1340 | // @@protoc_insertion_point(field_mutable_list:tensorflow.MemoryDump.bin_summary) |
1341 | return &bin_summary_; |
1342 | } |
1343 | inline const ::tensorflow::BinSummary& MemoryDump::bin_summary(int index) const { |
1344 | // @@protoc_insertion_point(field_get:tensorflow.MemoryDump.bin_summary) |
1345 | return bin_summary_.Get(index); |
1346 | } |
1347 | inline ::tensorflow::BinSummary* MemoryDump::add_bin_summary() { |
1348 | // @@protoc_insertion_point(field_add:tensorflow.MemoryDump.bin_summary) |
1349 | return bin_summary_.Add(); |
1350 | } |
1351 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::BinSummary >& |
1352 | MemoryDump::bin_summary() const { |
1353 | // @@protoc_insertion_point(field_list:tensorflow.MemoryDump.bin_summary) |
1354 | return bin_summary_; |
1355 | } |
1356 | |
1357 | // repeated .tensorflow.MemChunk chunk = 3; |
1358 | inline int MemoryDump::chunk_size() const { |
1359 | return chunk_.size(); |
1360 | } |
1361 | inline void MemoryDump::clear_chunk() { |
1362 | chunk_.Clear(); |
1363 | } |
1364 | inline ::tensorflow::MemChunk* MemoryDump::mutable_chunk(int index) { |
1365 | // @@protoc_insertion_point(field_mutable:tensorflow.MemoryDump.chunk) |
1366 | return chunk_.Mutable(index); |
1367 | } |
1368 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MemChunk >* |
1369 | MemoryDump::mutable_chunk() { |
1370 | // @@protoc_insertion_point(field_mutable_list:tensorflow.MemoryDump.chunk) |
1371 | return &chunk_; |
1372 | } |
1373 | inline const ::tensorflow::MemChunk& MemoryDump::chunk(int index) const { |
1374 | // @@protoc_insertion_point(field_get:tensorflow.MemoryDump.chunk) |
1375 | return chunk_.Get(index); |
1376 | } |
1377 | inline ::tensorflow::MemChunk* MemoryDump::add_chunk() { |
1378 | // @@protoc_insertion_point(field_add:tensorflow.MemoryDump.chunk) |
1379 | return chunk_.Add(); |
1380 | } |
1381 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MemChunk >& |
1382 | MemoryDump::chunk() const { |
1383 | // @@protoc_insertion_point(field_list:tensorflow.MemoryDump.chunk) |
1384 | return chunk_; |
1385 | } |
1386 | |
1387 | // repeated .tensorflow.SnapShot snap_shot = 4; |
1388 | inline int MemoryDump::snap_shot_size() const { |
1389 | return snap_shot_.size(); |
1390 | } |
1391 | inline void MemoryDump::clear_snap_shot() { |
1392 | snap_shot_.Clear(); |
1393 | } |
1394 | inline ::tensorflow::SnapShot* MemoryDump::mutable_snap_shot(int index) { |
1395 | // @@protoc_insertion_point(field_mutable:tensorflow.MemoryDump.snap_shot) |
1396 | return snap_shot_.Mutable(index); |
1397 | } |
1398 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SnapShot >* |
1399 | MemoryDump::mutable_snap_shot() { |
1400 | // @@protoc_insertion_point(field_mutable_list:tensorflow.MemoryDump.snap_shot) |
1401 | return &snap_shot_; |
1402 | } |
1403 | inline const ::tensorflow::SnapShot& MemoryDump::snap_shot(int index) const { |
1404 | // @@protoc_insertion_point(field_get:tensorflow.MemoryDump.snap_shot) |
1405 | return snap_shot_.Get(index); |
1406 | } |
1407 | inline ::tensorflow::SnapShot* MemoryDump::add_snap_shot() { |
1408 | // @@protoc_insertion_point(field_add:tensorflow.MemoryDump.snap_shot) |
1409 | return snap_shot_.Add(); |
1410 | } |
1411 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SnapShot >& |
1412 | MemoryDump::snap_shot() const { |
1413 | // @@protoc_insertion_point(field_list:tensorflow.MemoryDump.snap_shot) |
1414 | return snap_shot_; |
1415 | } |
1416 | |
1417 | // .tensorflow.MemAllocatorStats stats = 5; |
1418 | inline bool MemoryDump::has_stats() const { |
1419 | return this != internal_default_instance() && stats_ != nullptr; |
1420 | } |
1421 | inline void MemoryDump::clear_stats() { |
1422 | if (GetArenaNoVirtual() == nullptr && stats_ != nullptr) { |
1423 | delete stats_; |
1424 | } |
1425 | stats_ = nullptr; |
1426 | } |
1427 | inline const ::tensorflow::MemAllocatorStats& MemoryDump::stats() const { |
1428 | const ::tensorflow::MemAllocatorStats* p = stats_; |
1429 | // @@protoc_insertion_point(field_get:tensorflow.MemoryDump.stats) |
1430 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::MemAllocatorStats*>( |
1431 | &::tensorflow::_MemAllocatorStats_default_instance_); |
1432 | } |
1433 | inline ::tensorflow::MemAllocatorStats* MemoryDump::release_stats() { |
1434 | // @@protoc_insertion_point(field_release:tensorflow.MemoryDump.stats) |
1435 | |
1436 | ::tensorflow::MemAllocatorStats* temp = stats_; |
1437 | stats_ = nullptr; |
1438 | return temp; |
1439 | } |
1440 | inline ::tensorflow::MemAllocatorStats* MemoryDump::mutable_stats() { |
1441 | |
1442 | if (stats_ == nullptr) { |
1443 | auto* p = CreateMaybeMessage<::tensorflow::MemAllocatorStats>(GetArenaNoVirtual()); |
1444 | stats_ = p; |
1445 | } |
1446 | // @@protoc_insertion_point(field_mutable:tensorflow.MemoryDump.stats) |
1447 | return stats_; |
1448 | } |
1449 | inline void MemoryDump::set_allocated_stats(::tensorflow::MemAllocatorStats* stats) { |
1450 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1451 | if (message_arena == nullptr) { |
1452 | delete stats_; |
1453 | } |
1454 | if (stats) { |
1455 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
1456 | if (message_arena != submessage_arena) { |
1457 | stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1458 | message_arena, stats, submessage_arena); |
1459 | } |
1460 | |
1461 | } else { |
1462 | |
1463 | } |
1464 | stats_ = stats; |
1465 | // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryDump.stats) |
1466 | } |
1467 | |
1468 | #ifdef __GNUC__ |
1469 | #pragma GCC diagnostic pop |
1470 | #endif // __GNUC__ |
1471 | // ------------------------------------------------------------------- |
1472 | |
1473 | // ------------------------------------------------------------------- |
1474 | |
1475 | // ------------------------------------------------------------------- |
1476 | |
1477 | // ------------------------------------------------------------------- |
1478 | |
1479 | |
1480 | // @@protoc_insertion_point(namespace_scope) |
1481 | |
1482 | } // namespace tensorflow |
1483 | |
1484 | // @@protoc_insertion_point(global_scope) |
1485 | |
1486 | #include <google/protobuf/port_undef.inc> |
1487 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fbfc_5fmemory_5fmap_2eproto |
1488 | |