1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/profiler/tfprof_output.proto |
3 | |
4 | #include "tensorflow/core/profiler/tfprof_output.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
21 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
22 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
23 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
24 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto; |
25 | namespace tensorflow { |
26 | namespace tfprof { |
27 | class TFProfTensorProtoDefaultTypeInternal { |
28 | public: |
29 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TFProfTensorProto> _instance; |
30 | } _TFProfTensorProto_default_instance_; |
31 | class GraphNodeProto_InputShapesEntry_DoNotUseDefaultTypeInternal { |
32 | public: |
33 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphNodeProto_InputShapesEntry_DoNotUse> _instance; |
34 | } _GraphNodeProto_InputShapesEntry_DoNotUse_default_instance_; |
35 | class GraphNodeProtoDefaultTypeInternal { |
36 | public: |
37 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GraphNodeProto> _instance; |
38 | } _GraphNodeProto_default_instance_; |
39 | class MultiGraphNodeProtoDefaultTypeInternal { |
40 | public: |
41 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MultiGraphNodeProto> _instance; |
42 | } _MultiGraphNodeProto_default_instance_; |
43 | class AdviceProto_CheckersEntry_DoNotUseDefaultTypeInternal { |
44 | public: |
45 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdviceProto_CheckersEntry_DoNotUse> _instance; |
46 | } _AdviceProto_CheckersEntry_DoNotUse_default_instance_; |
47 | class AdviceProto_CheckerDefaultTypeInternal { |
48 | public: |
49 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdviceProto_Checker> _instance; |
50 | } _AdviceProto_Checker_default_instance_; |
51 | class AdviceProtoDefaultTypeInternal { |
52 | public: |
53 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdviceProto> _instance; |
54 | } _AdviceProto_default_instance_; |
55 | } // namespace tfprof |
56 | } // namespace tensorflow |
57 | static void InitDefaultsscc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
58 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
59 | |
60 | { |
61 | void* ptr = &::tensorflow::tfprof::_AdviceProto_default_instance_; |
62 | new (ptr) ::tensorflow::tfprof::AdviceProto(); |
63 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
64 | } |
65 | ::tensorflow::tfprof::AdviceProto::InitAsDefaultInstance(); |
66 | } |
67 | |
68 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
69 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, { |
70 | &scc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base,}}; |
71 | |
72 | static void InitDefaultsscc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
73 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
74 | |
75 | { |
76 | void* ptr = &::tensorflow::tfprof::_AdviceProto_Checker_default_instance_; |
77 | new (ptr) ::tensorflow::tfprof::AdviceProto_Checker(); |
78 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
79 | } |
80 | ::tensorflow::tfprof::AdviceProto_Checker::InitAsDefaultInstance(); |
81 | } |
82 | |
83 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
84 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, {}}; |
85 | |
86 | static void InitDefaultsscc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
87 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
88 | |
89 | { |
90 | void* ptr = &::tensorflow::tfprof::_AdviceProto_CheckersEntry_DoNotUse_default_instance_; |
91 | new (ptr) ::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse(); |
92 | } |
93 | ::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse::InitAsDefaultInstance(); |
94 | } |
95 | |
96 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
97 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, { |
98 | &scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base,}}; |
99 | |
100 | static void InitDefaultsscc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
101 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
102 | |
103 | { |
104 | void* ptr = &::tensorflow::tfprof::_GraphNodeProto_default_instance_; |
105 | new (ptr) ::tensorflow::tfprof::GraphNodeProto(); |
106 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
107 | } |
108 | ::tensorflow::tfprof::GraphNodeProto::InitAsDefaultInstance(); |
109 | } |
110 | |
111 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
112 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, { |
113 | &scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
114 | &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base, |
115 | &scc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base,}}; |
116 | |
117 | static void InitDefaultsscc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
118 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
119 | |
120 | { |
121 | void* ptr = &::tensorflow::tfprof::_GraphNodeProto_InputShapesEntry_DoNotUse_default_instance_; |
122 | new (ptr) ::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse(); |
123 | } |
124 | ::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse::InitAsDefaultInstance(); |
125 | } |
126 | |
127 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
128 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, { |
129 | &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,}}; |
130 | |
131 | static void InitDefaultsscc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
132 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
133 | |
134 | { |
135 | void* ptr = &::tensorflow::tfprof::_MultiGraphNodeProto_default_instance_; |
136 | new (ptr) ::tensorflow::tfprof::MultiGraphNodeProto(); |
137 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
138 | } |
139 | ::tensorflow::tfprof::MultiGraphNodeProto::InitAsDefaultInstance(); |
140 | } |
141 | |
142 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
143 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, { |
144 | &scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base,}}; |
145 | |
146 | static void InitDefaultsscc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto() { |
147 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
148 | |
149 | { |
150 | void* ptr = &::tensorflow::tfprof::_TFProfTensorProto_default_instance_; |
151 | new (ptr) ::tensorflow::tfprof::TFProfTensorProto(); |
152 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
153 | } |
154 | ::tensorflow::tfprof::TFProfTensorProto::InitAsDefaultInstance(); |
155 | } |
156 | |
157 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = |
158 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto}, {}}; |
159 | |
160 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto[7]; |
161 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = nullptr; |
162 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = nullptr; |
163 | |
164 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
165 | ~0u, // no _has_bits_ |
166 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::TFProfTensorProto, _internal_metadata_), |
167 | ~0u, // no _extensions_ |
168 | ~0u, // no _oneof_case_ |
169 | ~0u, // no _weak_field_map_ |
170 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::TFProfTensorProto, dtype_), |
171 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::TFProfTensorProto, value_double_), |
172 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::TFProfTensorProto, value_int64_), |
173 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::TFProfTensorProto, value_str_), |
174 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse, _has_bits_), |
175 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse, _internal_metadata_), |
176 | ~0u, // no _extensions_ |
177 | ~0u, // no _oneof_case_ |
178 | ~0u, // no _weak_field_map_ |
179 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse, key_), |
180 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse, value_), |
181 | 0, |
182 | 1, |
183 | ~0u, // no _has_bits_ |
184 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, _internal_metadata_), |
185 | ~0u, // no _extensions_ |
186 | ~0u, // no _oneof_case_ |
187 | ~0u, // no _weak_field_map_ |
188 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, name_), |
189 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, tensor_value_), |
190 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, run_count_), |
191 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, exec_micros_), |
192 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, accelerator_exec_micros_), |
193 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, cpu_exec_micros_), |
194 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, requested_bytes_), |
195 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, peak_bytes_), |
196 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, residual_bytes_), |
197 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, output_bytes_), |
198 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, parameters_), |
199 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, float_ops_), |
200 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, devices_), |
201 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_definition_count_), |
202 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_run_count_), |
203 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_exec_micros_), |
204 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_accelerator_exec_micros_), |
205 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_cpu_exec_micros_), |
206 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_requested_bytes_), |
207 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_peak_bytes_), |
208 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_residual_bytes_), |
209 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_output_bytes_), |
210 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_parameters_), |
211 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, total_float_ops_), |
212 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, shapes_), |
213 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, input_shapes_), |
214 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::GraphNodeProto, children_), |
215 | ~0u, // no _has_bits_ |
216 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, _internal_metadata_), |
217 | ~0u, // no _extensions_ |
218 | ~0u, // no _oneof_case_ |
219 | ~0u, // no _weak_field_map_ |
220 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, name_), |
221 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, exec_micros_), |
222 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, accelerator_exec_micros_), |
223 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, cpu_exec_micros_), |
224 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, requested_bytes_), |
225 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, peak_bytes_), |
226 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, residual_bytes_), |
227 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, output_bytes_), |
228 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, parameters_), |
229 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, float_ops_), |
230 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_exec_micros_), |
231 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_accelerator_exec_micros_), |
232 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_cpu_exec_micros_), |
233 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_requested_bytes_), |
234 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_peak_bytes_), |
235 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_residual_bytes_), |
236 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_output_bytes_), |
237 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_parameters_), |
238 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, total_float_ops_), |
239 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, graph_nodes_), |
240 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::MultiGraphNodeProto, children_), |
241 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse, _has_bits_), |
242 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse, _internal_metadata_), |
243 | ~0u, // no _extensions_ |
244 | ~0u, // no _oneof_case_ |
245 | ~0u, // no _weak_field_map_ |
246 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse, key_), |
247 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse, value_), |
248 | 0, |
249 | 1, |
250 | ~0u, // no _has_bits_ |
251 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_Checker, _internal_metadata_), |
252 | ~0u, // no _extensions_ |
253 | ~0u, // no _oneof_case_ |
254 | ~0u, // no _weak_field_map_ |
255 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto_Checker, reports_), |
256 | ~0u, // no _has_bits_ |
257 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto, _internal_metadata_), |
258 | ~0u, // no _extensions_ |
259 | ~0u, // no _oneof_case_ |
260 | ~0u, // no _weak_field_map_ |
261 | PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdviceProto, checkers_), |
262 | }; |
263 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
264 | { 0, -1, sizeof(::tensorflow::tfprof::TFProfTensorProto)}, |
265 | { 9, 16, sizeof(::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse)}, |
266 | { 18, -1, sizeof(::tensorflow::tfprof::GraphNodeProto)}, |
267 | { 50, -1, sizeof(::tensorflow::tfprof::MultiGraphNodeProto)}, |
268 | { 76, 83, sizeof(::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse)}, |
269 | { 85, -1, sizeof(::tensorflow::tfprof::AdviceProto_Checker)}, |
270 | { 91, -1, sizeof(::tensorflow::tfprof::AdviceProto)}, |
271 | }; |
272 | |
273 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
274 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_TFProfTensorProto_default_instance_), |
275 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_GraphNodeProto_InputShapesEntry_DoNotUse_default_instance_), |
276 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_GraphNodeProto_default_instance_), |
277 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_MultiGraphNodeProto_default_instance_), |
278 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdviceProto_CheckersEntry_DoNotUse_default_instance_), |
279 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdviceProto_Checker_default_instance_), |
280 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdviceProto_default_instance_), |
281 | }; |
282 | |
283 | const char descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
284 | "\n,tensorflow/core/profiler/tfprof_output" |
285 | ".proto\022\021tensorflow.tfprof\032,tensorflow/co" |
286 | "re/framework/tensor_shape.proto\032%tensorf" |
287 | "low/core/framework/types.proto\"v\n\021TFProf" |
288 | "TensorProto\022#\n\005dtype\030\001 \001(\0162\024.tensorflow." |
289 | "DataType\022\024\n\014value_double\030\002 \003(\001\022\023\n\013value_" |
290 | "int64\030\003 \003(\003\022\021\n\tvalue_str\030\004 \003(\t\"\216\007\n\016Graph" |
291 | "NodeProto\022\014\n\004name\030\001 \001(\t\022:\n\014tensor_value\030" |
292 | "\017 \001(\0132$.tensorflow.tfprof.TFProfTensorPr" |
293 | "oto\022\021\n\trun_count\030\025 \001(\003\022\023\n\013exec_micros\030\002 " |
294 | "\001(\003\022\037\n\027accelerator_exec_micros\030\021 \001(\003\022\027\n\017" |
295 | "cpu_exec_micros\030\022 \001(\003\022\027\n\017requested_bytes" |
296 | "\030\003 \001(\003\022\022\n\npeak_bytes\030\030 \001(\003\022\026\n\016residual_b" |
297 | "ytes\030\031 \001(\003\022\024\n\014output_bytes\030\032 \001(\003\022\022\n\npara" |
298 | "meters\030\004 \001(\003\022\021\n\tfloat_ops\030\r \001(\003\022\017\n\007devic" |
299 | "es\030\n \003(\t\022\036\n\026total_definition_count\030\027 \001(\003" |
300 | "\022\027\n\017total_run_count\030\026 \001(\003\022\031\n\021total_exec_" |
301 | "micros\030\006 \001(\003\022%\n\035total_accelerator_exec_m" |
302 | "icros\030\023 \001(\003\022\035\n\025total_cpu_exec_micros\030\024 \001" |
303 | "(\003\022\035\n\025total_requested_bytes\030\007 \001(\003\022\030\n\020tot" |
304 | "al_peak_bytes\030\033 \001(\003\022\034\n\024total_residual_by" |
305 | "tes\030\034 \001(\003\022\032\n\022total_output_bytes\030\035 \001(\003\022\030\n" |
306 | "\020total_parameters\030\010 \001(\003\022\027\n\017total_float_o" |
307 | "ps\030\016 \001(\003\022,\n\006shapes\030\013 \003(\0132\034.tensorflow.Te" |
308 | "nsorShapeProto\022H\n\014input_shapes\030\020 \003(\01322.t" |
309 | "ensorflow.tfprof.GraphNodeProto.InputSha" |
310 | "pesEntry\0223\n\010children\030\014 \003(\0132!.tensorflow." |
311 | "tfprof.GraphNodeProto\032P\n\020InputShapesEntr" |
312 | "y\022\013\n\003key\030\001 \001(\005\022+\n\005value\030\002 \001(\0132\034.tensorfl" |
313 | "ow.TensorShapeProto:\0028\001\"\355\004\n\023MultiGraphNo" |
314 | "deProto\022\014\n\004name\030\001 \001(\t\022\023\n\013exec_micros\030\002 \001" |
315 | "(\003\022\037\n\027accelerator_exec_micros\030\014 \001(\003\022\027\n\017c" |
316 | "pu_exec_micros\030\r \001(\003\022\027\n\017requested_bytes\030" |
317 | "\003 \001(\003\022\022\n\npeak_bytes\030\020 \001(\003\022\026\n\016residual_by" |
318 | "tes\030\021 \001(\003\022\024\n\014output_bytes\030\022 \001(\003\022\022\n\nparam" |
319 | "eters\030\004 \001(\003\022\021\n\tfloat_ops\030\005 \001(\003\022\031\n\021total_" |
320 | "exec_micros\030\006 \001(\003\022%\n\035total_accelerator_e" |
321 | "xec_micros\030\016 \001(\003\022\035\n\025total_cpu_exec_micro" |
322 | "s\030\017 \001(\003\022\035\n\025total_requested_bytes\030\007 \001(\003\022\030" |
323 | "\n\020total_peak_bytes\030\023 \001(\003\022\034\n\024total_residu" |
324 | "al_bytes\030\024 \001(\003\022\032\n\022total_output_bytes\030\025 \001" |
325 | "(\003\022\030\n\020total_parameters\030\010 \001(\003\022\027\n\017total_fl" |
326 | "oat_ops\030\t \001(\003\0226\n\013graph_nodes\030\n \003(\0132!.ten" |
327 | "sorflow.tfprof.GraphNodeProto\0228\n\010childre" |
328 | "n\030\013 \003(\0132&.tensorflow.tfprof.MultiGraphNo" |
329 | "deProto\"\302\001\n\013AdviceProto\022>\n\010checkers\030\001 \003(" |
330 | "\0132,.tensorflow.tfprof.AdviceProto.Checke" |
331 | "rsEntry\032W\n\rCheckersEntry\022\013\n\003key\030\001 \001(\t\0225\n" |
332 | "\005value\030\002 \001(\0132&.tensorflow.tfprof.AdviceP" |
333 | "roto.Checker:\0028\001\032\032\n\007Checker\022\017\n\007reports\030\002" |
334 | " \003(\tb\006proto3" |
335 | ; |
336 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_deps[2] = { |
337 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto, |
338 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto, |
339 | }; |
340 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_sccs[7] = { |
341 | &scc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
342 | &scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
343 | &scc_info_AdviceProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
344 | &scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
345 | &scc_info_GraphNodeProto_InputShapesEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
346 | &scc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
347 | &scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base, |
348 | }; |
349 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_once; |
350 | static bool descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_initialized = false; |
351 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = { |
352 | &descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto, "tensorflow/core/profiler/tfprof_output.proto" , 2012, |
353 | &descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_once, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto_deps, 7, 2, |
354 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto::offsets, |
355 | file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto, 7, file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto, |
356 | }; |
357 | |
358 | // Force running AddDescriptors() at dynamic initialization time. |
359 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto), true); |
360 | namespace tensorflow { |
361 | namespace tfprof { |
362 | |
363 | // =================================================================== |
364 | |
365 | void TFProfTensorProto::InitAsDefaultInstance() { |
366 | } |
367 | class TFProfTensorProto::_Internal { |
368 | public: |
369 | }; |
370 | |
371 | TFProfTensorProto::TFProfTensorProto() |
372 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
373 | SharedCtor(); |
374 | // @@protoc_insertion_point(constructor:tensorflow.tfprof.TFProfTensorProto) |
375 | } |
376 | TFProfTensorProto::TFProfTensorProto(const TFProfTensorProto& from) |
377 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
378 | _internal_metadata_(nullptr), |
379 | value_double_(from.value_double_), |
380 | value_int64_(from.value_int64_), |
381 | value_str_(from.value_str_) { |
382 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
383 | dtype_ = from.dtype_; |
384 | // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.TFProfTensorProto) |
385 | } |
386 | |
387 | void TFProfTensorProto::SharedCtor() { |
388 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
389 | dtype_ = 0; |
390 | } |
391 | |
392 | TFProfTensorProto::~TFProfTensorProto() { |
393 | // @@protoc_insertion_point(destructor:tensorflow.tfprof.TFProfTensorProto) |
394 | SharedDtor(); |
395 | } |
396 | |
397 | void TFProfTensorProto::SharedDtor() { |
398 | } |
399 | |
400 | void TFProfTensorProto::SetCachedSize(int size) const { |
401 | _cached_size_.Set(size); |
402 | } |
403 | const TFProfTensorProto& TFProfTensorProto::default_instance() { |
404 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TFProfTensorProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
405 | return *internal_default_instance(); |
406 | } |
407 | |
408 | |
409 | void TFProfTensorProto::Clear() { |
410 | // @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.TFProfTensorProto) |
411 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
412 | // Prevent compiler warnings about cached_has_bits being unused |
413 | (void) cached_has_bits; |
414 | |
415 | value_double_.Clear(); |
416 | value_int64_.Clear(); |
417 | value_str_.Clear(); |
418 | dtype_ = 0; |
419 | _internal_metadata_.Clear(); |
420 | } |
421 | |
422 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
423 | const char* TFProfTensorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
424 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
425 | while (!ctx->Done(&ptr)) { |
426 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
427 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
428 | CHK_(ptr); |
429 | switch (tag >> 3) { |
430 | // .tensorflow.DataType dtype = 1; |
431 | case 1: |
432 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
433 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
434 | CHK_(ptr); |
435 | set_dtype(static_cast<::tensorflow::DataType>(val)); |
436 | } else goto handle_unusual; |
437 | continue; |
438 | // repeated double value_double = 2; |
439 | case 2: |
440 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
441 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(mutable_value_double(), ptr, ctx); |
442 | CHK_(ptr); |
443 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17) { |
444 | add_value_double(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr)); |
445 | ptr += sizeof(double); |
446 | } else goto handle_unusual; |
447 | continue; |
448 | // repeated int64 value_int64 = 3; |
449 | case 3: |
450 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
451 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_value_int64(), ptr, ctx); |
452 | CHK_(ptr); |
453 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { |
454 | add_value_int64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); |
455 | CHK_(ptr); |
456 | } else goto handle_unusual; |
457 | continue; |
458 | // repeated string value_str = 4; |
459 | case 4: |
460 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
461 | ptr -= 1; |
462 | do { |
463 | ptr += 1; |
464 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_value_str(), ptr, ctx, "tensorflow.tfprof.TFProfTensorProto.value_str" ); |
465 | CHK_(ptr); |
466 | if (!ctx->DataAvailable(ptr)) break; |
467 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
468 | } else goto handle_unusual; |
469 | continue; |
470 | default: { |
471 | handle_unusual: |
472 | if ((tag & 7) == 4 || tag == 0) { |
473 | ctx->SetLastTag(tag); |
474 | goto success; |
475 | } |
476 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
477 | CHK_(ptr != nullptr); |
478 | continue; |
479 | } |
480 | } // switch |
481 | } // while |
482 | success: |
483 | return ptr; |
484 | failure: |
485 | ptr = nullptr; |
486 | goto success; |
487 | #undef CHK_ |
488 | } |
489 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
490 | bool TFProfTensorProto::MergePartialFromCodedStream( |
491 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
492 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
493 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
494 | // @@protoc_insertion_point(parse_start:tensorflow.tfprof.TFProfTensorProto) |
495 | for (;;) { |
496 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
497 | tag = p.first; |
498 | if (!p.second) goto handle_unusual; |
499 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
500 | // .tensorflow.DataType dtype = 1; |
501 | case 1: { |
502 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
503 | int value = 0; |
504 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
505 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
506 | input, &value))); |
507 | set_dtype(static_cast< ::tensorflow::DataType >(value)); |
508 | } else { |
509 | goto handle_unusual; |
510 | } |
511 | break; |
512 | } |
513 | |
514 | // repeated double value_double = 2; |
515 | case 2: { |
516 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
517 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< |
518 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
519 | input, this->mutable_value_double()))); |
520 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { |
521 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
522 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
523 | 1, 18u, input, this->mutable_value_double()))); |
524 | } else { |
525 | goto handle_unusual; |
526 | } |
527 | break; |
528 | } |
529 | |
530 | // repeated int64 value_int64 = 3; |
531 | case 3: { |
532 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
533 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< |
534 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
535 | input, this->mutable_value_int64()))); |
536 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
537 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
538 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
539 | 1, 26u, input, this->mutable_value_int64()))); |
540 | } else { |
541 | goto handle_unusual; |
542 | } |
543 | break; |
544 | } |
545 | |
546 | // repeated string value_str = 4; |
547 | case 4: { |
548 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
549 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
550 | input, this->add_value_str())); |
551 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
552 | this->value_str(this->value_str_size() - 1).data(), |
553 | static_cast<int>(this->value_str(this->value_str_size() - 1).length()), |
554 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
555 | "tensorflow.tfprof.TFProfTensorProto.value_str" )); |
556 | } else { |
557 | goto handle_unusual; |
558 | } |
559 | break; |
560 | } |
561 | |
562 | default: { |
563 | handle_unusual: |
564 | if (tag == 0) { |
565 | goto success; |
566 | } |
567 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
568 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
569 | break; |
570 | } |
571 | } |
572 | } |
573 | success: |
574 | // @@protoc_insertion_point(parse_success:tensorflow.tfprof.TFProfTensorProto) |
575 | return true; |
576 | failure: |
577 | // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.TFProfTensorProto) |
578 | return false; |
579 | #undef DO_ |
580 | } |
581 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
582 | |
583 | void TFProfTensorProto::SerializeWithCachedSizes( |
584 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
585 | // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.TFProfTensorProto) |
586 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
587 | (void) cached_has_bits; |
588 | |
589 | // .tensorflow.DataType dtype = 1; |
590 | if (this->dtype() != 0) { |
591 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
592 | 1, this->dtype(), output); |
593 | } |
594 | |
595 | // repeated double value_double = 2; |
596 | if (this->value_double_size() > 0) { |
597 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
598 | output->WriteVarint32(_value_double_cached_byte_size_.load( |
599 | std::memory_order_relaxed)); |
600 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleArray( |
601 | this->value_double().data(), this->value_double_size(), output); |
602 | } |
603 | |
604 | // repeated int64 value_int64 = 3; |
605 | if (this->value_int64_size() > 0) { |
606 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
607 | output->WriteVarint32(_value_int64_cached_byte_size_.load( |
608 | std::memory_order_relaxed)); |
609 | } |
610 | for (int i = 0, n = this->value_int64_size(); i < n; i++) { |
611 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( |
612 | this->value_int64(i), output); |
613 | } |
614 | |
615 | // repeated string value_str = 4; |
616 | for (int i = 0, n = this->value_str_size(); i < n; i++) { |
617 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
618 | this->value_str(i).data(), static_cast<int>(this->value_str(i).length()), |
619 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
620 | "tensorflow.tfprof.TFProfTensorProto.value_str" ); |
621 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
622 | 4, this->value_str(i), output); |
623 | } |
624 | |
625 | if (_internal_metadata_.have_unknown_fields()) { |
626 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
627 | _internal_metadata_.unknown_fields(), output); |
628 | } |
629 | // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.TFProfTensorProto) |
630 | } |
631 | |
632 | ::PROTOBUF_NAMESPACE_ID::uint8* TFProfTensorProto::InternalSerializeWithCachedSizesToArray( |
633 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
634 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.TFProfTensorProto) |
635 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
636 | (void) cached_has_bits; |
637 | |
638 | // .tensorflow.DataType dtype = 1; |
639 | if (this->dtype() != 0) { |
640 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
641 | 1, this->dtype(), target); |
642 | } |
643 | |
644 | // repeated double value_double = 2; |
645 | if (this->value_double_size() > 0) { |
646 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
647 | 2, |
648 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
649 | target); |
650 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( |
651 | _value_double_cached_byte_size_.load(std::memory_order_relaxed), |
652 | target); |
653 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
654 | WriteDoubleNoTagToArray(this->value_double_, target); |
655 | } |
656 | |
657 | // repeated int64 value_int64 = 3; |
658 | if (this->value_int64_size() > 0) { |
659 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
660 | 3, |
661 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
662 | target); |
663 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( |
664 | _value_int64_cached_byte_size_.load(std::memory_order_relaxed), |
665 | target); |
666 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
667 | WriteInt64NoTagToArray(this->value_int64_, target); |
668 | } |
669 | |
670 | // repeated string value_str = 4; |
671 | for (int i = 0, n = this->value_str_size(); i < n; i++) { |
672 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
673 | this->value_str(i).data(), static_cast<int>(this->value_str(i).length()), |
674 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
675 | "tensorflow.tfprof.TFProfTensorProto.value_str" ); |
676 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
677 | WriteStringToArray(4, this->value_str(i), target); |
678 | } |
679 | |
680 | if (_internal_metadata_.have_unknown_fields()) { |
681 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
682 | _internal_metadata_.unknown_fields(), target); |
683 | } |
684 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.TFProfTensorProto) |
685 | return target; |
686 | } |
687 | |
688 | size_t TFProfTensorProto::ByteSizeLong() const { |
689 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.TFProfTensorProto) |
690 | size_t total_size = 0; |
691 | |
692 | if (_internal_metadata_.have_unknown_fields()) { |
693 | total_size += |
694 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
695 | _internal_metadata_.unknown_fields()); |
696 | } |
697 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
698 | // Prevent compiler warnings about cached_has_bits being unused |
699 | (void) cached_has_bits; |
700 | |
701 | // repeated double value_double = 2; |
702 | { |
703 | unsigned int count = static_cast<unsigned int>(this->value_double_size()); |
704 | size_t data_size = 8UL * count; |
705 | if (data_size > 0) { |
706 | total_size += 1 + |
707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
708 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
709 | } |
710 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
711 | _value_double_cached_byte_size_.store(cached_size, |
712 | std::memory_order_relaxed); |
713 | total_size += data_size; |
714 | } |
715 | |
716 | // repeated int64 value_int64 = 3; |
717 | { |
718 | size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
719 | Int64Size(this->value_int64_); |
720 | if (data_size > 0) { |
721 | total_size += 1 + |
722 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
723 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
724 | } |
725 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
726 | _value_int64_cached_byte_size_.store(cached_size, |
727 | std::memory_order_relaxed); |
728 | total_size += data_size; |
729 | } |
730 | |
731 | // repeated string value_str = 4; |
732 | total_size += 1 * |
733 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->value_str_size()); |
734 | for (int i = 0, n = this->value_str_size(); i < n; i++) { |
735 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
736 | this->value_str(i)); |
737 | } |
738 | |
739 | // .tensorflow.DataType dtype = 1; |
740 | if (this->dtype() != 0) { |
741 | total_size += 1 + |
742 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->dtype()); |
743 | } |
744 | |
745 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
746 | SetCachedSize(cached_size); |
747 | return total_size; |
748 | } |
749 | |
750 | void TFProfTensorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
751 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.TFProfTensorProto) |
752 | GOOGLE_DCHECK_NE(&from, this); |
753 | const TFProfTensorProto* source = |
754 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TFProfTensorProto>( |
755 | &from); |
756 | if (source == nullptr) { |
757 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.TFProfTensorProto) |
758 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
759 | } else { |
760 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.TFProfTensorProto) |
761 | MergeFrom(*source); |
762 | } |
763 | } |
764 | |
765 | void TFProfTensorProto::MergeFrom(const TFProfTensorProto& from) { |
766 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.TFProfTensorProto) |
767 | GOOGLE_DCHECK_NE(&from, this); |
768 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
769 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
770 | (void) cached_has_bits; |
771 | |
772 | value_double_.MergeFrom(from.value_double_); |
773 | value_int64_.MergeFrom(from.value_int64_); |
774 | value_str_.MergeFrom(from.value_str_); |
775 | if (from.dtype() != 0) { |
776 | set_dtype(from.dtype()); |
777 | } |
778 | } |
779 | |
780 | void TFProfTensorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
781 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.TFProfTensorProto) |
782 | if (&from == this) return; |
783 | Clear(); |
784 | MergeFrom(from); |
785 | } |
786 | |
787 | void TFProfTensorProto::CopyFrom(const TFProfTensorProto& from) { |
788 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.TFProfTensorProto) |
789 | if (&from == this) return; |
790 | Clear(); |
791 | MergeFrom(from); |
792 | } |
793 | |
794 | bool TFProfTensorProto::IsInitialized() const { |
795 | return true; |
796 | } |
797 | |
798 | void TFProfTensorProto::InternalSwap(TFProfTensorProto* other) { |
799 | using std::swap; |
800 | _internal_metadata_.Swap(&other->_internal_metadata_); |
801 | value_double_.InternalSwap(&other->value_double_); |
802 | value_int64_.InternalSwap(&other->value_int64_); |
803 | value_str_.InternalSwap(CastToBase(&other->value_str_)); |
804 | swap(dtype_, other->dtype_); |
805 | } |
806 | |
807 | ::PROTOBUF_NAMESPACE_ID::Metadata TFProfTensorProto::GetMetadata() const { |
808 | return GetMetadataStatic(); |
809 | } |
810 | |
811 | |
812 | // =================================================================== |
813 | |
814 | GraphNodeProto_InputShapesEntry_DoNotUse::GraphNodeProto_InputShapesEntry_DoNotUse() {} |
815 | GraphNodeProto_InputShapesEntry_DoNotUse::GraphNodeProto_InputShapesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
816 | : SuperType(arena) {} |
817 | void GraphNodeProto_InputShapesEntry_DoNotUse::MergeFrom(const GraphNodeProto_InputShapesEntry_DoNotUse& other) { |
818 | MergeFromInternal(other); |
819 | } |
820 | ::PROTOBUF_NAMESPACE_ID::Metadata GraphNodeProto_InputShapesEntry_DoNotUse::GetMetadata() const { |
821 | return GetMetadataStatic(); |
822 | } |
823 | void GraphNodeProto_InputShapesEntry_DoNotUse::MergeFrom( |
824 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
825 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
826 | } |
827 | |
828 | |
829 | // =================================================================== |
830 | |
831 | void GraphNodeProto::InitAsDefaultInstance() { |
832 | ::tensorflow::tfprof::_GraphNodeProto_default_instance_._instance.get_mutable()->tensor_value_ = const_cast< ::tensorflow::tfprof::TFProfTensorProto*>( |
833 | ::tensorflow::tfprof::TFProfTensorProto::internal_default_instance()); |
834 | } |
835 | class GraphNodeProto::_Internal { |
836 | public: |
837 | static const ::tensorflow::tfprof::TFProfTensorProto& tensor_value(const GraphNodeProto* msg); |
838 | }; |
839 | |
840 | const ::tensorflow::tfprof::TFProfTensorProto& |
841 | GraphNodeProto::_Internal::tensor_value(const GraphNodeProto* msg) { |
842 | return *msg->tensor_value_; |
843 | } |
844 | void GraphNodeProto::clear_shapes() { |
845 | shapes_.Clear(); |
846 | } |
847 | void GraphNodeProto::clear_input_shapes() { |
848 | input_shapes_.Clear(); |
849 | } |
850 | GraphNodeProto::GraphNodeProto() |
851 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
852 | SharedCtor(); |
853 | // @@protoc_insertion_point(constructor:tensorflow.tfprof.GraphNodeProto) |
854 | } |
855 | GraphNodeProto::GraphNodeProto(const GraphNodeProto& from) |
856 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
857 | _internal_metadata_(nullptr), |
858 | devices_(from.devices_), |
859 | shapes_(from.shapes_), |
860 | children_(from.children_) { |
861 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
862 | input_shapes_.MergeFrom(from.input_shapes_); |
863 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
864 | if (!from.name().empty()) { |
865 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
866 | } |
867 | if (from.has_tensor_value()) { |
868 | tensor_value_ = new ::tensorflow::tfprof::TFProfTensorProto(*from.tensor_value_); |
869 | } else { |
870 | tensor_value_ = nullptr; |
871 | } |
872 | ::memcpy(&exec_micros_, &from.exec_micros_, |
873 | static_cast<size_t>(reinterpret_cast<char*>(&total_output_bytes_) - |
874 | reinterpret_cast<char*>(&exec_micros_)) + sizeof(total_output_bytes_)); |
875 | // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.GraphNodeProto) |
876 | } |
877 | |
878 | void GraphNodeProto::SharedCtor() { |
879 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
880 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
881 | ::memset(&tensor_value_, 0, static_cast<size_t>( |
882 | reinterpret_cast<char*>(&total_output_bytes_) - |
883 | reinterpret_cast<char*>(&tensor_value_)) + sizeof(total_output_bytes_)); |
884 | } |
885 | |
886 | GraphNodeProto::~GraphNodeProto() { |
887 | // @@protoc_insertion_point(destructor:tensorflow.tfprof.GraphNodeProto) |
888 | SharedDtor(); |
889 | } |
890 | |
891 | void GraphNodeProto::SharedDtor() { |
892 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
893 | if (this != internal_default_instance()) delete tensor_value_; |
894 | } |
895 | |
896 | void GraphNodeProto::SetCachedSize(int size) const { |
897 | _cached_size_.Set(size); |
898 | } |
899 | const GraphNodeProto& GraphNodeProto::default_instance() { |
900 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
901 | return *internal_default_instance(); |
902 | } |
903 | |
904 | |
905 | void GraphNodeProto::Clear() { |
906 | // @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.GraphNodeProto) |
907 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
908 | // Prevent compiler warnings about cached_has_bits being unused |
909 | (void) cached_has_bits; |
910 | |
911 | devices_.Clear(); |
912 | shapes_.Clear(); |
913 | children_.Clear(); |
914 | input_shapes_.Clear(); |
915 | name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
916 | if (GetArenaNoVirtual() == nullptr && tensor_value_ != nullptr) { |
917 | delete tensor_value_; |
918 | } |
919 | tensor_value_ = nullptr; |
920 | ::memset(&exec_micros_, 0, static_cast<size_t>( |
921 | reinterpret_cast<char*>(&total_output_bytes_) - |
922 | reinterpret_cast<char*>(&exec_micros_)) + sizeof(total_output_bytes_)); |
923 | _internal_metadata_.Clear(); |
924 | } |
925 | |
926 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
927 | const char* GraphNodeProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
928 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
929 | while (!ctx->Done(&ptr)) { |
930 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
931 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
932 | CHK_(ptr); |
933 | switch (tag >> 3) { |
934 | // string name = 1; |
935 | case 1: |
936 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
937 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.tfprof.GraphNodeProto.name" ); |
938 | CHK_(ptr); |
939 | } else goto handle_unusual; |
940 | continue; |
941 | // int64 exec_micros = 2; |
942 | case 2: |
943 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
944 | exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
945 | CHK_(ptr); |
946 | } else goto handle_unusual; |
947 | continue; |
948 | // int64 requested_bytes = 3; |
949 | case 3: |
950 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
951 | requested_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
952 | CHK_(ptr); |
953 | } else goto handle_unusual; |
954 | continue; |
955 | // int64 parameters = 4; |
956 | case 4: |
957 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
958 | parameters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
959 | CHK_(ptr); |
960 | } else goto handle_unusual; |
961 | continue; |
962 | // int64 total_exec_micros = 6; |
963 | case 6: |
964 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
965 | total_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
966 | CHK_(ptr); |
967 | } else goto handle_unusual; |
968 | continue; |
969 | // int64 total_requested_bytes = 7; |
970 | case 7: |
971 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
972 | total_requested_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
973 | CHK_(ptr); |
974 | } else goto handle_unusual; |
975 | continue; |
976 | // int64 total_parameters = 8; |
977 | case 8: |
978 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
979 | total_parameters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
980 | CHK_(ptr); |
981 | } else goto handle_unusual; |
982 | continue; |
983 | // repeated string devices = 10; |
984 | case 10: |
985 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { |
986 | ptr -= 1; |
987 | do { |
988 | ptr += 1; |
989 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_devices(), ptr, ctx, "tensorflow.tfprof.GraphNodeProto.devices" ); |
990 | CHK_(ptr); |
991 | if (!ctx->DataAvailable(ptr)) break; |
992 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82); |
993 | } else goto handle_unusual; |
994 | continue; |
995 | // repeated .tensorflow.TensorShapeProto shapes = 11; |
996 | case 11: |
997 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { |
998 | ptr -= 1; |
999 | do { |
1000 | ptr += 1; |
1001 | ptr = ctx->ParseMessage(add_shapes(), ptr); |
1002 | CHK_(ptr); |
1003 | if (!ctx->DataAvailable(ptr)) break; |
1004 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 90); |
1005 | } else goto handle_unusual; |
1006 | continue; |
1007 | // repeated .tensorflow.tfprof.GraphNodeProto children = 12; |
1008 | case 12: |
1009 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { |
1010 | ptr -= 1; |
1011 | do { |
1012 | ptr += 1; |
1013 | ptr = ctx->ParseMessage(add_children(), ptr); |
1014 | CHK_(ptr); |
1015 | if (!ctx->DataAvailable(ptr)) break; |
1016 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 98); |
1017 | } else goto handle_unusual; |
1018 | continue; |
1019 | // int64 float_ops = 13; |
1020 | case 13: |
1021 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { |
1022 | float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1023 | CHK_(ptr); |
1024 | } else goto handle_unusual; |
1025 | continue; |
1026 | // int64 total_float_ops = 14; |
1027 | case 14: |
1028 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { |
1029 | total_float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1030 | CHK_(ptr); |
1031 | } else goto handle_unusual; |
1032 | continue; |
1033 | // .tensorflow.tfprof.TFProfTensorProto tensor_value = 15; |
1034 | case 15: |
1035 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { |
1036 | ptr = ctx->ParseMessage(mutable_tensor_value(), ptr); |
1037 | CHK_(ptr); |
1038 | } else goto handle_unusual; |
1039 | continue; |
1040 | // map<int32, .tensorflow.TensorShapeProto> input_shapes = 16; |
1041 | case 16: |
1042 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { |
1043 | ptr -= 2; |
1044 | do { |
1045 | ptr += 2; |
1046 | ptr = ctx->ParseMessage(&input_shapes_, ptr); |
1047 | CHK_(ptr); |
1048 | if (!ctx->DataAvailable(ptr)) break; |
1049 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 386); |
1050 | } else goto handle_unusual; |
1051 | continue; |
1052 | // int64 accelerator_exec_micros = 17; |
1053 | case 17: |
1054 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { |
1055 | accelerator_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1056 | CHK_(ptr); |
1057 | } else goto handle_unusual; |
1058 | continue; |
1059 | // int64 cpu_exec_micros = 18; |
1060 | case 18: |
1061 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { |
1062 | cpu_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1063 | CHK_(ptr); |
1064 | } else goto handle_unusual; |
1065 | continue; |
1066 | // int64 total_accelerator_exec_micros = 19; |
1067 | case 19: |
1068 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { |
1069 | total_accelerator_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1070 | CHK_(ptr); |
1071 | } else goto handle_unusual; |
1072 | continue; |
1073 | // int64 total_cpu_exec_micros = 20; |
1074 | case 20: |
1075 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { |
1076 | total_cpu_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1077 | CHK_(ptr); |
1078 | } else goto handle_unusual; |
1079 | continue; |
1080 | // int64 run_count = 21; |
1081 | case 21: |
1082 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { |
1083 | run_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1084 | CHK_(ptr); |
1085 | } else goto handle_unusual; |
1086 | continue; |
1087 | // int64 total_run_count = 22; |
1088 | case 22: |
1089 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { |
1090 | total_run_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1091 | CHK_(ptr); |
1092 | } else goto handle_unusual; |
1093 | continue; |
1094 | // int64 total_definition_count = 23; |
1095 | case 23: |
1096 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { |
1097 | total_definition_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1098 | CHK_(ptr); |
1099 | } else goto handle_unusual; |
1100 | continue; |
1101 | // int64 peak_bytes = 24; |
1102 | case 24: |
1103 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { |
1104 | peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1105 | CHK_(ptr); |
1106 | } else goto handle_unusual; |
1107 | continue; |
1108 | // int64 residual_bytes = 25; |
1109 | case 25: |
1110 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { |
1111 | residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1112 | CHK_(ptr); |
1113 | } else goto handle_unusual; |
1114 | continue; |
1115 | // int64 output_bytes = 26; |
1116 | case 26: |
1117 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { |
1118 | output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1119 | CHK_(ptr); |
1120 | } else goto handle_unusual; |
1121 | continue; |
1122 | // int64 total_peak_bytes = 27; |
1123 | case 27: |
1124 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { |
1125 | total_peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1126 | CHK_(ptr); |
1127 | } else goto handle_unusual; |
1128 | continue; |
1129 | // int64 total_residual_bytes = 28; |
1130 | case 28: |
1131 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 224)) { |
1132 | total_residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1133 | CHK_(ptr); |
1134 | } else goto handle_unusual; |
1135 | continue; |
1136 | // int64 total_output_bytes = 29; |
1137 | case 29: |
1138 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 232)) { |
1139 | total_output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1140 | CHK_(ptr); |
1141 | } else goto handle_unusual; |
1142 | continue; |
1143 | default: { |
1144 | handle_unusual: |
1145 | if ((tag & 7) == 4 || tag == 0) { |
1146 | ctx->SetLastTag(tag); |
1147 | goto success; |
1148 | } |
1149 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1150 | CHK_(ptr != nullptr); |
1151 | continue; |
1152 | } |
1153 | } // switch |
1154 | } // while |
1155 | success: |
1156 | return ptr; |
1157 | failure: |
1158 | ptr = nullptr; |
1159 | goto success; |
1160 | #undef CHK_ |
1161 | } |
1162 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1163 | bool GraphNodeProto::MergePartialFromCodedStream( |
1164 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1165 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1166 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1167 | // @@protoc_insertion_point(parse_start:tensorflow.tfprof.GraphNodeProto) |
1168 | for (;;) { |
1169 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
1170 | tag = p.first; |
1171 | if (!p.second) goto handle_unusual; |
1172 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1173 | // string name = 1; |
1174 | case 1: { |
1175 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1176 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1177 | input, this->mutable_name())); |
1178 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1179 | this->name().data(), static_cast<int>(this->name().length()), |
1180 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1181 | "tensorflow.tfprof.GraphNodeProto.name" )); |
1182 | } else { |
1183 | goto handle_unusual; |
1184 | } |
1185 | break; |
1186 | } |
1187 | |
1188 | // int64 exec_micros = 2; |
1189 | case 2: { |
1190 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
1191 | |
1192 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1193 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1194 | input, &exec_micros_))); |
1195 | } else { |
1196 | goto handle_unusual; |
1197 | } |
1198 | break; |
1199 | } |
1200 | |
1201 | // int64 requested_bytes = 3; |
1202 | case 3: { |
1203 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
1204 | |
1205 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1206 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1207 | input, &requested_bytes_))); |
1208 | } else { |
1209 | goto handle_unusual; |
1210 | } |
1211 | break; |
1212 | } |
1213 | |
1214 | // int64 parameters = 4; |
1215 | case 4: { |
1216 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { |
1217 | |
1218 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1219 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1220 | input, ¶meters_))); |
1221 | } else { |
1222 | goto handle_unusual; |
1223 | } |
1224 | break; |
1225 | } |
1226 | |
1227 | // int64 total_exec_micros = 6; |
1228 | case 6: { |
1229 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { |
1230 | |
1231 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1232 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1233 | input, &total_exec_micros_))); |
1234 | } else { |
1235 | goto handle_unusual; |
1236 | } |
1237 | break; |
1238 | } |
1239 | |
1240 | // int64 total_requested_bytes = 7; |
1241 | case 7: { |
1242 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { |
1243 | |
1244 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1245 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1246 | input, &total_requested_bytes_))); |
1247 | } else { |
1248 | goto handle_unusual; |
1249 | } |
1250 | break; |
1251 | } |
1252 | |
1253 | // int64 total_parameters = 8; |
1254 | case 8: { |
1255 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) { |
1256 | |
1257 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1258 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1259 | input, &total_parameters_))); |
1260 | } else { |
1261 | goto handle_unusual; |
1262 | } |
1263 | break; |
1264 | } |
1265 | |
1266 | // repeated string devices = 10; |
1267 | case 10: { |
1268 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) { |
1269 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1270 | input, this->add_devices())); |
1271 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1272 | this->devices(this->devices_size() - 1).data(), |
1273 | static_cast<int>(this->devices(this->devices_size() - 1).length()), |
1274 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1275 | "tensorflow.tfprof.GraphNodeProto.devices" )); |
1276 | } else { |
1277 | goto handle_unusual; |
1278 | } |
1279 | break; |
1280 | } |
1281 | |
1282 | // repeated .tensorflow.TensorShapeProto shapes = 11; |
1283 | case 11: { |
1284 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) { |
1285 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1286 | input, add_shapes())); |
1287 | } else { |
1288 | goto handle_unusual; |
1289 | } |
1290 | break; |
1291 | } |
1292 | |
1293 | // repeated .tensorflow.tfprof.GraphNodeProto children = 12; |
1294 | case 12: { |
1295 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) { |
1296 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1297 | input, add_children())); |
1298 | } else { |
1299 | goto handle_unusual; |
1300 | } |
1301 | break; |
1302 | } |
1303 | |
1304 | // int64 float_ops = 13; |
1305 | case 13: { |
1306 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (104 & 0xFF)) { |
1307 | |
1308 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1309 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1310 | input, &float_ops_))); |
1311 | } else { |
1312 | goto handle_unusual; |
1313 | } |
1314 | break; |
1315 | } |
1316 | |
1317 | // int64 total_float_ops = 14; |
1318 | case 14: { |
1319 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (112 & 0xFF)) { |
1320 | |
1321 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1322 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1323 | input, &total_float_ops_))); |
1324 | } else { |
1325 | goto handle_unusual; |
1326 | } |
1327 | break; |
1328 | } |
1329 | |
1330 | // .tensorflow.tfprof.TFProfTensorProto tensor_value = 15; |
1331 | case 15: { |
1332 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (122 & 0xFF)) { |
1333 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1334 | input, mutable_tensor_value())); |
1335 | } else { |
1336 | goto handle_unusual; |
1337 | } |
1338 | break; |
1339 | } |
1340 | |
1341 | // map<int32, .tensorflow.TensorShapeProto> input_shapes = 16; |
1342 | case 16: { |
1343 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (130 & 0xFF)) { |
1344 | GraphNodeProto_InputShapesEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1345 | GraphNodeProto_InputShapesEntry_DoNotUse, |
1346 | ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto, |
1347 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, |
1348 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
1349 | 0 >, |
1350 | ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto > > parser(&input_shapes_); |
1351 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
1352 | input, &parser)); |
1353 | } else { |
1354 | goto handle_unusual; |
1355 | } |
1356 | break; |
1357 | } |
1358 | |
1359 | // int64 accelerator_exec_micros = 17; |
1360 | case 17: { |
1361 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) { |
1362 | |
1363 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1364 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1365 | input, &accelerator_exec_micros_))); |
1366 | } else { |
1367 | goto handle_unusual; |
1368 | } |
1369 | break; |
1370 | } |
1371 | |
1372 | // int64 cpu_exec_micros = 18; |
1373 | case 18: { |
1374 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) { |
1375 | |
1376 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1377 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1378 | input, &cpu_exec_micros_))); |
1379 | } else { |
1380 | goto handle_unusual; |
1381 | } |
1382 | break; |
1383 | } |
1384 | |
1385 | // int64 total_accelerator_exec_micros = 19; |
1386 | case 19: { |
1387 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (152 & 0xFF)) { |
1388 | |
1389 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1390 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1391 | input, &total_accelerator_exec_micros_))); |
1392 | } else { |
1393 | goto handle_unusual; |
1394 | } |
1395 | break; |
1396 | } |
1397 | |
1398 | // int64 total_cpu_exec_micros = 20; |
1399 | case 20: { |
1400 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (160 & 0xFF)) { |
1401 | |
1402 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1403 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1404 | input, &total_cpu_exec_micros_))); |
1405 | } else { |
1406 | goto handle_unusual; |
1407 | } |
1408 | break; |
1409 | } |
1410 | |
1411 | // int64 run_count = 21; |
1412 | case 21: { |
1413 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (168 & 0xFF)) { |
1414 | |
1415 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1416 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1417 | input, &run_count_))); |
1418 | } else { |
1419 | goto handle_unusual; |
1420 | } |
1421 | break; |
1422 | } |
1423 | |
1424 | // int64 total_run_count = 22; |
1425 | case 22: { |
1426 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (176 & 0xFF)) { |
1427 | |
1428 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1429 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1430 | input, &total_run_count_))); |
1431 | } else { |
1432 | goto handle_unusual; |
1433 | } |
1434 | break; |
1435 | } |
1436 | |
1437 | // int64 total_definition_count = 23; |
1438 | case 23: { |
1439 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (184 & 0xFF)) { |
1440 | |
1441 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1442 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1443 | input, &total_definition_count_))); |
1444 | } else { |
1445 | goto handle_unusual; |
1446 | } |
1447 | break; |
1448 | } |
1449 | |
1450 | // int64 peak_bytes = 24; |
1451 | case 24: { |
1452 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (192 & 0xFF)) { |
1453 | |
1454 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1455 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1456 | input, &peak_bytes_))); |
1457 | } else { |
1458 | goto handle_unusual; |
1459 | } |
1460 | break; |
1461 | } |
1462 | |
1463 | // int64 residual_bytes = 25; |
1464 | case 25: { |
1465 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (200 & 0xFF)) { |
1466 | |
1467 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1468 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1469 | input, &residual_bytes_))); |
1470 | } else { |
1471 | goto handle_unusual; |
1472 | } |
1473 | break; |
1474 | } |
1475 | |
1476 | // int64 output_bytes = 26; |
1477 | case 26: { |
1478 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (208 & 0xFF)) { |
1479 | |
1480 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1481 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1482 | input, &output_bytes_))); |
1483 | } else { |
1484 | goto handle_unusual; |
1485 | } |
1486 | break; |
1487 | } |
1488 | |
1489 | // int64 total_peak_bytes = 27; |
1490 | case 27: { |
1491 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (216 & 0xFF)) { |
1492 | |
1493 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1494 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1495 | input, &total_peak_bytes_))); |
1496 | } else { |
1497 | goto handle_unusual; |
1498 | } |
1499 | break; |
1500 | } |
1501 | |
1502 | // int64 total_residual_bytes = 28; |
1503 | case 28: { |
1504 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (224 & 0xFF)) { |
1505 | |
1506 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1507 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1508 | input, &total_residual_bytes_))); |
1509 | } else { |
1510 | goto handle_unusual; |
1511 | } |
1512 | break; |
1513 | } |
1514 | |
1515 | // int64 total_output_bytes = 29; |
1516 | case 29: { |
1517 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (232 & 0xFF)) { |
1518 | |
1519 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1520 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1521 | input, &total_output_bytes_))); |
1522 | } else { |
1523 | goto handle_unusual; |
1524 | } |
1525 | break; |
1526 | } |
1527 | |
1528 | default: { |
1529 | handle_unusual: |
1530 | if (tag == 0) { |
1531 | goto success; |
1532 | } |
1533 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1534 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1535 | break; |
1536 | } |
1537 | } |
1538 | } |
1539 | success: |
1540 | // @@protoc_insertion_point(parse_success:tensorflow.tfprof.GraphNodeProto) |
1541 | return true; |
1542 | failure: |
1543 | // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.GraphNodeProto) |
1544 | return false; |
1545 | #undef DO_ |
1546 | } |
1547 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1548 | |
1549 | void GraphNodeProto::SerializeWithCachedSizes( |
1550 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1551 | // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.GraphNodeProto) |
1552 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1553 | (void) cached_has_bits; |
1554 | |
1555 | // string name = 1; |
1556 | if (this->name().size() > 0) { |
1557 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1558 | this->name().data(), static_cast<int>(this->name().length()), |
1559 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1560 | "tensorflow.tfprof.GraphNodeProto.name" ); |
1561 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1562 | 1, this->name(), output); |
1563 | } |
1564 | |
1565 | // int64 exec_micros = 2; |
1566 | if (this->exec_micros() != 0) { |
1567 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->exec_micros(), output); |
1568 | } |
1569 | |
1570 | // int64 requested_bytes = 3; |
1571 | if (this->requested_bytes() != 0) { |
1572 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->requested_bytes(), output); |
1573 | } |
1574 | |
1575 | // int64 parameters = 4; |
1576 | if (this->parameters() != 0) { |
1577 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->parameters(), output); |
1578 | } |
1579 | |
1580 | // int64 total_exec_micros = 6; |
1581 | if (this->total_exec_micros() != 0) { |
1582 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->total_exec_micros(), output); |
1583 | } |
1584 | |
1585 | // int64 total_requested_bytes = 7; |
1586 | if (this->total_requested_bytes() != 0) { |
1587 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->total_requested_bytes(), output); |
1588 | } |
1589 | |
1590 | // int64 total_parameters = 8; |
1591 | if (this->total_parameters() != 0) { |
1592 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(8, this->total_parameters(), output); |
1593 | } |
1594 | |
1595 | // repeated string devices = 10; |
1596 | for (int i = 0, n = this->devices_size(); i < n; i++) { |
1597 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1598 | this->devices(i).data(), static_cast<int>(this->devices(i).length()), |
1599 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1600 | "tensorflow.tfprof.GraphNodeProto.devices" ); |
1601 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
1602 | 10, this->devices(i), output); |
1603 | } |
1604 | |
1605 | // repeated .tensorflow.TensorShapeProto shapes = 11; |
1606 | for (unsigned int i = 0, |
1607 | n = static_cast<unsigned int>(this->shapes_size()); i < n; i++) { |
1608 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1609 | 11, |
1610 | this->shapes(static_cast<int>(i)), |
1611 | output); |
1612 | } |
1613 | |
1614 | // repeated .tensorflow.tfprof.GraphNodeProto children = 12; |
1615 | for (unsigned int i = 0, |
1616 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
1617 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1618 | 12, |
1619 | this->children(static_cast<int>(i)), |
1620 | output); |
1621 | } |
1622 | |
1623 | // int64 float_ops = 13; |
1624 | if (this->float_ops() != 0) { |
1625 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(13, this->float_ops(), output); |
1626 | } |
1627 | |
1628 | // int64 total_float_ops = 14; |
1629 | if (this->total_float_ops() != 0) { |
1630 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(14, this->total_float_ops(), output); |
1631 | } |
1632 | |
1633 | // .tensorflow.tfprof.TFProfTensorProto tensor_value = 15; |
1634 | if (this->has_tensor_value()) { |
1635 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1636 | 15, _Internal::tensor_value(this), output); |
1637 | } |
1638 | |
1639 | // map<int32, .tensorflow.TensorShapeProto> input_shapes = 16; |
1640 | if (!this->input_shapes().empty()) { |
1641 | typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_pointer |
1642 | ConstPtr; |
1643 | typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem; |
1644 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less; |
1645 | |
1646 | if (output->IsSerializationDeterministic() && |
1647 | this->input_shapes().size() > 1) { |
1648 | ::std::unique_ptr<SortItem[]> items( |
1649 | new SortItem[this->input_shapes().size()]); |
1650 | typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::size_type size_type; |
1651 | size_type n = 0; |
1652 | for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_iterator |
1653 | it = this->input_shapes().begin(); |
1654 | it != this->input_shapes().end(); ++it, ++n) { |
1655 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
1656 | } |
1657 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
1658 | for (size_type i = 0; i < n; i++) { |
1659 | GraphNodeProto_InputShapesEntry_DoNotUse::Funcs::SerializeToCodedStream(16, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, output); |
1660 | } |
1661 | } else { |
1662 | for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_iterator |
1663 | it = this->input_shapes().begin(); |
1664 | it != this->input_shapes().end(); ++it) { |
1665 | GraphNodeProto_InputShapesEntry_DoNotUse::Funcs::SerializeToCodedStream(16, it->first, it->second, output); |
1666 | } |
1667 | } |
1668 | } |
1669 | |
1670 | // int64 accelerator_exec_micros = 17; |
1671 | if (this->accelerator_exec_micros() != 0) { |
1672 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(17, this->accelerator_exec_micros(), output); |
1673 | } |
1674 | |
1675 | // int64 cpu_exec_micros = 18; |
1676 | if (this->cpu_exec_micros() != 0) { |
1677 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(18, this->cpu_exec_micros(), output); |
1678 | } |
1679 | |
1680 | // int64 total_accelerator_exec_micros = 19; |
1681 | if (this->total_accelerator_exec_micros() != 0) { |
1682 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(19, this->total_accelerator_exec_micros(), output); |
1683 | } |
1684 | |
1685 | // int64 total_cpu_exec_micros = 20; |
1686 | if (this->total_cpu_exec_micros() != 0) { |
1687 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(20, this->total_cpu_exec_micros(), output); |
1688 | } |
1689 | |
1690 | // int64 run_count = 21; |
1691 | if (this->run_count() != 0) { |
1692 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(21, this->run_count(), output); |
1693 | } |
1694 | |
1695 | // int64 total_run_count = 22; |
1696 | if (this->total_run_count() != 0) { |
1697 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(22, this->total_run_count(), output); |
1698 | } |
1699 | |
1700 | // int64 total_definition_count = 23; |
1701 | if (this->total_definition_count() != 0) { |
1702 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(23, this->total_definition_count(), output); |
1703 | } |
1704 | |
1705 | // int64 peak_bytes = 24; |
1706 | if (this->peak_bytes() != 0) { |
1707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(24, this->peak_bytes(), output); |
1708 | } |
1709 | |
1710 | // int64 residual_bytes = 25; |
1711 | if (this->residual_bytes() != 0) { |
1712 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(25, this->residual_bytes(), output); |
1713 | } |
1714 | |
1715 | // int64 output_bytes = 26; |
1716 | if (this->output_bytes() != 0) { |
1717 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(26, this->output_bytes(), output); |
1718 | } |
1719 | |
1720 | // int64 total_peak_bytes = 27; |
1721 | if (this->total_peak_bytes() != 0) { |
1722 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(27, this->total_peak_bytes(), output); |
1723 | } |
1724 | |
1725 | // int64 total_residual_bytes = 28; |
1726 | if (this->total_residual_bytes() != 0) { |
1727 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(28, this->total_residual_bytes(), output); |
1728 | } |
1729 | |
1730 | // int64 total_output_bytes = 29; |
1731 | if (this->total_output_bytes() != 0) { |
1732 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(29, this->total_output_bytes(), output); |
1733 | } |
1734 | |
1735 | if (_internal_metadata_.have_unknown_fields()) { |
1736 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1737 | _internal_metadata_.unknown_fields(), output); |
1738 | } |
1739 | // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.GraphNodeProto) |
1740 | } |
1741 | |
1742 | ::PROTOBUF_NAMESPACE_ID::uint8* GraphNodeProto::InternalSerializeWithCachedSizesToArray( |
1743 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1744 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.GraphNodeProto) |
1745 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1746 | (void) cached_has_bits; |
1747 | |
1748 | // string name = 1; |
1749 | if (this->name().size() > 0) { |
1750 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1751 | this->name().data(), static_cast<int>(this->name().length()), |
1752 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1753 | "tensorflow.tfprof.GraphNodeProto.name" ); |
1754 | target = |
1755 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1756 | 1, this->name(), target); |
1757 | } |
1758 | |
1759 | // int64 exec_micros = 2; |
1760 | if (this->exec_micros() != 0) { |
1761 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->exec_micros(), target); |
1762 | } |
1763 | |
1764 | // int64 requested_bytes = 3; |
1765 | if (this->requested_bytes() != 0) { |
1766 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->requested_bytes(), target); |
1767 | } |
1768 | |
1769 | // int64 parameters = 4; |
1770 | if (this->parameters() != 0) { |
1771 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->parameters(), target); |
1772 | } |
1773 | |
1774 | // int64 total_exec_micros = 6; |
1775 | if (this->total_exec_micros() != 0) { |
1776 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->total_exec_micros(), target); |
1777 | } |
1778 | |
1779 | // int64 total_requested_bytes = 7; |
1780 | if (this->total_requested_bytes() != 0) { |
1781 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->total_requested_bytes(), target); |
1782 | } |
1783 | |
1784 | // int64 total_parameters = 8; |
1785 | if (this->total_parameters() != 0) { |
1786 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->total_parameters(), target); |
1787 | } |
1788 | |
1789 | // repeated string devices = 10; |
1790 | for (int i = 0, n = this->devices_size(); i < n; i++) { |
1791 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1792 | this->devices(i).data(), static_cast<int>(this->devices(i).length()), |
1793 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1794 | "tensorflow.tfprof.GraphNodeProto.devices" ); |
1795 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1796 | WriteStringToArray(10, this->devices(i), target); |
1797 | } |
1798 | |
1799 | // repeated .tensorflow.TensorShapeProto shapes = 11; |
1800 | for (unsigned int i = 0, |
1801 | n = static_cast<unsigned int>(this->shapes_size()); i < n; i++) { |
1802 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1803 | InternalWriteMessageToArray( |
1804 | 11, this->shapes(static_cast<int>(i)), target); |
1805 | } |
1806 | |
1807 | // repeated .tensorflow.tfprof.GraphNodeProto children = 12; |
1808 | for (unsigned int i = 0, |
1809 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
1810 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1811 | InternalWriteMessageToArray( |
1812 | 12, this->children(static_cast<int>(i)), target); |
1813 | } |
1814 | |
1815 | // int64 float_ops = 13; |
1816 | if (this->float_ops() != 0) { |
1817 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(13, this->float_ops(), target); |
1818 | } |
1819 | |
1820 | // int64 total_float_ops = 14; |
1821 | if (this->total_float_ops() != 0) { |
1822 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(14, this->total_float_ops(), target); |
1823 | } |
1824 | |
1825 | // .tensorflow.tfprof.TFProfTensorProto tensor_value = 15; |
1826 | if (this->has_tensor_value()) { |
1827 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1828 | InternalWriteMessageToArray( |
1829 | 15, _Internal::tensor_value(this), target); |
1830 | } |
1831 | |
1832 | // map<int32, .tensorflow.TensorShapeProto> input_shapes = 16; |
1833 | if (!this->input_shapes().empty()) { |
1834 | typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_pointer |
1835 | ConstPtr; |
1836 | typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< ::PROTOBUF_NAMESPACE_ID::int32, ConstPtr > SortItem; |
1837 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField<SortItem> Less; |
1838 | |
1839 | if (false && |
1840 | this->input_shapes().size() > 1) { |
1841 | ::std::unique_ptr<SortItem[]> items( |
1842 | new SortItem[this->input_shapes().size()]); |
1843 | typedef ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::size_type size_type; |
1844 | size_type n = 0; |
1845 | for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_iterator |
1846 | it = this->input_shapes().begin(); |
1847 | it != this->input_shapes().end(); ++it, ++n) { |
1848 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
1849 | } |
1850 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
1851 | for (size_type i = 0; i < n; i++) { |
1852 | target = GraphNodeProto_InputShapesEntry_DoNotUse::Funcs::SerializeToArray(16, items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second, target); |
1853 | } |
1854 | } else { |
1855 | for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_iterator |
1856 | it = this->input_shapes().begin(); |
1857 | it != this->input_shapes().end(); ++it) { |
1858 | target = GraphNodeProto_InputShapesEntry_DoNotUse::Funcs::SerializeToArray(16, it->first, it->second, target); |
1859 | } |
1860 | } |
1861 | } |
1862 | |
1863 | // int64 accelerator_exec_micros = 17; |
1864 | if (this->accelerator_exec_micros() != 0) { |
1865 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(17, this->accelerator_exec_micros(), target); |
1866 | } |
1867 | |
1868 | // int64 cpu_exec_micros = 18; |
1869 | if (this->cpu_exec_micros() != 0) { |
1870 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(18, this->cpu_exec_micros(), target); |
1871 | } |
1872 | |
1873 | // int64 total_accelerator_exec_micros = 19; |
1874 | if (this->total_accelerator_exec_micros() != 0) { |
1875 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(19, this->total_accelerator_exec_micros(), target); |
1876 | } |
1877 | |
1878 | // int64 total_cpu_exec_micros = 20; |
1879 | if (this->total_cpu_exec_micros() != 0) { |
1880 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(20, this->total_cpu_exec_micros(), target); |
1881 | } |
1882 | |
1883 | // int64 run_count = 21; |
1884 | if (this->run_count() != 0) { |
1885 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(21, this->run_count(), target); |
1886 | } |
1887 | |
1888 | // int64 total_run_count = 22; |
1889 | if (this->total_run_count() != 0) { |
1890 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(22, this->total_run_count(), target); |
1891 | } |
1892 | |
1893 | // int64 total_definition_count = 23; |
1894 | if (this->total_definition_count() != 0) { |
1895 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(23, this->total_definition_count(), target); |
1896 | } |
1897 | |
1898 | // int64 peak_bytes = 24; |
1899 | if (this->peak_bytes() != 0) { |
1900 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(24, this->peak_bytes(), target); |
1901 | } |
1902 | |
1903 | // int64 residual_bytes = 25; |
1904 | if (this->residual_bytes() != 0) { |
1905 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(25, this->residual_bytes(), target); |
1906 | } |
1907 | |
1908 | // int64 output_bytes = 26; |
1909 | if (this->output_bytes() != 0) { |
1910 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(26, this->output_bytes(), target); |
1911 | } |
1912 | |
1913 | // int64 total_peak_bytes = 27; |
1914 | if (this->total_peak_bytes() != 0) { |
1915 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(27, this->total_peak_bytes(), target); |
1916 | } |
1917 | |
1918 | // int64 total_residual_bytes = 28; |
1919 | if (this->total_residual_bytes() != 0) { |
1920 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(28, this->total_residual_bytes(), target); |
1921 | } |
1922 | |
1923 | // int64 total_output_bytes = 29; |
1924 | if (this->total_output_bytes() != 0) { |
1925 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(29, this->total_output_bytes(), target); |
1926 | } |
1927 | |
1928 | if (_internal_metadata_.have_unknown_fields()) { |
1929 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1930 | _internal_metadata_.unknown_fields(), target); |
1931 | } |
1932 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.GraphNodeProto) |
1933 | return target; |
1934 | } |
1935 | |
1936 | size_t GraphNodeProto::ByteSizeLong() const { |
1937 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.GraphNodeProto) |
1938 | size_t total_size = 0; |
1939 | |
1940 | if (_internal_metadata_.have_unknown_fields()) { |
1941 | total_size += |
1942 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1943 | _internal_metadata_.unknown_fields()); |
1944 | } |
1945 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1946 | // Prevent compiler warnings about cached_has_bits being unused |
1947 | (void) cached_has_bits; |
1948 | |
1949 | // repeated string devices = 10; |
1950 | total_size += 1 * |
1951 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->devices_size()); |
1952 | for (int i = 0, n = this->devices_size(); i < n; i++) { |
1953 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1954 | this->devices(i)); |
1955 | } |
1956 | |
1957 | // repeated .tensorflow.TensorShapeProto shapes = 11; |
1958 | { |
1959 | unsigned int count = static_cast<unsigned int>(this->shapes_size()); |
1960 | total_size += 1UL * count; |
1961 | for (unsigned int i = 0; i < count; i++) { |
1962 | total_size += |
1963 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1964 | this->shapes(static_cast<int>(i))); |
1965 | } |
1966 | } |
1967 | |
1968 | // repeated .tensorflow.tfprof.GraphNodeProto children = 12; |
1969 | { |
1970 | unsigned int count = static_cast<unsigned int>(this->children_size()); |
1971 | total_size += 1UL * count; |
1972 | for (unsigned int i = 0; i < count; i++) { |
1973 | total_size += |
1974 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1975 | this->children(static_cast<int>(i))); |
1976 | } |
1977 | } |
1978 | |
1979 | // map<int32, .tensorflow.TensorShapeProto> input_shapes = 16; |
1980 | total_size += 2 * |
1981 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->input_shapes_size()); |
1982 | for (::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TensorShapeProto >::const_iterator |
1983 | it = this->input_shapes().begin(); |
1984 | it != this->input_shapes().end(); ++it) { |
1985 | total_size += GraphNodeProto_InputShapesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
1986 | } |
1987 | |
1988 | // string name = 1; |
1989 | if (this->name().size() > 0) { |
1990 | total_size += 1 + |
1991 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1992 | this->name()); |
1993 | } |
1994 | |
1995 | // .tensorflow.tfprof.TFProfTensorProto tensor_value = 15; |
1996 | if (this->has_tensor_value()) { |
1997 | total_size += 1 + |
1998 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1999 | *tensor_value_); |
2000 | } |
2001 | |
2002 | // int64 exec_micros = 2; |
2003 | if (this->exec_micros() != 0) { |
2004 | total_size += 1 + |
2005 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2006 | this->exec_micros()); |
2007 | } |
2008 | |
2009 | // int64 requested_bytes = 3; |
2010 | if (this->requested_bytes() != 0) { |
2011 | total_size += 1 + |
2012 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2013 | this->requested_bytes()); |
2014 | } |
2015 | |
2016 | // int64 parameters = 4; |
2017 | if (this->parameters() != 0) { |
2018 | total_size += 1 + |
2019 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2020 | this->parameters()); |
2021 | } |
2022 | |
2023 | // int64 total_exec_micros = 6; |
2024 | if (this->total_exec_micros() != 0) { |
2025 | total_size += 1 + |
2026 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2027 | this->total_exec_micros()); |
2028 | } |
2029 | |
2030 | // int64 total_requested_bytes = 7; |
2031 | if (this->total_requested_bytes() != 0) { |
2032 | total_size += 1 + |
2033 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2034 | this->total_requested_bytes()); |
2035 | } |
2036 | |
2037 | // int64 total_parameters = 8; |
2038 | if (this->total_parameters() != 0) { |
2039 | total_size += 1 + |
2040 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2041 | this->total_parameters()); |
2042 | } |
2043 | |
2044 | // int64 float_ops = 13; |
2045 | if (this->float_ops() != 0) { |
2046 | total_size += 1 + |
2047 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2048 | this->float_ops()); |
2049 | } |
2050 | |
2051 | // int64 total_float_ops = 14; |
2052 | if (this->total_float_ops() != 0) { |
2053 | total_size += 1 + |
2054 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2055 | this->total_float_ops()); |
2056 | } |
2057 | |
2058 | // int64 accelerator_exec_micros = 17; |
2059 | if (this->accelerator_exec_micros() != 0) { |
2060 | total_size += 2 + |
2061 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2062 | this->accelerator_exec_micros()); |
2063 | } |
2064 | |
2065 | // int64 cpu_exec_micros = 18; |
2066 | if (this->cpu_exec_micros() != 0) { |
2067 | total_size += 2 + |
2068 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2069 | this->cpu_exec_micros()); |
2070 | } |
2071 | |
2072 | // int64 total_accelerator_exec_micros = 19; |
2073 | if (this->total_accelerator_exec_micros() != 0) { |
2074 | total_size += 2 + |
2075 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2076 | this->total_accelerator_exec_micros()); |
2077 | } |
2078 | |
2079 | // int64 total_cpu_exec_micros = 20; |
2080 | if (this->total_cpu_exec_micros() != 0) { |
2081 | total_size += 2 + |
2082 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2083 | this->total_cpu_exec_micros()); |
2084 | } |
2085 | |
2086 | // int64 run_count = 21; |
2087 | if (this->run_count() != 0) { |
2088 | total_size += 2 + |
2089 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2090 | this->run_count()); |
2091 | } |
2092 | |
2093 | // int64 total_run_count = 22; |
2094 | if (this->total_run_count() != 0) { |
2095 | total_size += 2 + |
2096 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2097 | this->total_run_count()); |
2098 | } |
2099 | |
2100 | // int64 total_definition_count = 23; |
2101 | if (this->total_definition_count() != 0) { |
2102 | total_size += 2 + |
2103 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2104 | this->total_definition_count()); |
2105 | } |
2106 | |
2107 | // int64 peak_bytes = 24; |
2108 | if (this->peak_bytes() != 0) { |
2109 | total_size += 2 + |
2110 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2111 | this->peak_bytes()); |
2112 | } |
2113 | |
2114 | // int64 residual_bytes = 25; |
2115 | if (this->residual_bytes() != 0) { |
2116 | total_size += 2 + |
2117 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2118 | this->residual_bytes()); |
2119 | } |
2120 | |
2121 | // int64 output_bytes = 26; |
2122 | if (this->output_bytes() != 0) { |
2123 | total_size += 2 + |
2124 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2125 | this->output_bytes()); |
2126 | } |
2127 | |
2128 | // int64 total_peak_bytes = 27; |
2129 | if (this->total_peak_bytes() != 0) { |
2130 | total_size += 2 + |
2131 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2132 | this->total_peak_bytes()); |
2133 | } |
2134 | |
2135 | // int64 total_residual_bytes = 28; |
2136 | if (this->total_residual_bytes() != 0) { |
2137 | total_size += 2 + |
2138 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2139 | this->total_residual_bytes()); |
2140 | } |
2141 | |
2142 | // int64 total_output_bytes = 29; |
2143 | if (this->total_output_bytes() != 0) { |
2144 | total_size += 2 + |
2145 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2146 | this->total_output_bytes()); |
2147 | } |
2148 | |
2149 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2150 | SetCachedSize(cached_size); |
2151 | return total_size; |
2152 | } |
2153 | |
2154 | void GraphNodeProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2155 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.GraphNodeProto) |
2156 | GOOGLE_DCHECK_NE(&from, this); |
2157 | const GraphNodeProto* source = |
2158 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GraphNodeProto>( |
2159 | &from); |
2160 | if (source == nullptr) { |
2161 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.GraphNodeProto) |
2162 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2163 | } else { |
2164 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.GraphNodeProto) |
2165 | MergeFrom(*source); |
2166 | } |
2167 | } |
2168 | |
2169 | void GraphNodeProto::MergeFrom(const GraphNodeProto& from) { |
2170 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.GraphNodeProto) |
2171 | GOOGLE_DCHECK_NE(&from, this); |
2172 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2173 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2174 | (void) cached_has_bits; |
2175 | |
2176 | devices_.MergeFrom(from.devices_); |
2177 | shapes_.MergeFrom(from.shapes_); |
2178 | children_.MergeFrom(from.children_); |
2179 | input_shapes_.MergeFrom(from.input_shapes_); |
2180 | if (from.name().size() > 0) { |
2181 | |
2182 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
2183 | } |
2184 | if (from.has_tensor_value()) { |
2185 | mutable_tensor_value()->::tensorflow::tfprof::TFProfTensorProto::MergeFrom(from.tensor_value()); |
2186 | } |
2187 | if (from.exec_micros() != 0) { |
2188 | set_exec_micros(from.exec_micros()); |
2189 | } |
2190 | if (from.requested_bytes() != 0) { |
2191 | set_requested_bytes(from.requested_bytes()); |
2192 | } |
2193 | if (from.parameters() != 0) { |
2194 | set_parameters(from.parameters()); |
2195 | } |
2196 | if (from.total_exec_micros() != 0) { |
2197 | set_total_exec_micros(from.total_exec_micros()); |
2198 | } |
2199 | if (from.total_requested_bytes() != 0) { |
2200 | set_total_requested_bytes(from.total_requested_bytes()); |
2201 | } |
2202 | if (from.total_parameters() != 0) { |
2203 | set_total_parameters(from.total_parameters()); |
2204 | } |
2205 | if (from.float_ops() != 0) { |
2206 | set_float_ops(from.float_ops()); |
2207 | } |
2208 | if (from.total_float_ops() != 0) { |
2209 | set_total_float_ops(from.total_float_ops()); |
2210 | } |
2211 | if (from.accelerator_exec_micros() != 0) { |
2212 | set_accelerator_exec_micros(from.accelerator_exec_micros()); |
2213 | } |
2214 | if (from.cpu_exec_micros() != 0) { |
2215 | set_cpu_exec_micros(from.cpu_exec_micros()); |
2216 | } |
2217 | if (from.total_accelerator_exec_micros() != 0) { |
2218 | set_total_accelerator_exec_micros(from.total_accelerator_exec_micros()); |
2219 | } |
2220 | if (from.total_cpu_exec_micros() != 0) { |
2221 | set_total_cpu_exec_micros(from.total_cpu_exec_micros()); |
2222 | } |
2223 | if (from.run_count() != 0) { |
2224 | set_run_count(from.run_count()); |
2225 | } |
2226 | if (from.total_run_count() != 0) { |
2227 | set_total_run_count(from.total_run_count()); |
2228 | } |
2229 | if (from.total_definition_count() != 0) { |
2230 | set_total_definition_count(from.total_definition_count()); |
2231 | } |
2232 | if (from.peak_bytes() != 0) { |
2233 | set_peak_bytes(from.peak_bytes()); |
2234 | } |
2235 | if (from.residual_bytes() != 0) { |
2236 | set_residual_bytes(from.residual_bytes()); |
2237 | } |
2238 | if (from.output_bytes() != 0) { |
2239 | set_output_bytes(from.output_bytes()); |
2240 | } |
2241 | if (from.total_peak_bytes() != 0) { |
2242 | set_total_peak_bytes(from.total_peak_bytes()); |
2243 | } |
2244 | if (from.total_residual_bytes() != 0) { |
2245 | set_total_residual_bytes(from.total_residual_bytes()); |
2246 | } |
2247 | if (from.total_output_bytes() != 0) { |
2248 | set_total_output_bytes(from.total_output_bytes()); |
2249 | } |
2250 | } |
2251 | |
2252 | void GraphNodeProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2253 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.GraphNodeProto) |
2254 | if (&from == this) return; |
2255 | Clear(); |
2256 | MergeFrom(from); |
2257 | } |
2258 | |
2259 | void GraphNodeProto::CopyFrom(const GraphNodeProto& from) { |
2260 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.GraphNodeProto) |
2261 | if (&from == this) return; |
2262 | Clear(); |
2263 | MergeFrom(from); |
2264 | } |
2265 | |
2266 | bool GraphNodeProto::IsInitialized() const { |
2267 | return true; |
2268 | } |
2269 | |
2270 | void GraphNodeProto::InternalSwap(GraphNodeProto* other) { |
2271 | using std::swap; |
2272 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2273 | devices_.InternalSwap(CastToBase(&other->devices_)); |
2274 | CastToBase(&shapes_)->InternalSwap(CastToBase(&other->shapes_)); |
2275 | CastToBase(&children_)->InternalSwap(CastToBase(&other->children_)); |
2276 | input_shapes_.Swap(&other->input_shapes_); |
2277 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2278 | GetArenaNoVirtual()); |
2279 | swap(tensor_value_, other->tensor_value_); |
2280 | swap(exec_micros_, other->exec_micros_); |
2281 | swap(requested_bytes_, other->requested_bytes_); |
2282 | swap(parameters_, other->parameters_); |
2283 | swap(total_exec_micros_, other->total_exec_micros_); |
2284 | swap(total_requested_bytes_, other->total_requested_bytes_); |
2285 | swap(total_parameters_, other->total_parameters_); |
2286 | swap(float_ops_, other->float_ops_); |
2287 | swap(total_float_ops_, other->total_float_ops_); |
2288 | swap(accelerator_exec_micros_, other->accelerator_exec_micros_); |
2289 | swap(cpu_exec_micros_, other->cpu_exec_micros_); |
2290 | swap(total_accelerator_exec_micros_, other->total_accelerator_exec_micros_); |
2291 | swap(total_cpu_exec_micros_, other->total_cpu_exec_micros_); |
2292 | swap(run_count_, other->run_count_); |
2293 | swap(total_run_count_, other->total_run_count_); |
2294 | swap(total_definition_count_, other->total_definition_count_); |
2295 | swap(peak_bytes_, other->peak_bytes_); |
2296 | swap(residual_bytes_, other->residual_bytes_); |
2297 | swap(output_bytes_, other->output_bytes_); |
2298 | swap(total_peak_bytes_, other->total_peak_bytes_); |
2299 | swap(total_residual_bytes_, other->total_residual_bytes_); |
2300 | swap(total_output_bytes_, other->total_output_bytes_); |
2301 | } |
2302 | |
2303 | ::PROTOBUF_NAMESPACE_ID::Metadata GraphNodeProto::GetMetadata() const { |
2304 | return GetMetadataStatic(); |
2305 | } |
2306 | |
2307 | |
2308 | // =================================================================== |
2309 | |
2310 | void MultiGraphNodeProto::InitAsDefaultInstance() { |
2311 | } |
2312 | class MultiGraphNodeProto::_Internal { |
2313 | public: |
2314 | }; |
2315 | |
2316 | MultiGraphNodeProto::MultiGraphNodeProto() |
2317 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2318 | SharedCtor(); |
2319 | // @@protoc_insertion_point(constructor:tensorflow.tfprof.MultiGraphNodeProto) |
2320 | } |
2321 | MultiGraphNodeProto::MultiGraphNodeProto(const MultiGraphNodeProto& from) |
2322 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2323 | _internal_metadata_(nullptr), |
2324 | graph_nodes_(from.graph_nodes_), |
2325 | children_(from.children_) { |
2326 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2327 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2328 | if (!from.name().empty()) { |
2329 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
2330 | } |
2331 | ::memcpy(&exec_micros_, &from.exec_micros_, |
2332 | static_cast<size_t>(reinterpret_cast<char*>(&total_output_bytes_) - |
2333 | reinterpret_cast<char*>(&exec_micros_)) + sizeof(total_output_bytes_)); |
2334 | // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.MultiGraphNodeProto) |
2335 | } |
2336 | |
2337 | void MultiGraphNodeProto::SharedCtor() { |
2338 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
2339 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2340 | ::memset(&exec_micros_, 0, static_cast<size_t>( |
2341 | reinterpret_cast<char*>(&total_output_bytes_) - |
2342 | reinterpret_cast<char*>(&exec_micros_)) + sizeof(total_output_bytes_)); |
2343 | } |
2344 | |
2345 | MultiGraphNodeProto::~MultiGraphNodeProto() { |
2346 | // @@protoc_insertion_point(destructor:tensorflow.tfprof.MultiGraphNodeProto) |
2347 | SharedDtor(); |
2348 | } |
2349 | |
2350 | void MultiGraphNodeProto::SharedDtor() { |
2351 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2352 | } |
2353 | |
2354 | void MultiGraphNodeProto::SetCachedSize(int size) const { |
2355 | _cached_size_.Set(size); |
2356 | } |
2357 | const MultiGraphNodeProto& MultiGraphNodeProto::default_instance() { |
2358 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MultiGraphNodeProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
2359 | return *internal_default_instance(); |
2360 | } |
2361 | |
2362 | |
2363 | void MultiGraphNodeProto::Clear() { |
2364 | // @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.MultiGraphNodeProto) |
2365 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2366 | // Prevent compiler warnings about cached_has_bits being unused |
2367 | (void) cached_has_bits; |
2368 | |
2369 | graph_nodes_.Clear(); |
2370 | children_.Clear(); |
2371 | name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2372 | ::memset(&exec_micros_, 0, static_cast<size_t>( |
2373 | reinterpret_cast<char*>(&total_output_bytes_) - |
2374 | reinterpret_cast<char*>(&exec_micros_)) + sizeof(total_output_bytes_)); |
2375 | _internal_metadata_.Clear(); |
2376 | } |
2377 | |
2378 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2379 | const char* MultiGraphNodeProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2380 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2381 | while (!ctx->Done(&ptr)) { |
2382 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2383 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2384 | CHK_(ptr); |
2385 | switch (tag >> 3) { |
2386 | // string name = 1; |
2387 | case 1: |
2388 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2389 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.tfprof.MultiGraphNodeProto.name" ); |
2390 | CHK_(ptr); |
2391 | } else goto handle_unusual; |
2392 | continue; |
2393 | // int64 exec_micros = 2; |
2394 | case 2: |
2395 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
2396 | exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2397 | CHK_(ptr); |
2398 | } else goto handle_unusual; |
2399 | continue; |
2400 | // int64 requested_bytes = 3; |
2401 | case 3: |
2402 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
2403 | requested_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2404 | CHK_(ptr); |
2405 | } else goto handle_unusual; |
2406 | continue; |
2407 | // int64 parameters = 4; |
2408 | case 4: |
2409 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
2410 | parameters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2411 | CHK_(ptr); |
2412 | } else goto handle_unusual; |
2413 | continue; |
2414 | // int64 float_ops = 5; |
2415 | case 5: |
2416 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
2417 | float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2418 | CHK_(ptr); |
2419 | } else goto handle_unusual; |
2420 | continue; |
2421 | // int64 total_exec_micros = 6; |
2422 | case 6: |
2423 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
2424 | total_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2425 | CHK_(ptr); |
2426 | } else goto handle_unusual; |
2427 | continue; |
2428 | // int64 total_requested_bytes = 7; |
2429 | case 7: |
2430 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
2431 | total_requested_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2432 | CHK_(ptr); |
2433 | } else goto handle_unusual; |
2434 | continue; |
2435 | // int64 total_parameters = 8; |
2436 | case 8: |
2437 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
2438 | total_parameters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2439 | CHK_(ptr); |
2440 | } else goto handle_unusual; |
2441 | continue; |
2442 | // int64 total_float_ops = 9; |
2443 | case 9: |
2444 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { |
2445 | total_float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2446 | CHK_(ptr); |
2447 | } else goto handle_unusual; |
2448 | continue; |
2449 | // repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10; |
2450 | case 10: |
2451 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { |
2452 | ptr -= 1; |
2453 | do { |
2454 | ptr += 1; |
2455 | ptr = ctx->ParseMessage(add_graph_nodes(), ptr); |
2456 | CHK_(ptr); |
2457 | if (!ctx->DataAvailable(ptr)) break; |
2458 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82); |
2459 | } else goto handle_unusual; |
2460 | continue; |
2461 | // repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11; |
2462 | case 11: |
2463 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { |
2464 | ptr -= 1; |
2465 | do { |
2466 | ptr += 1; |
2467 | ptr = ctx->ParseMessage(add_children(), ptr); |
2468 | CHK_(ptr); |
2469 | if (!ctx->DataAvailable(ptr)) break; |
2470 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 90); |
2471 | } else goto handle_unusual; |
2472 | continue; |
2473 | // int64 accelerator_exec_micros = 12; |
2474 | case 12: |
2475 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { |
2476 | accelerator_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2477 | CHK_(ptr); |
2478 | } else goto handle_unusual; |
2479 | continue; |
2480 | // int64 cpu_exec_micros = 13; |
2481 | case 13: |
2482 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { |
2483 | cpu_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2484 | CHK_(ptr); |
2485 | } else goto handle_unusual; |
2486 | continue; |
2487 | // int64 total_accelerator_exec_micros = 14; |
2488 | case 14: |
2489 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { |
2490 | total_accelerator_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2491 | CHK_(ptr); |
2492 | } else goto handle_unusual; |
2493 | continue; |
2494 | // int64 total_cpu_exec_micros = 15; |
2495 | case 15: |
2496 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) { |
2497 | total_cpu_exec_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2498 | CHK_(ptr); |
2499 | } else goto handle_unusual; |
2500 | continue; |
2501 | // int64 peak_bytes = 16; |
2502 | case 16: |
2503 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) { |
2504 | peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2505 | CHK_(ptr); |
2506 | } else goto handle_unusual; |
2507 | continue; |
2508 | // int64 residual_bytes = 17; |
2509 | case 17: |
2510 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { |
2511 | residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2512 | CHK_(ptr); |
2513 | } else goto handle_unusual; |
2514 | continue; |
2515 | // int64 output_bytes = 18; |
2516 | case 18: |
2517 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { |
2518 | output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2519 | CHK_(ptr); |
2520 | } else goto handle_unusual; |
2521 | continue; |
2522 | // int64 total_peak_bytes = 19; |
2523 | case 19: |
2524 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { |
2525 | total_peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2526 | CHK_(ptr); |
2527 | } else goto handle_unusual; |
2528 | continue; |
2529 | // int64 total_residual_bytes = 20; |
2530 | case 20: |
2531 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { |
2532 | total_residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2533 | CHK_(ptr); |
2534 | } else goto handle_unusual; |
2535 | continue; |
2536 | // int64 total_output_bytes = 21; |
2537 | case 21: |
2538 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { |
2539 | total_output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
2540 | CHK_(ptr); |
2541 | } else goto handle_unusual; |
2542 | continue; |
2543 | default: { |
2544 | handle_unusual: |
2545 | if ((tag & 7) == 4 || tag == 0) { |
2546 | ctx->SetLastTag(tag); |
2547 | goto success; |
2548 | } |
2549 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2550 | CHK_(ptr != nullptr); |
2551 | continue; |
2552 | } |
2553 | } // switch |
2554 | } // while |
2555 | success: |
2556 | return ptr; |
2557 | failure: |
2558 | ptr = nullptr; |
2559 | goto success; |
2560 | #undef CHK_ |
2561 | } |
2562 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2563 | bool MultiGraphNodeProto::MergePartialFromCodedStream( |
2564 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2565 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2566 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2567 | // @@protoc_insertion_point(parse_start:tensorflow.tfprof.MultiGraphNodeProto) |
2568 | for (;;) { |
2569 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
2570 | tag = p.first; |
2571 | if (!p.second) goto handle_unusual; |
2572 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2573 | // string name = 1; |
2574 | case 1: { |
2575 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2576 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2577 | input, this->mutable_name())); |
2578 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2579 | this->name().data(), static_cast<int>(this->name().length()), |
2580 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2581 | "tensorflow.tfprof.MultiGraphNodeProto.name" )); |
2582 | } else { |
2583 | goto handle_unusual; |
2584 | } |
2585 | break; |
2586 | } |
2587 | |
2588 | // int64 exec_micros = 2; |
2589 | case 2: { |
2590 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
2591 | |
2592 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2593 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2594 | input, &exec_micros_))); |
2595 | } else { |
2596 | goto handle_unusual; |
2597 | } |
2598 | break; |
2599 | } |
2600 | |
2601 | // int64 requested_bytes = 3; |
2602 | case 3: { |
2603 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
2604 | |
2605 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2606 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2607 | input, &requested_bytes_))); |
2608 | } else { |
2609 | goto handle_unusual; |
2610 | } |
2611 | break; |
2612 | } |
2613 | |
2614 | // int64 parameters = 4; |
2615 | case 4: { |
2616 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { |
2617 | |
2618 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2619 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2620 | input, ¶meters_))); |
2621 | } else { |
2622 | goto handle_unusual; |
2623 | } |
2624 | break; |
2625 | } |
2626 | |
2627 | // int64 float_ops = 5; |
2628 | case 5: { |
2629 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { |
2630 | |
2631 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2632 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2633 | input, &float_ops_))); |
2634 | } else { |
2635 | goto handle_unusual; |
2636 | } |
2637 | break; |
2638 | } |
2639 | |
2640 | // int64 total_exec_micros = 6; |
2641 | case 6: { |
2642 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { |
2643 | |
2644 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2645 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2646 | input, &total_exec_micros_))); |
2647 | } else { |
2648 | goto handle_unusual; |
2649 | } |
2650 | break; |
2651 | } |
2652 | |
2653 | // int64 total_requested_bytes = 7; |
2654 | case 7: { |
2655 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { |
2656 | |
2657 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2658 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2659 | input, &total_requested_bytes_))); |
2660 | } else { |
2661 | goto handle_unusual; |
2662 | } |
2663 | break; |
2664 | } |
2665 | |
2666 | // int64 total_parameters = 8; |
2667 | case 8: { |
2668 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) { |
2669 | |
2670 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2671 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2672 | input, &total_parameters_))); |
2673 | } else { |
2674 | goto handle_unusual; |
2675 | } |
2676 | break; |
2677 | } |
2678 | |
2679 | // int64 total_float_ops = 9; |
2680 | case 9: { |
2681 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) { |
2682 | |
2683 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2684 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2685 | input, &total_float_ops_))); |
2686 | } else { |
2687 | goto handle_unusual; |
2688 | } |
2689 | break; |
2690 | } |
2691 | |
2692 | // repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10; |
2693 | case 10: { |
2694 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) { |
2695 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2696 | input, add_graph_nodes())); |
2697 | } else { |
2698 | goto handle_unusual; |
2699 | } |
2700 | break; |
2701 | } |
2702 | |
2703 | // repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11; |
2704 | case 11: { |
2705 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) { |
2706 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2707 | input, add_children())); |
2708 | } else { |
2709 | goto handle_unusual; |
2710 | } |
2711 | break; |
2712 | } |
2713 | |
2714 | // int64 accelerator_exec_micros = 12; |
2715 | case 12: { |
2716 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (96 & 0xFF)) { |
2717 | |
2718 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2719 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2720 | input, &accelerator_exec_micros_))); |
2721 | } else { |
2722 | goto handle_unusual; |
2723 | } |
2724 | break; |
2725 | } |
2726 | |
2727 | // int64 cpu_exec_micros = 13; |
2728 | case 13: { |
2729 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (104 & 0xFF)) { |
2730 | |
2731 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2732 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2733 | input, &cpu_exec_micros_))); |
2734 | } else { |
2735 | goto handle_unusual; |
2736 | } |
2737 | break; |
2738 | } |
2739 | |
2740 | // int64 total_accelerator_exec_micros = 14; |
2741 | case 14: { |
2742 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (112 & 0xFF)) { |
2743 | |
2744 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2745 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2746 | input, &total_accelerator_exec_micros_))); |
2747 | } else { |
2748 | goto handle_unusual; |
2749 | } |
2750 | break; |
2751 | } |
2752 | |
2753 | // int64 total_cpu_exec_micros = 15; |
2754 | case 15: { |
2755 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (120 & 0xFF)) { |
2756 | |
2757 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2758 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2759 | input, &total_cpu_exec_micros_))); |
2760 | } else { |
2761 | goto handle_unusual; |
2762 | } |
2763 | break; |
2764 | } |
2765 | |
2766 | // int64 peak_bytes = 16; |
2767 | case 16: { |
2768 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (128 & 0xFF)) { |
2769 | |
2770 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2771 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2772 | input, &peak_bytes_))); |
2773 | } else { |
2774 | goto handle_unusual; |
2775 | } |
2776 | break; |
2777 | } |
2778 | |
2779 | // int64 residual_bytes = 17; |
2780 | case 17: { |
2781 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) { |
2782 | |
2783 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2784 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2785 | input, &residual_bytes_))); |
2786 | } else { |
2787 | goto handle_unusual; |
2788 | } |
2789 | break; |
2790 | } |
2791 | |
2792 | // int64 output_bytes = 18; |
2793 | case 18: { |
2794 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) { |
2795 | |
2796 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2797 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2798 | input, &output_bytes_))); |
2799 | } else { |
2800 | goto handle_unusual; |
2801 | } |
2802 | break; |
2803 | } |
2804 | |
2805 | // int64 total_peak_bytes = 19; |
2806 | case 19: { |
2807 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (152 & 0xFF)) { |
2808 | |
2809 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2810 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2811 | input, &total_peak_bytes_))); |
2812 | } else { |
2813 | goto handle_unusual; |
2814 | } |
2815 | break; |
2816 | } |
2817 | |
2818 | // int64 total_residual_bytes = 20; |
2819 | case 20: { |
2820 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (160 & 0xFF)) { |
2821 | |
2822 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2823 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2824 | input, &total_residual_bytes_))); |
2825 | } else { |
2826 | goto handle_unusual; |
2827 | } |
2828 | break; |
2829 | } |
2830 | |
2831 | // int64 total_output_bytes = 21; |
2832 | case 21: { |
2833 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (168 & 0xFF)) { |
2834 | |
2835 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
2836 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
2837 | input, &total_output_bytes_))); |
2838 | } else { |
2839 | goto handle_unusual; |
2840 | } |
2841 | break; |
2842 | } |
2843 | |
2844 | default: { |
2845 | handle_unusual: |
2846 | if (tag == 0) { |
2847 | goto success; |
2848 | } |
2849 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2850 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2851 | break; |
2852 | } |
2853 | } |
2854 | } |
2855 | success: |
2856 | // @@protoc_insertion_point(parse_success:tensorflow.tfprof.MultiGraphNodeProto) |
2857 | return true; |
2858 | failure: |
2859 | // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.MultiGraphNodeProto) |
2860 | return false; |
2861 | #undef DO_ |
2862 | } |
2863 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2864 | |
2865 | void MultiGraphNodeProto::SerializeWithCachedSizes( |
2866 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2867 | // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.MultiGraphNodeProto) |
2868 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2869 | (void) cached_has_bits; |
2870 | |
2871 | // string name = 1; |
2872 | if (this->name().size() > 0) { |
2873 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2874 | this->name().data(), static_cast<int>(this->name().length()), |
2875 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2876 | "tensorflow.tfprof.MultiGraphNodeProto.name" ); |
2877 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2878 | 1, this->name(), output); |
2879 | } |
2880 | |
2881 | // int64 exec_micros = 2; |
2882 | if (this->exec_micros() != 0) { |
2883 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->exec_micros(), output); |
2884 | } |
2885 | |
2886 | // int64 requested_bytes = 3; |
2887 | if (this->requested_bytes() != 0) { |
2888 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->requested_bytes(), output); |
2889 | } |
2890 | |
2891 | // int64 parameters = 4; |
2892 | if (this->parameters() != 0) { |
2893 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->parameters(), output); |
2894 | } |
2895 | |
2896 | // int64 float_ops = 5; |
2897 | if (this->float_ops() != 0) { |
2898 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->float_ops(), output); |
2899 | } |
2900 | |
2901 | // int64 total_exec_micros = 6; |
2902 | if (this->total_exec_micros() != 0) { |
2903 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->total_exec_micros(), output); |
2904 | } |
2905 | |
2906 | // int64 total_requested_bytes = 7; |
2907 | if (this->total_requested_bytes() != 0) { |
2908 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->total_requested_bytes(), output); |
2909 | } |
2910 | |
2911 | // int64 total_parameters = 8; |
2912 | if (this->total_parameters() != 0) { |
2913 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(8, this->total_parameters(), output); |
2914 | } |
2915 | |
2916 | // int64 total_float_ops = 9; |
2917 | if (this->total_float_ops() != 0) { |
2918 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(9, this->total_float_ops(), output); |
2919 | } |
2920 | |
2921 | // repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10; |
2922 | for (unsigned int i = 0, |
2923 | n = static_cast<unsigned int>(this->graph_nodes_size()); i < n; i++) { |
2924 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2925 | 10, |
2926 | this->graph_nodes(static_cast<int>(i)), |
2927 | output); |
2928 | } |
2929 | |
2930 | // repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11; |
2931 | for (unsigned int i = 0, |
2932 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
2933 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2934 | 11, |
2935 | this->children(static_cast<int>(i)), |
2936 | output); |
2937 | } |
2938 | |
2939 | // int64 accelerator_exec_micros = 12; |
2940 | if (this->accelerator_exec_micros() != 0) { |
2941 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(12, this->accelerator_exec_micros(), output); |
2942 | } |
2943 | |
2944 | // int64 cpu_exec_micros = 13; |
2945 | if (this->cpu_exec_micros() != 0) { |
2946 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(13, this->cpu_exec_micros(), output); |
2947 | } |
2948 | |
2949 | // int64 total_accelerator_exec_micros = 14; |
2950 | if (this->total_accelerator_exec_micros() != 0) { |
2951 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(14, this->total_accelerator_exec_micros(), output); |
2952 | } |
2953 | |
2954 | // int64 total_cpu_exec_micros = 15; |
2955 | if (this->total_cpu_exec_micros() != 0) { |
2956 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(15, this->total_cpu_exec_micros(), output); |
2957 | } |
2958 | |
2959 | // int64 peak_bytes = 16; |
2960 | if (this->peak_bytes() != 0) { |
2961 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(16, this->peak_bytes(), output); |
2962 | } |
2963 | |
2964 | // int64 residual_bytes = 17; |
2965 | if (this->residual_bytes() != 0) { |
2966 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(17, this->residual_bytes(), output); |
2967 | } |
2968 | |
2969 | // int64 output_bytes = 18; |
2970 | if (this->output_bytes() != 0) { |
2971 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(18, this->output_bytes(), output); |
2972 | } |
2973 | |
2974 | // int64 total_peak_bytes = 19; |
2975 | if (this->total_peak_bytes() != 0) { |
2976 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(19, this->total_peak_bytes(), output); |
2977 | } |
2978 | |
2979 | // int64 total_residual_bytes = 20; |
2980 | if (this->total_residual_bytes() != 0) { |
2981 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(20, this->total_residual_bytes(), output); |
2982 | } |
2983 | |
2984 | // int64 total_output_bytes = 21; |
2985 | if (this->total_output_bytes() != 0) { |
2986 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(21, this->total_output_bytes(), output); |
2987 | } |
2988 | |
2989 | if (_internal_metadata_.have_unknown_fields()) { |
2990 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2991 | _internal_metadata_.unknown_fields(), output); |
2992 | } |
2993 | // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.MultiGraphNodeProto) |
2994 | } |
2995 | |
2996 | ::PROTOBUF_NAMESPACE_ID::uint8* MultiGraphNodeProto::InternalSerializeWithCachedSizesToArray( |
2997 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2998 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.MultiGraphNodeProto) |
2999 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3000 | (void) cached_has_bits; |
3001 | |
3002 | // string name = 1; |
3003 | if (this->name().size() > 0) { |
3004 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3005 | this->name().data(), static_cast<int>(this->name().length()), |
3006 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3007 | "tensorflow.tfprof.MultiGraphNodeProto.name" ); |
3008 | target = |
3009 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3010 | 1, this->name(), target); |
3011 | } |
3012 | |
3013 | // int64 exec_micros = 2; |
3014 | if (this->exec_micros() != 0) { |
3015 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->exec_micros(), target); |
3016 | } |
3017 | |
3018 | // int64 requested_bytes = 3; |
3019 | if (this->requested_bytes() != 0) { |
3020 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->requested_bytes(), target); |
3021 | } |
3022 | |
3023 | // int64 parameters = 4; |
3024 | if (this->parameters() != 0) { |
3025 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->parameters(), target); |
3026 | } |
3027 | |
3028 | // int64 float_ops = 5; |
3029 | if (this->float_ops() != 0) { |
3030 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->float_ops(), target); |
3031 | } |
3032 | |
3033 | // int64 total_exec_micros = 6; |
3034 | if (this->total_exec_micros() != 0) { |
3035 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->total_exec_micros(), target); |
3036 | } |
3037 | |
3038 | // int64 total_requested_bytes = 7; |
3039 | if (this->total_requested_bytes() != 0) { |
3040 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->total_requested_bytes(), target); |
3041 | } |
3042 | |
3043 | // int64 total_parameters = 8; |
3044 | if (this->total_parameters() != 0) { |
3045 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->total_parameters(), target); |
3046 | } |
3047 | |
3048 | // int64 total_float_ops = 9; |
3049 | if (this->total_float_ops() != 0) { |
3050 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->total_float_ops(), target); |
3051 | } |
3052 | |
3053 | // repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10; |
3054 | for (unsigned int i = 0, |
3055 | n = static_cast<unsigned int>(this->graph_nodes_size()); i < n; i++) { |
3056 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3057 | InternalWriteMessageToArray( |
3058 | 10, this->graph_nodes(static_cast<int>(i)), target); |
3059 | } |
3060 | |
3061 | // repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11; |
3062 | for (unsigned int i = 0, |
3063 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
3064 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3065 | InternalWriteMessageToArray( |
3066 | 11, this->children(static_cast<int>(i)), target); |
3067 | } |
3068 | |
3069 | // int64 accelerator_exec_micros = 12; |
3070 | if (this->accelerator_exec_micros() != 0) { |
3071 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(12, this->accelerator_exec_micros(), target); |
3072 | } |
3073 | |
3074 | // int64 cpu_exec_micros = 13; |
3075 | if (this->cpu_exec_micros() != 0) { |
3076 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(13, this->cpu_exec_micros(), target); |
3077 | } |
3078 | |
3079 | // int64 total_accelerator_exec_micros = 14; |
3080 | if (this->total_accelerator_exec_micros() != 0) { |
3081 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(14, this->total_accelerator_exec_micros(), target); |
3082 | } |
3083 | |
3084 | // int64 total_cpu_exec_micros = 15; |
3085 | if (this->total_cpu_exec_micros() != 0) { |
3086 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(15, this->total_cpu_exec_micros(), target); |
3087 | } |
3088 | |
3089 | // int64 peak_bytes = 16; |
3090 | if (this->peak_bytes() != 0) { |
3091 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(16, this->peak_bytes(), target); |
3092 | } |
3093 | |
3094 | // int64 residual_bytes = 17; |
3095 | if (this->residual_bytes() != 0) { |
3096 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(17, this->residual_bytes(), target); |
3097 | } |
3098 | |
3099 | // int64 output_bytes = 18; |
3100 | if (this->output_bytes() != 0) { |
3101 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(18, this->output_bytes(), target); |
3102 | } |
3103 | |
3104 | // int64 total_peak_bytes = 19; |
3105 | if (this->total_peak_bytes() != 0) { |
3106 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(19, this->total_peak_bytes(), target); |
3107 | } |
3108 | |
3109 | // int64 total_residual_bytes = 20; |
3110 | if (this->total_residual_bytes() != 0) { |
3111 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(20, this->total_residual_bytes(), target); |
3112 | } |
3113 | |
3114 | // int64 total_output_bytes = 21; |
3115 | if (this->total_output_bytes() != 0) { |
3116 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(21, this->total_output_bytes(), target); |
3117 | } |
3118 | |
3119 | if (_internal_metadata_.have_unknown_fields()) { |
3120 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3121 | _internal_metadata_.unknown_fields(), target); |
3122 | } |
3123 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.MultiGraphNodeProto) |
3124 | return target; |
3125 | } |
3126 | |
3127 | size_t MultiGraphNodeProto::ByteSizeLong() const { |
3128 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.MultiGraphNodeProto) |
3129 | size_t total_size = 0; |
3130 | |
3131 | if (_internal_metadata_.have_unknown_fields()) { |
3132 | total_size += |
3133 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3134 | _internal_metadata_.unknown_fields()); |
3135 | } |
3136 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3137 | // Prevent compiler warnings about cached_has_bits being unused |
3138 | (void) cached_has_bits; |
3139 | |
3140 | // repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10; |
3141 | { |
3142 | unsigned int count = static_cast<unsigned int>(this->graph_nodes_size()); |
3143 | total_size += 1UL * count; |
3144 | for (unsigned int i = 0; i < count; i++) { |
3145 | total_size += |
3146 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3147 | this->graph_nodes(static_cast<int>(i))); |
3148 | } |
3149 | } |
3150 | |
3151 | // repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11; |
3152 | { |
3153 | unsigned int count = static_cast<unsigned int>(this->children_size()); |
3154 | total_size += 1UL * count; |
3155 | for (unsigned int i = 0; i < count; i++) { |
3156 | total_size += |
3157 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3158 | this->children(static_cast<int>(i))); |
3159 | } |
3160 | } |
3161 | |
3162 | // string name = 1; |
3163 | if (this->name().size() > 0) { |
3164 | total_size += 1 + |
3165 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3166 | this->name()); |
3167 | } |
3168 | |
3169 | // int64 exec_micros = 2; |
3170 | if (this->exec_micros() != 0) { |
3171 | total_size += 1 + |
3172 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3173 | this->exec_micros()); |
3174 | } |
3175 | |
3176 | // int64 requested_bytes = 3; |
3177 | if (this->requested_bytes() != 0) { |
3178 | total_size += 1 + |
3179 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3180 | this->requested_bytes()); |
3181 | } |
3182 | |
3183 | // int64 parameters = 4; |
3184 | if (this->parameters() != 0) { |
3185 | total_size += 1 + |
3186 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3187 | this->parameters()); |
3188 | } |
3189 | |
3190 | // int64 float_ops = 5; |
3191 | if (this->float_ops() != 0) { |
3192 | total_size += 1 + |
3193 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3194 | this->float_ops()); |
3195 | } |
3196 | |
3197 | // int64 total_exec_micros = 6; |
3198 | if (this->total_exec_micros() != 0) { |
3199 | total_size += 1 + |
3200 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3201 | this->total_exec_micros()); |
3202 | } |
3203 | |
3204 | // int64 total_requested_bytes = 7; |
3205 | if (this->total_requested_bytes() != 0) { |
3206 | total_size += 1 + |
3207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3208 | this->total_requested_bytes()); |
3209 | } |
3210 | |
3211 | // int64 total_parameters = 8; |
3212 | if (this->total_parameters() != 0) { |
3213 | total_size += 1 + |
3214 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3215 | this->total_parameters()); |
3216 | } |
3217 | |
3218 | // int64 total_float_ops = 9; |
3219 | if (this->total_float_ops() != 0) { |
3220 | total_size += 1 + |
3221 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3222 | this->total_float_ops()); |
3223 | } |
3224 | |
3225 | // int64 accelerator_exec_micros = 12; |
3226 | if (this->accelerator_exec_micros() != 0) { |
3227 | total_size += 1 + |
3228 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3229 | this->accelerator_exec_micros()); |
3230 | } |
3231 | |
3232 | // int64 cpu_exec_micros = 13; |
3233 | if (this->cpu_exec_micros() != 0) { |
3234 | total_size += 1 + |
3235 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3236 | this->cpu_exec_micros()); |
3237 | } |
3238 | |
3239 | // int64 total_accelerator_exec_micros = 14; |
3240 | if (this->total_accelerator_exec_micros() != 0) { |
3241 | total_size += 1 + |
3242 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3243 | this->total_accelerator_exec_micros()); |
3244 | } |
3245 | |
3246 | // int64 total_cpu_exec_micros = 15; |
3247 | if (this->total_cpu_exec_micros() != 0) { |
3248 | total_size += 1 + |
3249 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3250 | this->total_cpu_exec_micros()); |
3251 | } |
3252 | |
3253 | // int64 peak_bytes = 16; |
3254 | if (this->peak_bytes() != 0) { |
3255 | total_size += 2 + |
3256 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3257 | this->peak_bytes()); |
3258 | } |
3259 | |
3260 | // int64 residual_bytes = 17; |
3261 | if (this->residual_bytes() != 0) { |
3262 | total_size += 2 + |
3263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3264 | this->residual_bytes()); |
3265 | } |
3266 | |
3267 | // int64 output_bytes = 18; |
3268 | if (this->output_bytes() != 0) { |
3269 | total_size += 2 + |
3270 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3271 | this->output_bytes()); |
3272 | } |
3273 | |
3274 | // int64 total_peak_bytes = 19; |
3275 | if (this->total_peak_bytes() != 0) { |
3276 | total_size += 2 + |
3277 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3278 | this->total_peak_bytes()); |
3279 | } |
3280 | |
3281 | // int64 total_residual_bytes = 20; |
3282 | if (this->total_residual_bytes() != 0) { |
3283 | total_size += 2 + |
3284 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3285 | this->total_residual_bytes()); |
3286 | } |
3287 | |
3288 | // int64 total_output_bytes = 21; |
3289 | if (this->total_output_bytes() != 0) { |
3290 | total_size += 2 + |
3291 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3292 | this->total_output_bytes()); |
3293 | } |
3294 | |
3295 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3296 | SetCachedSize(cached_size); |
3297 | return total_size; |
3298 | } |
3299 | |
3300 | void MultiGraphNodeProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3301 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.MultiGraphNodeProto) |
3302 | GOOGLE_DCHECK_NE(&from, this); |
3303 | const MultiGraphNodeProto* source = |
3304 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MultiGraphNodeProto>( |
3305 | &from); |
3306 | if (source == nullptr) { |
3307 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.MultiGraphNodeProto) |
3308 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3309 | } else { |
3310 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.MultiGraphNodeProto) |
3311 | MergeFrom(*source); |
3312 | } |
3313 | } |
3314 | |
3315 | void MultiGraphNodeProto::MergeFrom(const MultiGraphNodeProto& from) { |
3316 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.MultiGraphNodeProto) |
3317 | GOOGLE_DCHECK_NE(&from, this); |
3318 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3319 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3320 | (void) cached_has_bits; |
3321 | |
3322 | graph_nodes_.MergeFrom(from.graph_nodes_); |
3323 | children_.MergeFrom(from.children_); |
3324 | if (from.name().size() > 0) { |
3325 | |
3326 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
3327 | } |
3328 | if (from.exec_micros() != 0) { |
3329 | set_exec_micros(from.exec_micros()); |
3330 | } |
3331 | if (from.requested_bytes() != 0) { |
3332 | set_requested_bytes(from.requested_bytes()); |
3333 | } |
3334 | if (from.parameters() != 0) { |
3335 | set_parameters(from.parameters()); |
3336 | } |
3337 | if (from.float_ops() != 0) { |
3338 | set_float_ops(from.float_ops()); |
3339 | } |
3340 | if (from.total_exec_micros() != 0) { |
3341 | set_total_exec_micros(from.total_exec_micros()); |
3342 | } |
3343 | if (from.total_requested_bytes() != 0) { |
3344 | set_total_requested_bytes(from.total_requested_bytes()); |
3345 | } |
3346 | if (from.total_parameters() != 0) { |
3347 | set_total_parameters(from.total_parameters()); |
3348 | } |
3349 | if (from.total_float_ops() != 0) { |
3350 | set_total_float_ops(from.total_float_ops()); |
3351 | } |
3352 | if (from.accelerator_exec_micros() != 0) { |
3353 | set_accelerator_exec_micros(from.accelerator_exec_micros()); |
3354 | } |
3355 | if (from.cpu_exec_micros() != 0) { |
3356 | set_cpu_exec_micros(from.cpu_exec_micros()); |
3357 | } |
3358 | if (from.total_accelerator_exec_micros() != 0) { |
3359 | set_total_accelerator_exec_micros(from.total_accelerator_exec_micros()); |
3360 | } |
3361 | if (from.total_cpu_exec_micros() != 0) { |
3362 | set_total_cpu_exec_micros(from.total_cpu_exec_micros()); |
3363 | } |
3364 | if (from.peak_bytes() != 0) { |
3365 | set_peak_bytes(from.peak_bytes()); |
3366 | } |
3367 | if (from.residual_bytes() != 0) { |
3368 | set_residual_bytes(from.residual_bytes()); |
3369 | } |
3370 | if (from.output_bytes() != 0) { |
3371 | set_output_bytes(from.output_bytes()); |
3372 | } |
3373 | if (from.total_peak_bytes() != 0) { |
3374 | set_total_peak_bytes(from.total_peak_bytes()); |
3375 | } |
3376 | if (from.total_residual_bytes() != 0) { |
3377 | set_total_residual_bytes(from.total_residual_bytes()); |
3378 | } |
3379 | if (from.total_output_bytes() != 0) { |
3380 | set_total_output_bytes(from.total_output_bytes()); |
3381 | } |
3382 | } |
3383 | |
3384 | void MultiGraphNodeProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3385 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.MultiGraphNodeProto) |
3386 | if (&from == this) return; |
3387 | Clear(); |
3388 | MergeFrom(from); |
3389 | } |
3390 | |
3391 | void MultiGraphNodeProto::CopyFrom(const MultiGraphNodeProto& from) { |
3392 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.MultiGraphNodeProto) |
3393 | if (&from == this) return; |
3394 | Clear(); |
3395 | MergeFrom(from); |
3396 | } |
3397 | |
3398 | bool MultiGraphNodeProto::IsInitialized() const { |
3399 | return true; |
3400 | } |
3401 | |
3402 | void MultiGraphNodeProto::InternalSwap(MultiGraphNodeProto* other) { |
3403 | using std::swap; |
3404 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3405 | CastToBase(&graph_nodes_)->InternalSwap(CastToBase(&other->graph_nodes_)); |
3406 | CastToBase(&children_)->InternalSwap(CastToBase(&other->children_)); |
3407 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3408 | GetArenaNoVirtual()); |
3409 | swap(exec_micros_, other->exec_micros_); |
3410 | swap(requested_bytes_, other->requested_bytes_); |
3411 | swap(parameters_, other->parameters_); |
3412 | swap(float_ops_, other->float_ops_); |
3413 | swap(total_exec_micros_, other->total_exec_micros_); |
3414 | swap(total_requested_bytes_, other->total_requested_bytes_); |
3415 | swap(total_parameters_, other->total_parameters_); |
3416 | swap(total_float_ops_, other->total_float_ops_); |
3417 | swap(accelerator_exec_micros_, other->accelerator_exec_micros_); |
3418 | swap(cpu_exec_micros_, other->cpu_exec_micros_); |
3419 | swap(total_accelerator_exec_micros_, other->total_accelerator_exec_micros_); |
3420 | swap(total_cpu_exec_micros_, other->total_cpu_exec_micros_); |
3421 | swap(peak_bytes_, other->peak_bytes_); |
3422 | swap(residual_bytes_, other->residual_bytes_); |
3423 | swap(output_bytes_, other->output_bytes_); |
3424 | swap(total_peak_bytes_, other->total_peak_bytes_); |
3425 | swap(total_residual_bytes_, other->total_residual_bytes_); |
3426 | swap(total_output_bytes_, other->total_output_bytes_); |
3427 | } |
3428 | |
3429 | ::PROTOBUF_NAMESPACE_ID::Metadata MultiGraphNodeProto::GetMetadata() const { |
3430 | return GetMetadataStatic(); |
3431 | } |
3432 | |
3433 | |
3434 | // =================================================================== |
3435 | |
3436 | AdviceProto_CheckersEntry_DoNotUse::AdviceProto_CheckersEntry_DoNotUse() {} |
3437 | AdviceProto_CheckersEntry_DoNotUse::AdviceProto_CheckersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3438 | : SuperType(arena) {} |
3439 | void AdviceProto_CheckersEntry_DoNotUse::MergeFrom(const AdviceProto_CheckersEntry_DoNotUse& other) { |
3440 | MergeFromInternal(other); |
3441 | } |
3442 | ::PROTOBUF_NAMESPACE_ID::Metadata AdviceProto_CheckersEntry_DoNotUse::GetMetadata() const { |
3443 | return GetMetadataStatic(); |
3444 | } |
3445 | void AdviceProto_CheckersEntry_DoNotUse::MergeFrom( |
3446 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
3447 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
3448 | } |
3449 | |
3450 | |
3451 | // =================================================================== |
3452 | |
3453 | void AdviceProto_Checker::InitAsDefaultInstance() { |
3454 | } |
3455 | class AdviceProto_Checker::_Internal { |
3456 | public: |
3457 | }; |
3458 | |
3459 | AdviceProto_Checker::AdviceProto_Checker() |
3460 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3461 | SharedCtor(); |
3462 | // @@protoc_insertion_point(constructor:tensorflow.tfprof.AdviceProto.Checker) |
3463 | } |
3464 | AdviceProto_Checker::AdviceProto_Checker(const AdviceProto_Checker& from) |
3465 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3466 | _internal_metadata_(nullptr), |
3467 | reports_(from.reports_) { |
3468 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3469 | // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.AdviceProto.Checker) |
3470 | } |
3471 | |
3472 | void AdviceProto_Checker::SharedCtor() { |
3473 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
3474 | } |
3475 | |
3476 | AdviceProto_Checker::~AdviceProto_Checker() { |
3477 | // @@protoc_insertion_point(destructor:tensorflow.tfprof.AdviceProto.Checker) |
3478 | SharedDtor(); |
3479 | } |
3480 | |
3481 | void AdviceProto_Checker::SharedDtor() { |
3482 | } |
3483 | |
3484 | void AdviceProto_Checker::SetCachedSize(int size) const { |
3485 | _cached_size_.Set(size); |
3486 | } |
3487 | const AdviceProto_Checker& AdviceProto_Checker::default_instance() { |
3488 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdviceProto_Checker_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
3489 | return *internal_default_instance(); |
3490 | } |
3491 | |
3492 | |
3493 | void AdviceProto_Checker::Clear() { |
3494 | // @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.AdviceProto.Checker) |
3495 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3496 | // Prevent compiler warnings about cached_has_bits being unused |
3497 | (void) cached_has_bits; |
3498 | |
3499 | reports_.Clear(); |
3500 | _internal_metadata_.Clear(); |
3501 | } |
3502 | |
3503 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3504 | const char* AdviceProto_Checker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3505 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3506 | while (!ctx->Done(&ptr)) { |
3507 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3508 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3509 | CHK_(ptr); |
3510 | switch (tag >> 3) { |
3511 | // repeated string reports = 2; |
3512 | case 2: |
3513 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
3514 | ptr -= 1; |
3515 | do { |
3516 | ptr += 1; |
3517 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_reports(), ptr, ctx, "tensorflow.tfprof.AdviceProto.Checker.reports" ); |
3518 | CHK_(ptr); |
3519 | if (!ctx->DataAvailable(ptr)) break; |
3520 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
3521 | } else goto handle_unusual; |
3522 | continue; |
3523 | default: { |
3524 | handle_unusual: |
3525 | if ((tag & 7) == 4 || tag == 0) { |
3526 | ctx->SetLastTag(tag); |
3527 | goto success; |
3528 | } |
3529 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3530 | CHK_(ptr != nullptr); |
3531 | continue; |
3532 | } |
3533 | } // switch |
3534 | } // while |
3535 | success: |
3536 | return ptr; |
3537 | failure: |
3538 | ptr = nullptr; |
3539 | goto success; |
3540 | #undef CHK_ |
3541 | } |
3542 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3543 | bool AdviceProto_Checker::MergePartialFromCodedStream( |
3544 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3545 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3546 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3547 | // @@protoc_insertion_point(parse_start:tensorflow.tfprof.AdviceProto.Checker) |
3548 | for (;;) { |
3549 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3550 | tag = p.first; |
3551 | if (!p.second) goto handle_unusual; |
3552 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3553 | // repeated string reports = 2; |
3554 | case 2: { |
3555 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
3556 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3557 | input, this->add_reports())); |
3558 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3559 | this->reports(this->reports_size() - 1).data(), |
3560 | static_cast<int>(this->reports(this->reports_size() - 1).length()), |
3561 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3562 | "tensorflow.tfprof.AdviceProto.Checker.reports" )); |
3563 | } else { |
3564 | goto handle_unusual; |
3565 | } |
3566 | break; |
3567 | } |
3568 | |
3569 | default: { |
3570 | handle_unusual: |
3571 | if (tag == 0) { |
3572 | goto success; |
3573 | } |
3574 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3575 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3576 | break; |
3577 | } |
3578 | } |
3579 | } |
3580 | success: |
3581 | // @@protoc_insertion_point(parse_success:tensorflow.tfprof.AdviceProto.Checker) |
3582 | return true; |
3583 | failure: |
3584 | // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.AdviceProto.Checker) |
3585 | return false; |
3586 | #undef DO_ |
3587 | } |
3588 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3589 | |
3590 | void AdviceProto_Checker::SerializeWithCachedSizes( |
3591 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3592 | // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.AdviceProto.Checker) |
3593 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3594 | (void) cached_has_bits; |
3595 | |
3596 | // repeated string reports = 2; |
3597 | for (int i = 0, n = this->reports_size(); i < n; i++) { |
3598 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3599 | this->reports(i).data(), static_cast<int>(this->reports(i).length()), |
3600 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3601 | "tensorflow.tfprof.AdviceProto.Checker.reports" ); |
3602 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
3603 | 2, this->reports(i), output); |
3604 | } |
3605 | |
3606 | if (_internal_metadata_.have_unknown_fields()) { |
3607 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3608 | _internal_metadata_.unknown_fields(), output); |
3609 | } |
3610 | // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.AdviceProto.Checker) |
3611 | } |
3612 | |
3613 | ::PROTOBUF_NAMESPACE_ID::uint8* AdviceProto_Checker::InternalSerializeWithCachedSizesToArray( |
3614 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3615 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.AdviceProto.Checker) |
3616 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3617 | (void) cached_has_bits; |
3618 | |
3619 | // repeated string reports = 2; |
3620 | for (int i = 0, n = this->reports_size(); i < n; i++) { |
3621 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3622 | this->reports(i).data(), static_cast<int>(this->reports(i).length()), |
3623 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3624 | "tensorflow.tfprof.AdviceProto.Checker.reports" ); |
3625 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3626 | WriteStringToArray(2, this->reports(i), target); |
3627 | } |
3628 | |
3629 | if (_internal_metadata_.have_unknown_fields()) { |
3630 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3631 | _internal_metadata_.unknown_fields(), target); |
3632 | } |
3633 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.AdviceProto.Checker) |
3634 | return target; |
3635 | } |
3636 | |
3637 | size_t AdviceProto_Checker::ByteSizeLong() const { |
3638 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.AdviceProto.Checker) |
3639 | size_t total_size = 0; |
3640 | |
3641 | if (_internal_metadata_.have_unknown_fields()) { |
3642 | total_size += |
3643 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3644 | _internal_metadata_.unknown_fields()); |
3645 | } |
3646 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3647 | // Prevent compiler warnings about cached_has_bits being unused |
3648 | (void) cached_has_bits; |
3649 | |
3650 | // repeated string reports = 2; |
3651 | total_size += 1 * |
3652 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->reports_size()); |
3653 | for (int i = 0, n = this->reports_size(); i < n; i++) { |
3654 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3655 | this->reports(i)); |
3656 | } |
3657 | |
3658 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3659 | SetCachedSize(cached_size); |
3660 | return total_size; |
3661 | } |
3662 | |
3663 | void AdviceProto_Checker::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3664 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.AdviceProto.Checker) |
3665 | GOOGLE_DCHECK_NE(&from, this); |
3666 | const AdviceProto_Checker* source = |
3667 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AdviceProto_Checker>( |
3668 | &from); |
3669 | if (source == nullptr) { |
3670 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.AdviceProto.Checker) |
3671 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3672 | } else { |
3673 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.AdviceProto.Checker) |
3674 | MergeFrom(*source); |
3675 | } |
3676 | } |
3677 | |
3678 | void AdviceProto_Checker::MergeFrom(const AdviceProto_Checker& from) { |
3679 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.AdviceProto.Checker) |
3680 | GOOGLE_DCHECK_NE(&from, this); |
3681 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3682 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3683 | (void) cached_has_bits; |
3684 | |
3685 | reports_.MergeFrom(from.reports_); |
3686 | } |
3687 | |
3688 | void AdviceProto_Checker::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3689 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.AdviceProto.Checker) |
3690 | if (&from == this) return; |
3691 | Clear(); |
3692 | MergeFrom(from); |
3693 | } |
3694 | |
3695 | void AdviceProto_Checker::CopyFrom(const AdviceProto_Checker& from) { |
3696 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.AdviceProto.Checker) |
3697 | if (&from == this) return; |
3698 | Clear(); |
3699 | MergeFrom(from); |
3700 | } |
3701 | |
3702 | bool AdviceProto_Checker::IsInitialized() const { |
3703 | return true; |
3704 | } |
3705 | |
3706 | void AdviceProto_Checker::InternalSwap(AdviceProto_Checker* other) { |
3707 | using std::swap; |
3708 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3709 | reports_.InternalSwap(CastToBase(&other->reports_)); |
3710 | } |
3711 | |
3712 | ::PROTOBUF_NAMESPACE_ID::Metadata AdviceProto_Checker::GetMetadata() const { |
3713 | return GetMetadataStatic(); |
3714 | } |
3715 | |
3716 | |
3717 | // =================================================================== |
3718 | |
3719 | void AdviceProto::InitAsDefaultInstance() { |
3720 | } |
3721 | class AdviceProto::_Internal { |
3722 | public: |
3723 | }; |
3724 | |
3725 | AdviceProto::AdviceProto() |
3726 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3727 | SharedCtor(); |
3728 | // @@protoc_insertion_point(constructor:tensorflow.tfprof.AdviceProto) |
3729 | } |
3730 | AdviceProto::AdviceProto(const AdviceProto& from) |
3731 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3732 | _internal_metadata_(nullptr) { |
3733 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3734 | checkers_.MergeFrom(from.checkers_); |
3735 | // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.AdviceProto) |
3736 | } |
3737 | |
3738 | void AdviceProto::SharedCtor() { |
3739 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
3740 | } |
3741 | |
3742 | AdviceProto::~AdviceProto() { |
3743 | // @@protoc_insertion_point(destructor:tensorflow.tfprof.AdviceProto) |
3744 | SharedDtor(); |
3745 | } |
3746 | |
3747 | void AdviceProto::SharedDtor() { |
3748 | } |
3749 | |
3750 | void AdviceProto::SetCachedSize(int size) const { |
3751 | _cached_size_.Set(size); |
3752 | } |
3753 | const AdviceProto& AdviceProto::default_instance() { |
3754 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdviceProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foutput_2eproto.base); |
3755 | return *internal_default_instance(); |
3756 | } |
3757 | |
3758 | |
3759 | void AdviceProto::Clear() { |
3760 | // @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.AdviceProto) |
3761 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3762 | // Prevent compiler warnings about cached_has_bits being unused |
3763 | (void) cached_has_bits; |
3764 | |
3765 | checkers_.Clear(); |
3766 | _internal_metadata_.Clear(); |
3767 | } |
3768 | |
3769 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3770 | const char* AdviceProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3771 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3772 | while (!ctx->Done(&ptr)) { |
3773 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3774 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3775 | CHK_(ptr); |
3776 | switch (tag >> 3) { |
3777 | // map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1; |
3778 | case 1: |
3779 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
3780 | ptr -= 1; |
3781 | do { |
3782 | ptr += 1; |
3783 | ptr = ctx->ParseMessage(&checkers_, ptr); |
3784 | CHK_(ptr); |
3785 | if (!ctx->DataAvailable(ptr)) break; |
3786 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
3787 | } else goto handle_unusual; |
3788 | continue; |
3789 | default: { |
3790 | handle_unusual: |
3791 | if ((tag & 7) == 4 || tag == 0) { |
3792 | ctx->SetLastTag(tag); |
3793 | goto success; |
3794 | } |
3795 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3796 | CHK_(ptr != nullptr); |
3797 | continue; |
3798 | } |
3799 | } // switch |
3800 | } // while |
3801 | success: |
3802 | return ptr; |
3803 | failure: |
3804 | ptr = nullptr; |
3805 | goto success; |
3806 | #undef CHK_ |
3807 | } |
3808 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3809 | bool AdviceProto::MergePartialFromCodedStream( |
3810 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3811 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3812 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3813 | // @@protoc_insertion_point(parse_start:tensorflow.tfprof.AdviceProto) |
3814 | for (;;) { |
3815 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3816 | tag = p.first; |
3817 | if (!p.second) goto handle_unusual; |
3818 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3819 | // map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1; |
3820 | case 1: { |
3821 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
3822 | AdviceProto_CheckersEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
3823 | AdviceProto_CheckersEntry_DoNotUse, |
3824 | std::string, ::tensorflow::tfprof::AdviceProto_Checker, |
3825 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
3826 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
3827 | 0 >, |
3828 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker > > parser(&checkers_); |
3829 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
3830 | input, &parser)); |
3831 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3832 | parser.key().data(), static_cast<int>(parser.key().length()), |
3833 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3834 | "tensorflow.tfprof.AdviceProto.CheckersEntry.key" )); |
3835 | } else { |
3836 | goto handle_unusual; |
3837 | } |
3838 | break; |
3839 | } |
3840 | |
3841 | default: { |
3842 | handle_unusual: |
3843 | if (tag == 0) { |
3844 | goto success; |
3845 | } |
3846 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3847 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3848 | break; |
3849 | } |
3850 | } |
3851 | } |
3852 | success: |
3853 | // @@protoc_insertion_point(parse_success:tensorflow.tfprof.AdviceProto) |
3854 | return true; |
3855 | failure: |
3856 | // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.AdviceProto) |
3857 | return false; |
3858 | #undef DO_ |
3859 | } |
3860 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3861 | |
3862 | void AdviceProto::SerializeWithCachedSizes( |
3863 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3864 | // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.AdviceProto) |
3865 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3866 | (void) cached_has_bits; |
3867 | |
3868 | // map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1; |
3869 | if (!this->checkers().empty()) { |
3870 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_pointer |
3871 | ConstPtr; |
3872 | typedef ConstPtr SortItem; |
3873 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
3874 | struct Utf8Check { |
3875 | static void Check(ConstPtr p) { |
3876 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3877 | p->first.data(), static_cast<int>(p->first.length()), |
3878 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3879 | "tensorflow.tfprof.AdviceProto.CheckersEntry.key" ); |
3880 | } |
3881 | }; |
3882 | |
3883 | if (output->IsSerializationDeterministic() && |
3884 | this->checkers().size() > 1) { |
3885 | ::std::unique_ptr<SortItem[]> items( |
3886 | new SortItem[this->checkers().size()]); |
3887 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::size_type size_type; |
3888 | size_type n = 0; |
3889 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_iterator |
3890 | it = this->checkers().begin(); |
3891 | it != this->checkers().end(); ++it, ++n) { |
3892 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3893 | } |
3894 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3895 | for (size_type i = 0; i < n; i++) { |
3896 | AdviceProto_CheckersEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
3897 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
3898 | } |
3899 | } else { |
3900 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_iterator |
3901 | it = this->checkers().begin(); |
3902 | it != this->checkers().end(); ++it) { |
3903 | AdviceProto_CheckersEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output); |
3904 | Utf8Check::Check(&(*it)); |
3905 | } |
3906 | } |
3907 | } |
3908 | |
3909 | if (_internal_metadata_.have_unknown_fields()) { |
3910 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3911 | _internal_metadata_.unknown_fields(), output); |
3912 | } |
3913 | // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.AdviceProto) |
3914 | } |
3915 | |
3916 | ::PROTOBUF_NAMESPACE_ID::uint8* AdviceProto::InternalSerializeWithCachedSizesToArray( |
3917 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3918 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.AdviceProto) |
3919 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3920 | (void) cached_has_bits; |
3921 | |
3922 | // map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1; |
3923 | if (!this->checkers().empty()) { |
3924 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_pointer |
3925 | ConstPtr; |
3926 | typedef ConstPtr SortItem; |
3927 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
3928 | struct Utf8Check { |
3929 | static void Check(ConstPtr p) { |
3930 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3931 | p->first.data(), static_cast<int>(p->first.length()), |
3932 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3933 | "tensorflow.tfprof.AdviceProto.CheckersEntry.key" ); |
3934 | } |
3935 | }; |
3936 | |
3937 | if (false && |
3938 | this->checkers().size() > 1) { |
3939 | ::std::unique_ptr<SortItem[]> items( |
3940 | new SortItem[this->checkers().size()]); |
3941 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::size_type size_type; |
3942 | size_type n = 0; |
3943 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_iterator |
3944 | it = this->checkers().begin(); |
3945 | it != this->checkers().end(); ++it, ++n) { |
3946 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3947 | } |
3948 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3949 | for (size_type i = 0; i < n; i++) { |
3950 | target = AdviceProto_CheckersEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
3951 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
3952 | } |
3953 | } else { |
3954 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_iterator |
3955 | it = this->checkers().begin(); |
3956 | it != this->checkers().end(); ++it) { |
3957 | target = AdviceProto_CheckersEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target); |
3958 | Utf8Check::Check(&(*it)); |
3959 | } |
3960 | } |
3961 | } |
3962 | |
3963 | if (_internal_metadata_.have_unknown_fields()) { |
3964 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3965 | _internal_metadata_.unknown_fields(), target); |
3966 | } |
3967 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.AdviceProto) |
3968 | return target; |
3969 | } |
3970 | |
3971 | size_t AdviceProto::ByteSizeLong() const { |
3972 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.AdviceProto) |
3973 | size_t total_size = 0; |
3974 | |
3975 | if (_internal_metadata_.have_unknown_fields()) { |
3976 | total_size += |
3977 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3978 | _internal_metadata_.unknown_fields()); |
3979 | } |
3980 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3981 | // Prevent compiler warnings about cached_has_bits being unused |
3982 | (void) cached_has_bits; |
3983 | |
3984 | // map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1; |
3985 | total_size += 1 * |
3986 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->checkers_size()); |
3987 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdviceProto_Checker >::const_iterator |
3988 | it = this->checkers().begin(); |
3989 | it != this->checkers().end(); ++it) { |
3990 | total_size += AdviceProto_CheckersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
3991 | } |
3992 | |
3993 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3994 | SetCachedSize(cached_size); |
3995 | return total_size; |
3996 | } |
3997 | |
3998 | void AdviceProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3999 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.AdviceProto) |
4000 | GOOGLE_DCHECK_NE(&from, this); |
4001 | const AdviceProto* source = |
4002 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AdviceProto>( |
4003 | &from); |
4004 | if (source == nullptr) { |
4005 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.AdviceProto) |
4006 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4007 | } else { |
4008 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.AdviceProto) |
4009 | MergeFrom(*source); |
4010 | } |
4011 | } |
4012 | |
4013 | void AdviceProto::MergeFrom(const AdviceProto& from) { |
4014 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.AdviceProto) |
4015 | GOOGLE_DCHECK_NE(&from, this); |
4016 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4017 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4018 | (void) cached_has_bits; |
4019 | |
4020 | checkers_.MergeFrom(from.checkers_); |
4021 | } |
4022 | |
4023 | void AdviceProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4024 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.AdviceProto) |
4025 | if (&from == this) return; |
4026 | Clear(); |
4027 | MergeFrom(from); |
4028 | } |
4029 | |
4030 | void AdviceProto::CopyFrom(const AdviceProto& from) { |
4031 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.AdviceProto) |
4032 | if (&from == this) return; |
4033 | Clear(); |
4034 | MergeFrom(from); |
4035 | } |
4036 | |
4037 | bool AdviceProto::IsInitialized() const { |
4038 | return true; |
4039 | } |
4040 | |
4041 | void AdviceProto::InternalSwap(AdviceProto* other) { |
4042 | using std::swap; |
4043 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4044 | checkers_.Swap(&other->checkers_); |
4045 | } |
4046 | |
4047 | ::PROTOBUF_NAMESPACE_ID::Metadata AdviceProto::GetMetadata() const { |
4048 | return GetMetadataStatic(); |
4049 | } |
4050 | |
4051 | |
4052 | // @@protoc_insertion_point(namespace_scope) |
4053 | } // namespace tfprof |
4054 | } // namespace tensorflow |
4055 | PROTOBUF_NAMESPACE_OPEN |
4056 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::TFProfTensorProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::TFProfTensorProto >(Arena* arena) { |
4057 | return Arena::CreateInternal< ::tensorflow::tfprof::TFProfTensorProto >(arena); |
4058 | } |
4059 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse >(Arena* arena) { |
4060 | return Arena::CreateInternal< ::tensorflow::tfprof::GraphNodeProto_InputShapesEntry_DoNotUse >(arena); |
4061 | } |
4062 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::GraphNodeProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::GraphNodeProto >(Arena* arena) { |
4063 | return Arena::CreateInternal< ::tensorflow::tfprof::GraphNodeProto >(arena); |
4064 | } |
4065 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::MultiGraphNodeProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::MultiGraphNodeProto >(Arena* arena) { |
4066 | return Arena::CreateInternal< ::tensorflow::tfprof::MultiGraphNodeProto >(arena); |
4067 | } |
4068 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse >(Arena* arena) { |
4069 | return Arena::CreateInternal< ::tensorflow::tfprof::AdviceProto_CheckersEntry_DoNotUse >(arena); |
4070 | } |
4071 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdviceProto_Checker* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdviceProto_Checker >(Arena* arena) { |
4072 | return Arena::CreateInternal< ::tensorflow::tfprof::AdviceProto_Checker >(arena); |
4073 | } |
4074 | template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdviceProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdviceProto >(Arena* arena) { |
4075 | return Arena::CreateInternal< ::tensorflow::tfprof::AdviceProto >(arena); |
4076 | } |
4077 | PROTOBUF_NAMESPACE_CLOSE |
4078 | |
4079 | // @@protoc_insertion_point(global_scope) |
4080 | #include <google/protobuf/port_undef.inc> |
4081 | |