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