1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/framework/op_def.proto
3
4#include "tensorflow/core/framework/op_def.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>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FullTypeDef_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ResourceHandleProto_DtypeAndShape_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto;
25namespace tensorflow {
26class OpDef_ArgDefDefaultTypeInternal {
27 public:
28 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpDef_ArgDef> _instance;
29} _OpDef_ArgDef_default_instance_;
30class OpDef_AttrDefDefaultTypeInternal {
31 public:
32 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpDef_AttrDef> _instance;
33} _OpDef_AttrDef_default_instance_;
34class OpDefDefaultTypeInternal {
35 public:
36 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpDef> _instance;
37} _OpDef_default_instance_;
38class OpDeprecationDefaultTypeInternal {
39 public:
40 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpDeprecation> _instance;
41} _OpDeprecation_default_instance_;
42class OpListDefaultTypeInternal {
43 public:
44 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OpList> _instance;
45} _OpList_default_instance_;
46} // namespace tensorflow
47static void InitDefaultsscc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto() {
48 GOOGLE_PROTOBUF_VERIFY_VERSION;
49
50 {
51 void* ptr = &::tensorflow::_OpDef_default_instance_;
52 new (ptr) ::tensorflow::OpDef();
53 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
54 }
55 ::tensorflow::OpDef::InitAsDefaultInstance();
56}
57
58::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto =
59 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto}, {
60 &scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
61 &scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
62 &scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,}};
63
64static void InitDefaultsscc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto() {
65 GOOGLE_PROTOBUF_VERIFY_VERSION;
66
67 {
68 void* ptr = &::tensorflow::_OpDef_ArgDef_default_instance_;
69 new (ptr) ::tensorflow::OpDef_ArgDef();
70 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
71 }
72 ::tensorflow::OpDef_ArgDef::InitAsDefaultInstance();
73}
74
75::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto =
76 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto}, {
77 &scc_info_ResourceHandleProto_DtypeAndShape_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto.base,
78 &scc_info_FullTypeDef_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto.base,}};
79
80static void InitDefaultsscc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto() {
81 GOOGLE_PROTOBUF_VERIFY_VERSION;
82
83 {
84 void* ptr = &::tensorflow::_OpDef_AttrDef_default_instance_;
85 new (ptr) ::tensorflow::OpDef_AttrDef();
86 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
87 }
88 ::tensorflow::OpDef_AttrDef::InitAsDefaultInstance();
89}
90
91::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto =
92 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto}, {
93 &scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto.base,}};
94
95static void InitDefaultsscc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto() {
96 GOOGLE_PROTOBUF_VERIFY_VERSION;
97
98 {
99 void* ptr = &::tensorflow::_OpDeprecation_default_instance_;
100 new (ptr) ::tensorflow::OpDeprecation();
101 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
102 }
103 ::tensorflow::OpDeprecation::InitAsDefaultInstance();
104}
105
106::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto =
107 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto}, {}};
108
109static void InitDefaultsscc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto() {
110 GOOGLE_PROTOBUF_VERIFY_VERSION;
111
112 {
113 void* ptr = &::tensorflow::_OpList_default_instance_;
114 new (ptr) ::tensorflow::OpList();
115 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
116 }
117 ::tensorflow::OpList::InitAsDefaultInstance();
118}
119
120::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto =
121 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto}, {
122 &scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,}};
123
124static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto[5];
125static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto = nullptr;
126static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto = nullptr;
127
128const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
129 ~0u, // no _has_bits_
130 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, _internal_metadata_),
131 ~0u, // no _extensions_
132 ~0u, // no _oneof_case_
133 ~0u, // no _weak_field_map_
134 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, name_),
135 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, description_),
136 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_),
137 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_attr_),
138 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, number_attr_),
139 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_list_attr_),
140 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, handle_data_),
141 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, is_ref_),
142 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, experimental_full_type_),
143 ~0u, // no _has_bits_
144 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, _internal_metadata_),
145 ~0u, // no _extensions_
146 ~0u, // no _oneof_case_
147 ~0u, // no _weak_field_map_
148 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, name_),
149 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, type_),
150 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, default_value_),
151 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, description_),
152 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, has_minimum_),
153 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, minimum_),
154 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, allowed_values_),
155 ~0u, // no _has_bits_
156 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, _internal_metadata_),
157 ~0u, // no _extensions_
158 ~0u, // no _oneof_case_
159 ~0u, // no _weak_field_map_
160 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, name_),
161 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, input_arg_),
162 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, output_arg_),
163 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, control_output_),
164 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, attr_),
165 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, deprecation_),
166 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, summary_),
167 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, description_),
168 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, is_commutative_),
169 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, is_aggregate_),
170 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, is_stateful_),
171 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, allows_uninitialized_input_),
172 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDef, is_distributed_communication_),
173 ~0u, // no _has_bits_
174 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDeprecation, _internal_metadata_),
175 ~0u, // no _extensions_
176 ~0u, // no _oneof_case_
177 ~0u, // no _weak_field_map_
178 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDeprecation, version_),
179 PROTOBUF_FIELD_OFFSET(::tensorflow::OpDeprecation, explanation_),
180 ~0u, // no _has_bits_
181 PROTOBUF_FIELD_OFFSET(::tensorflow::OpList, _internal_metadata_),
182 ~0u, // no _extensions_
183 ~0u, // no _oneof_case_
184 ~0u, // no _weak_field_map_
185 PROTOBUF_FIELD_OFFSET(::tensorflow::OpList, op_),
186};
187static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
188 { 0, -1, sizeof(::tensorflow::OpDef_ArgDef)},
189 { 14, -1, sizeof(::tensorflow::OpDef_AttrDef)},
190 { 26, -1, sizeof(::tensorflow::OpDef)},
191 { 44, -1, sizeof(::tensorflow::OpDeprecation)},
192 { 51, -1, sizeof(::tensorflow::OpList)},
193};
194
195static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
196 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_OpDef_ArgDef_default_instance_),
197 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_OpDef_AttrDef_default_instance_),
198 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_OpDef_default_instance_),
199 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_OpDeprecation_default_instance_),
200 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_OpList_default_instance_),
201};
202
203const char descriptor_table_protodef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
204 "\n&tensorflow/core/framework/op_def.proto"
205 "\022\ntensorflow\032*tensorflow/core/framework/"
206 "attr_value.proto\032)tensorflow/core/framew"
207 "ork/full_type.proto\032/tensorflow/core/fra"
208 "mework/resource_handle.proto\032%tensorflow"
209 "/core/framework/types.proto\"\363\006\n\005OpDef\022\014\n"
210 "\004name\030\001 \001(\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorf"
211 "low.OpDef.ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.t"
212 "ensorflow.OpDef.ArgDef\022\026\n\016control_output"
213 "\030\024 \003(\t\022\'\n\004attr\030\004 \003(\0132\031.tensorflow.OpDef."
214 "AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.tensorflo"
215 "w.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013desc"
216 "ription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024\n"
217 "\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001(\010"
218 "\022\"\n\032allows_uninitialized_input\030\023 \001(\010\022$\n\034"
219 "is_distributed_communication\030\025 \001(\010\032\234\002\n\006A"
220 "rgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t"
221 "\022\"\n\004type\030\003 \001(\0162\024.tensorflow.DataType\022\021\n\t"
222 "type_attr\030\004 \001(\t\022\023\n\013number_attr\030\005 \001(\t\022\026\n\016"
223 "type_list_attr\030\006 \001(\t\022B\n\013handle_data\030\007 \003("
224 "\0132-.tensorflow.ResourceHandleProto.Dtype"
225 "AndShape\022\016\n\006is_ref\030\020 \001(\010\0227\n\026experimental"
226 "_full_type\030\021 \001(\0132\027.tensorflow.FullTypeDe"
227 "f\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001("
228 "\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow.At"
229 "trValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_mini"
230 "mum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed_va"
231 "lues\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\rOpD"
232 "eprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explanati"
233 "on\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tensorf"
234 "low.OpDefB{\n\030org.tensorflow.frameworkB\013O"
235 "pDefProtosP\001ZMgithub.com/tensorflow/tens"
236 "orflow/tensorflow/go/core/framework/op_d"
237 "ef_go_proto\370\001\001b\006proto3"
238 ;
239static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_deps[4] = {
240 &::descriptor_table_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto,
241 &::descriptor_table_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto,
242 &::descriptor_table_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto,
243 &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto,
244};
245static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_sccs[5] = {
246 &scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
247 &scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
248 &scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
249 &scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
250 &scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base,
251};
252static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_once;
253static bool descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_initialized = false;
254const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto = {
255 &descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto, "tensorflow/core/framework/op_def.proto", 1342,
256 &descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_once, descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto_deps, 5, 4,
257 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::offsets,
258 file_level_metadata_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto, 5, file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto,
259};
260
261// Force running AddDescriptors() at dynamic initialization time.
262static bool dynamic_init_dummy_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto), true);
263namespace tensorflow {
264
265// ===================================================================
266
267void OpDef_ArgDef::InitAsDefaultInstance() {
268 ::tensorflow::_OpDef_ArgDef_default_instance_._instance.get_mutable()->experimental_full_type_ = const_cast< ::tensorflow::FullTypeDef*>(
269 ::tensorflow::FullTypeDef::internal_default_instance());
270}
271class OpDef_ArgDef::_Internal {
272 public:
273 static const ::tensorflow::FullTypeDef& experimental_full_type(const OpDef_ArgDef* msg);
274};
275
276const ::tensorflow::FullTypeDef&
277OpDef_ArgDef::_Internal::experimental_full_type(const OpDef_ArgDef* msg) {
278 return *msg->experimental_full_type_;
279}
280void OpDef_ArgDef::clear_handle_data() {
281 handle_data_.Clear();
282}
283void OpDef_ArgDef::unsafe_arena_set_allocated_experimental_full_type(
284 ::tensorflow::FullTypeDef* experimental_full_type) {
285 if (GetArenaNoVirtual() == nullptr) {
286 delete experimental_full_type_;
287 }
288 experimental_full_type_ = experimental_full_type;
289 if (experimental_full_type) {
290
291 } else {
292
293 }
294 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.experimental_full_type)
295}
296void OpDef_ArgDef::clear_experimental_full_type() {
297 if (GetArenaNoVirtual() == nullptr && experimental_full_type_ != nullptr) {
298 delete experimental_full_type_;
299 }
300 experimental_full_type_ = nullptr;
301}
302OpDef_ArgDef::OpDef_ArgDef()
303 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
304 SharedCtor();
305 // @@protoc_insertion_point(constructor:tensorflow.OpDef.ArgDef)
306}
307OpDef_ArgDef::OpDef_ArgDef(::PROTOBUF_NAMESPACE_ID::Arena* arena)
308 : ::PROTOBUF_NAMESPACE_ID::Message(),
309 _internal_metadata_(arena),
310 handle_data_(arena) {
311 SharedCtor();
312 RegisterArenaDtor(arena);
313 // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.ArgDef)
314}
315OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from)
316 : ::PROTOBUF_NAMESPACE_ID::Message(),
317 _internal_metadata_(nullptr),
318 handle_data_(from.handle_data_) {
319 _internal_metadata_.MergeFrom(from._internal_metadata_);
320 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
321 if (!from.name().empty()) {
322 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
323 GetArenaNoVirtual());
324 }
325 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
326 if (!from.description().empty()) {
327 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
328 GetArenaNoVirtual());
329 }
330 type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
331 if (!from.type_attr().empty()) {
332 type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_attr(),
333 GetArenaNoVirtual());
334 }
335 number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
336 if (!from.number_attr().empty()) {
337 number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.number_attr(),
338 GetArenaNoVirtual());
339 }
340 type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
341 if (!from.type_list_attr().empty()) {
342 type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_list_attr(),
343 GetArenaNoVirtual());
344 }
345 if (from.has_experimental_full_type()) {
346 experimental_full_type_ = new ::tensorflow::FullTypeDef(*from.experimental_full_type_);
347 } else {
348 experimental_full_type_ = nullptr;
349 }
350 ::memcpy(&type_, &from.type_,
351 static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
352 reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
353 // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.ArgDef)
354}
355
356void OpDef_ArgDef::SharedCtor() {
357 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
358 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
359 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
360 type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
361 number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
362 type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
363 ::memset(&experimental_full_type_, 0, static_cast<size_t>(
364 reinterpret_cast<char*>(&is_ref_) -
365 reinterpret_cast<char*>(&experimental_full_type_)) + sizeof(is_ref_));
366}
367
368OpDef_ArgDef::~OpDef_ArgDef() {
369 // @@protoc_insertion_point(destructor:tensorflow.OpDef.ArgDef)
370 SharedDtor();
371}
372
373void OpDef_ArgDef::SharedDtor() {
374 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
375 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
376 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
377 type_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
378 number_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
379 type_list_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
380 if (this != internal_default_instance()) delete experimental_full_type_;
381}
382
383void OpDef_ArgDef::ArenaDtor(void* object) {
384 OpDef_ArgDef* _this = reinterpret_cast< OpDef_ArgDef* >(object);
385 (void)_this;
386}
387void OpDef_ArgDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
388}
389void OpDef_ArgDef::SetCachedSize(int size) const {
390 _cached_size_.Set(size);
391}
392const OpDef_ArgDef& OpDef_ArgDef::default_instance() {
393 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpDef_ArgDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
394 return *internal_default_instance();
395}
396
397
398void OpDef_ArgDef::Clear() {
399// @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.ArgDef)
400 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
401 // Prevent compiler warnings about cached_has_bits being unused
402 (void) cached_has_bits;
403
404 handle_data_.Clear();
405 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
406 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
407 type_attr_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
408 number_attr_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
409 type_list_attr_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
410 if (GetArenaNoVirtual() == nullptr && experimental_full_type_ != nullptr) {
411 delete experimental_full_type_;
412 }
413 experimental_full_type_ = nullptr;
414 ::memset(&type_, 0, static_cast<size_t>(
415 reinterpret_cast<char*>(&is_ref_) -
416 reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
417 _internal_metadata_.Clear();
418}
419
420#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
421const char* OpDef_ArgDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
422#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
423 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
424 while (!ctx->Done(&ptr)) {
425 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
426 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
427 CHK_(ptr);
428 switch (tag >> 3) {
429 // string name = 1;
430 case 1:
431 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
432 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.OpDef.ArgDef.name");
433 CHK_(ptr);
434 } else goto handle_unusual;
435 continue;
436 // string description = 2;
437 case 2:
438 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
439 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.OpDef.ArgDef.description");
440 CHK_(ptr);
441 } else goto handle_unusual;
442 continue;
443 // .tensorflow.DataType type = 3;
444 case 3:
445 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
446 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
447 CHK_(ptr);
448 set_type(static_cast<::tensorflow::DataType>(val));
449 } else goto handle_unusual;
450 continue;
451 // string type_attr = 4;
452 case 4:
453 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
454 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type_attr(), ptr, ctx, "tensorflow.OpDef.ArgDef.type_attr");
455 CHK_(ptr);
456 } else goto handle_unusual;
457 continue;
458 // string number_attr = 5;
459 case 5:
460 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
461 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_number_attr(), ptr, ctx, "tensorflow.OpDef.ArgDef.number_attr");
462 CHK_(ptr);
463 } else goto handle_unusual;
464 continue;
465 // string type_list_attr = 6;
466 case 6:
467 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
468 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type_list_attr(), ptr, ctx, "tensorflow.OpDef.ArgDef.type_list_attr");
469 CHK_(ptr);
470 } else goto handle_unusual;
471 continue;
472 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
473 case 7:
474 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
475 ptr -= 1;
476 do {
477 ptr += 1;
478 ptr = ctx->ParseMessage(add_handle_data(), ptr);
479 CHK_(ptr);
480 if (!ctx->DataAvailable(ptr)) break;
481 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58);
482 } else goto handle_unusual;
483 continue;
484 // bool is_ref = 16;
485 case 16:
486 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
487 is_ref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
488 CHK_(ptr);
489 } else goto handle_unusual;
490 continue;
491 // .tensorflow.FullTypeDef experimental_full_type = 17;
492 case 17:
493 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) {
494 ptr = ctx->ParseMessage(mutable_experimental_full_type(), ptr);
495 CHK_(ptr);
496 } else goto handle_unusual;
497 continue;
498 default: {
499 handle_unusual:
500 if ((tag & 7) == 4 || tag == 0) {
501 ctx->SetLastTag(tag);
502 goto success;
503 }
504 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
505 CHK_(ptr != nullptr);
506 continue;
507 }
508 } // switch
509 } // while
510success:
511 return ptr;
512failure:
513 ptr = nullptr;
514 goto success;
515#undef CHK_
516}
517#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
518bool OpDef_ArgDef::MergePartialFromCodedStream(
519 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
520#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
521 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
522 // @@protoc_insertion_point(parse_start:tensorflow.OpDef.ArgDef)
523 for (;;) {
524 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
525 tag = p.first;
526 if (!p.second) goto handle_unusual;
527 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
528 // string name = 1;
529 case 1: {
530 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
531 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
532 input, this->mutable_name()));
533 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
534 this->name().data(), static_cast<int>(this->name().length()),
535 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
536 "tensorflow.OpDef.ArgDef.name"));
537 } else {
538 goto handle_unusual;
539 }
540 break;
541 }
542
543 // string description = 2;
544 case 2: {
545 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
546 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
547 input, this->mutable_description()));
548 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
549 this->description().data(), static_cast<int>(this->description().length()),
550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
551 "tensorflow.OpDef.ArgDef.description"));
552 } else {
553 goto handle_unusual;
554 }
555 break;
556 }
557
558 // .tensorflow.DataType type = 3;
559 case 3: {
560 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
561 int value = 0;
562 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
563 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
564 input, &value)));
565 set_type(static_cast< ::tensorflow::DataType >(value));
566 } else {
567 goto handle_unusual;
568 }
569 break;
570 }
571
572 // string type_attr = 4;
573 case 4: {
574 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
575 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
576 input, this->mutable_type_attr()));
577 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
578 this->type_attr().data(), static_cast<int>(this->type_attr().length()),
579 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
580 "tensorflow.OpDef.ArgDef.type_attr"));
581 } else {
582 goto handle_unusual;
583 }
584 break;
585 }
586
587 // string number_attr = 5;
588 case 5: {
589 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
590 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
591 input, this->mutable_number_attr()));
592 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
593 this->number_attr().data(), static_cast<int>(this->number_attr().length()),
594 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
595 "tensorflow.OpDef.ArgDef.number_attr"));
596 } else {
597 goto handle_unusual;
598 }
599 break;
600 }
601
602 // string type_list_attr = 6;
603 case 6: {
604 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
605 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
606 input, this->mutable_type_list_attr()));
607 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
608 this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
609 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
610 "tensorflow.OpDef.ArgDef.type_list_attr"));
611 } else {
612 goto handle_unusual;
613 }
614 break;
615 }
616
617 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
618 case 7: {
619 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
620 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
621 input, add_handle_data()));
622 } else {
623 goto handle_unusual;
624 }
625 break;
626 }
627
628 // bool is_ref = 16;
629 case 16: {
630 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (128 & 0xFF)) {
631
632 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
633 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
634 input, &is_ref_)));
635 } else {
636 goto handle_unusual;
637 }
638 break;
639 }
640
641 // .tensorflow.FullTypeDef experimental_full_type = 17;
642 case 17: {
643 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (138 & 0xFF)) {
644 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
645 input, mutable_experimental_full_type()));
646 } else {
647 goto handle_unusual;
648 }
649 break;
650 }
651
652 default: {
653 handle_unusual:
654 if (tag == 0) {
655 goto success;
656 }
657 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
658 input, tag, _internal_metadata_.mutable_unknown_fields()));
659 break;
660 }
661 }
662 }
663success:
664 // @@protoc_insertion_point(parse_success:tensorflow.OpDef.ArgDef)
665 return true;
666failure:
667 // @@protoc_insertion_point(parse_failure:tensorflow.OpDef.ArgDef)
668 return false;
669#undef DO_
670}
671#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
672
673void OpDef_ArgDef::SerializeWithCachedSizes(
674 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
675 // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.ArgDef)
676 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
677 (void) cached_has_bits;
678
679 // string name = 1;
680 if (this->name().size() > 0) {
681 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
682 this->name().data(), static_cast<int>(this->name().length()),
683 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
684 "tensorflow.OpDef.ArgDef.name");
685 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
686 1, this->name(), output);
687 }
688
689 // string description = 2;
690 if (this->description().size() > 0) {
691 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
692 this->description().data(), static_cast<int>(this->description().length()),
693 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
694 "tensorflow.OpDef.ArgDef.description");
695 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
696 2, this->description(), output);
697 }
698
699 // .tensorflow.DataType type = 3;
700 if (this->type() != 0) {
701 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
702 3, this->type(), output);
703 }
704
705 // string type_attr = 4;
706 if (this->type_attr().size() > 0) {
707 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
708 this->type_attr().data(), static_cast<int>(this->type_attr().length()),
709 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
710 "tensorflow.OpDef.ArgDef.type_attr");
711 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
712 4, this->type_attr(), output);
713 }
714
715 // string number_attr = 5;
716 if (this->number_attr().size() > 0) {
717 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
718 this->number_attr().data(), static_cast<int>(this->number_attr().length()),
719 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
720 "tensorflow.OpDef.ArgDef.number_attr");
721 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
722 5, this->number_attr(), output);
723 }
724
725 // string type_list_attr = 6;
726 if (this->type_list_attr().size() > 0) {
727 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
728 this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
729 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
730 "tensorflow.OpDef.ArgDef.type_list_attr");
731 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
732 6, this->type_list_attr(), output);
733 }
734
735 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
736 for (unsigned int i = 0,
737 n = static_cast<unsigned int>(this->handle_data_size()); i < n; i++) {
738 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
739 7,
740 this->handle_data(static_cast<int>(i)),
741 output);
742 }
743
744 // bool is_ref = 16;
745 if (this->is_ref() != 0) {
746 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(16, this->is_ref(), output);
747 }
748
749 // .tensorflow.FullTypeDef experimental_full_type = 17;
750 if (this->has_experimental_full_type()) {
751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
752 17, _Internal::experimental_full_type(this), output);
753 }
754
755 if (_internal_metadata_.have_unknown_fields()) {
756 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
757 _internal_metadata_.unknown_fields(), output);
758 }
759 // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.ArgDef)
760}
761
762::PROTOBUF_NAMESPACE_ID::uint8* OpDef_ArgDef::InternalSerializeWithCachedSizesToArray(
763 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
764 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.ArgDef)
765 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
766 (void) cached_has_bits;
767
768 // string name = 1;
769 if (this->name().size() > 0) {
770 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
771 this->name().data(), static_cast<int>(this->name().length()),
772 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
773 "tensorflow.OpDef.ArgDef.name");
774 target =
775 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
776 1, this->name(), target);
777 }
778
779 // string description = 2;
780 if (this->description().size() > 0) {
781 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
782 this->description().data(), static_cast<int>(this->description().length()),
783 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
784 "tensorflow.OpDef.ArgDef.description");
785 target =
786 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
787 2, this->description(), target);
788 }
789
790 // .tensorflow.DataType type = 3;
791 if (this->type() != 0) {
792 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
793 3, this->type(), target);
794 }
795
796 // string type_attr = 4;
797 if (this->type_attr().size() > 0) {
798 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
799 this->type_attr().data(), static_cast<int>(this->type_attr().length()),
800 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
801 "tensorflow.OpDef.ArgDef.type_attr");
802 target =
803 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
804 4, this->type_attr(), target);
805 }
806
807 // string number_attr = 5;
808 if (this->number_attr().size() > 0) {
809 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
810 this->number_attr().data(), static_cast<int>(this->number_attr().length()),
811 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
812 "tensorflow.OpDef.ArgDef.number_attr");
813 target =
814 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
815 5, this->number_attr(), target);
816 }
817
818 // string type_list_attr = 6;
819 if (this->type_list_attr().size() > 0) {
820 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
821 this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
822 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
823 "tensorflow.OpDef.ArgDef.type_list_attr");
824 target =
825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
826 6, this->type_list_attr(), target);
827 }
828
829 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
830 for (unsigned int i = 0,
831 n = static_cast<unsigned int>(this->handle_data_size()); i < n; i++) {
832 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
833 InternalWriteMessageToArray(
834 7, this->handle_data(static_cast<int>(i)), target);
835 }
836
837 // bool is_ref = 16;
838 if (this->is_ref() != 0) {
839 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->is_ref(), target);
840 }
841
842 // .tensorflow.FullTypeDef experimental_full_type = 17;
843 if (this->has_experimental_full_type()) {
844 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
845 InternalWriteMessageToArray(
846 17, _Internal::experimental_full_type(this), target);
847 }
848
849 if (_internal_metadata_.have_unknown_fields()) {
850 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
851 _internal_metadata_.unknown_fields(), target);
852 }
853 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.ArgDef)
854 return target;
855}
856
857size_t OpDef_ArgDef::ByteSizeLong() const {
858// @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.ArgDef)
859 size_t total_size = 0;
860
861 if (_internal_metadata_.have_unknown_fields()) {
862 total_size +=
863 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
864 _internal_metadata_.unknown_fields());
865 }
866 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
867 // Prevent compiler warnings about cached_has_bits being unused
868 (void) cached_has_bits;
869
870 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
871 {
872 unsigned int count = static_cast<unsigned int>(this->handle_data_size());
873 total_size += 1UL * count;
874 for (unsigned int i = 0; i < count; i++) {
875 total_size +=
876 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
877 this->handle_data(static_cast<int>(i)));
878 }
879 }
880
881 // string name = 1;
882 if (this->name().size() > 0) {
883 total_size += 1 +
884 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
885 this->name());
886 }
887
888 // string description = 2;
889 if (this->description().size() > 0) {
890 total_size += 1 +
891 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
892 this->description());
893 }
894
895 // string type_attr = 4;
896 if (this->type_attr().size() > 0) {
897 total_size += 1 +
898 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
899 this->type_attr());
900 }
901
902 // string number_attr = 5;
903 if (this->number_attr().size() > 0) {
904 total_size += 1 +
905 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
906 this->number_attr());
907 }
908
909 // string type_list_attr = 6;
910 if (this->type_list_attr().size() > 0) {
911 total_size += 1 +
912 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
913 this->type_list_attr());
914 }
915
916 // .tensorflow.FullTypeDef experimental_full_type = 17;
917 if (this->has_experimental_full_type()) {
918 total_size += 2 +
919 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
920 *experimental_full_type_);
921 }
922
923 // .tensorflow.DataType type = 3;
924 if (this->type() != 0) {
925 total_size += 1 +
926 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type());
927 }
928
929 // bool is_ref = 16;
930 if (this->is_ref() != 0) {
931 total_size += 2 + 1;
932 }
933
934 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
935 SetCachedSize(cached_size);
936 return total_size;
937}
938
939void OpDef_ArgDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
940// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.ArgDef)
941 GOOGLE_DCHECK_NE(&from, this);
942 const OpDef_ArgDef* source =
943 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpDef_ArgDef>(
944 &from);
945 if (source == nullptr) {
946 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef.ArgDef)
947 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
948 } else {
949 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.ArgDef)
950 MergeFrom(*source);
951 }
952}
953
954void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) {
955// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.ArgDef)
956 GOOGLE_DCHECK_NE(&from, this);
957 _internal_metadata_.MergeFrom(from._internal_metadata_);
958 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
959 (void) cached_has_bits;
960
961 handle_data_.MergeFrom(from.handle_data_);
962 if (from.name().size() > 0) {
963 set_name(from.name());
964 }
965 if (from.description().size() > 0) {
966 set_description(from.description());
967 }
968 if (from.type_attr().size() > 0) {
969 set_type_attr(from.type_attr());
970 }
971 if (from.number_attr().size() > 0) {
972 set_number_attr(from.number_attr());
973 }
974 if (from.type_list_attr().size() > 0) {
975 set_type_list_attr(from.type_list_attr());
976 }
977 if (from.has_experimental_full_type()) {
978 mutable_experimental_full_type()->::tensorflow::FullTypeDef::MergeFrom(from.experimental_full_type());
979 }
980 if (from.type() != 0) {
981 set_type(from.type());
982 }
983 if (from.is_ref() != 0) {
984 set_is_ref(from.is_ref());
985 }
986}
987
988void OpDef_ArgDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
989// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef.ArgDef)
990 if (&from == this) return;
991 Clear();
992 MergeFrom(from);
993}
994
995void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) {
996// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.ArgDef)
997 if (&from == this) return;
998 Clear();
999 MergeFrom(from);
1000}
1001
1002bool OpDef_ArgDef::IsInitialized() const {
1003 return true;
1004}
1005
1006void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) {
1007 using std::swap;
1008 _internal_metadata_.Swap(&other->_internal_metadata_);
1009 CastToBase(&handle_data_)->InternalSwap(CastToBase(&other->handle_data_));
1010 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1011 GetArenaNoVirtual());
1012 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1013 GetArenaNoVirtual());
1014 type_attr_.Swap(&other->type_attr_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1015 GetArenaNoVirtual());
1016 number_attr_.Swap(&other->number_attr_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1017 GetArenaNoVirtual());
1018 type_list_attr_.Swap(&other->type_list_attr_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1019 GetArenaNoVirtual());
1020 swap(experimental_full_type_, other->experimental_full_type_);
1021 swap(type_, other->type_);
1022 swap(is_ref_, other->is_ref_);
1023}
1024
1025::PROTOBUF_NAMESPACE_ID::Metadata OpDef_ArgDef::GetMetadata() const {
1026 return GetMetadataStatic();
1027}
1028
1029
1030// ===================================================================
1031
1032void OpDef_AttrDef::InitAsDefaultInstance() {
1033 ::tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->default_value_ = const_cast< ::tensorflow::AttrValue*>(
1034 ::tensorflow::AttrValue::internal_default_instance());
1035 ::tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->allowed_values_ = const_cast< ::tensorflow::AttrValue*>(
1036 ::tensorflow::AttrValue::internal_default_instance());
1037}
1038class OpDef_AttrDef::_Internal {
1039 public:
1040 static const ::tensorflow::AttrValue& default_value(const OpDef_AttrDef* msg);
1041 static const ::tensorflow::AttrValue& allowed_values(const OpDef_AttrDef* msg);
1042};
1043
1044const ::tensorflow::AttrValue&
1045OpDef_AttrDef::_Internal::default_value(const OpDef_AttrDef* msg) {
1046 return *msg->default_value_;
1047}
1048const ::tensorflow::AttrValue&
1049OpDef_AttrDef::_Internal::allowed_values(const OpDef_AttrDef* msg) {
1050 return *msg->allowed_values_;
1051}
1052void OpDef_AttrDef::unsafe_arena_set_allocated_default_value(
1053 ::tensorflow::AttrValue* default_value) {
1054 if (GetArenaNoVirtual() == nullptr) {
1055 delete default_value_;
1056 }
1057 default_value_ = default_value;
1058 if (default_value) {
1059
1060 } else {
1061
1062 }
1063 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.default_value)
1064}
1065void OpDef_AttrDef::clear_default_value() {
1066 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
1067 delete default_value_;
1068 }
1069 default_value_ = nullptr;
1070}
1071void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values(
1072 ::tensorflow::AttrValue* allowed_values) {
1073 if (GetArenaNoVirtual() == nullptr) {
1074 delete allowed_values_;
1075 }
1076 allowed_values_ = allowed_values;
1077 if (allowed_values) {
1078
1079 } else {
1080
1081 }
1082 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.allowed_values)
1083}
1084void OpDef_AttrDef::clear_allowed_values() {
1085 if (GetArenaNoVirtual() == nullptr && allowed_values_ != nullptr) {
1086 delete allowed_values_;
1087 }
1088 allowed_values_ = nullptr;
1089}
1090OpDef_AttrDef::OpDef_AttrDef()
1091 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1092 SharedCtor();
1093 // @@protoc_insertion_point(constructor:tensorflow.OpDef.AttrDef)
1094}
1095OpDef_AttrDef::OpDef_AttrDef(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1096 : ::PROTOBUF_NAMESPACE_ID::Message(),
1097 _internal_metadata_(arena) {
1098 SharedCtor();
1099 RegisterArenaDtor(arena);
1100 // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.AttrDef)
1101}
1102OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from)
1103 : ::PROTOBUF_NAMESPACE_ID::Message(),
1104 _internal_metadata_(nullptr) {
1105 _internal_metadata_.MergeFrom(from._internal_metadata_);
1106 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1107 if (!from.name().empty()) {
1108 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
1109 GetArenaNoVirtual());
1110 }
1111 type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1112 if (!from.type().empty()) {
1113 type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type(),
1114 GetArenaNoVirtual());
1115 }
1116 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1117 if (!from.description().empty()) {
1118 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
1119 GetArenaNoVirtual());
1120 }
1121 if (from.has_default_value()) {
1122 default_value_ = new ::tensorflow::AttrValue(*from.default_value_);
1123 } else {
1124 default_value_ = nullptr;
1125 }
1126 if (from.has_allowed_values()) {
1127 allowed_values_ = new ::tensorflow::AttrValue(*from.allowed_values_);
1128 } else {
1129 allowed_values_ = nullptr;
1130 }
1131 ::memcpy(&minimum_, &from.minimum_,
1132 static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
1133 reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
1134 // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.AttrDef)
1135}
1136
1137void OpDef_AttrDef::SharedCtor() {
1138 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
1139 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1140 type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1141 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1142 ::memset(&default_value_, 0, static_cast<size_t>(
1143 reinterpret_cast<char*>(&has_minimum_) -
1144 reinterpret_cast<char*>(&default_value_)) + sizeof(has_minimum_));
1145}
1146
1147OpDef_AttrDef::~OpDef_AttrDef() {
1148 // @@protoc_insertion_point(destructor:tensorflow.OpDef.AttrDef)
1149 SharedDtor();
1150}
1151
1152void OpDef_AttrDef::SharedDtor() {
1153 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1154 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1155 type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1156 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1157 if (this != internal_default_instance()) delete default_value_;
1158 if (this != internal_default_instance()) delete allowed_values_;
1159}
1160
1161void OpDef_AttrDef::ArenaDtor(void* object) {
1162 OpDef_AttrDef* _this = reinterpret_cast< OpDef_AttrDef* >(object);
1163 (void)_this;
1164}
1165void OpDef_AttrDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1166}
1167void OpDef_AttrDef::SetCachedSize(int size) const {
1168 _cached_size_.Set(size);
1169}
1170const OpDef_AttrDef& OpDef_AttrDef::default_instance() {
1171 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpDef_AttrDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
1172 return *internal_default_instance();
1173}
1174
1175
1176void OpDef_AttrDef::Clear() {
1177// @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.AttrDef)
1178 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1179 // Prevent compiler warnings about cached_has_bits being unused
1180 (void) cached_has_bits;
1181
1182 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1183 type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1184 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1185 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
1186 delete default_value_;
1187 }
1188 default_value_ = nullptr;
1189 if (GetArenaNoVirtual() == nullptr && allowed_values_ != nullptr) {
1190 delete allowed_values_;
1191 }
1192 allowed_values_ = nullptr;
1193 ::memset(&minimum_, 0, static_cast<size_t>(
1194 reinterpret_cast<char*>(&has_minimum_) -
1195 reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
1196 _internal_metadata_.Clear();
1197}
1198
1199#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1200const char* OpDef_AttrDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1201#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1202 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1203 while (!ctx->Done(&ptr)) {
1204 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1205 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1206 CHK_(ptr);
1207 switch (tag >> 3) {
1208 // string name = 1;
1209 case 1:
1210 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1211 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.OpDef.AttrDef.name");
1212 CHK_(ptr);
1213 } else goto handle_unusual;
1214 continue;
1215 // string type = 2;
1216 case 2:
1217 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1218 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type(), ptr, ctx, "tensorflow.OpDef.AttrDef.type");
1219 CHK_(ptr);
1220 } else goto handle_unusual;
1221 continue;
1222 // .tensorflow.AttrValue default_value = 3;
1223 case 3:
1224 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1225 ptr = ctx->ParseMessage(mutable_default_value(), ptr);
1226 CHK_(ptr);
1227 } else goto handle_unusual;
1228 continue;
1229 // string description = 4;
1230 case 4:
1231 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1232 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.OpDef.AttrDef.description");
1233 CHK_(ptr);
1234 } else goto handle_unusual;
1235 continue;
1236 // bool has_minimum = 5;
1237 case 5:
1238 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
1239 has_minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1240 CHK_(ptr);
1241 } else goto handle_unusual;
1242 continue;
1243 // int64 minimum = 6;
1244 case 6:
1245 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
1246 minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1247 CHK_(ptr);
1248 } else goto handle_unusual;
1249 continue;
1250 // .tensorflow.AttrValue allowed_values = 7;
1251 case 7:
1252 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
1253 ptr = ctx->ParseMessage(mutable_allowed_values(), ptr);
1254 CHK_(ptr);
1255 } else goto handle_unusual;
1256 continue;
1257 default: {
1258 handle_unusual:
1259 if ((tag & 7) == 4 || tag == 0) {
1260 ctx->SetLastTag(tag);
1261 goto success;
1262 }
1263 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1264 CHK_(ptr != nullptr);
1265 continue;
1266 }
1267 } // switch
1268 } // while
1269success:
1270 return ptr;
1271failure:
1272 ptr = nullptr;
1273 goto success;
1274#undef CHK_
1275}
1276#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1277bool OpDef_AttrDef::MergePartialFromCodedStream(
1278 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1279#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1280 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1281 // @@protoc_insertion_point(parse_start:tensorflow.OpDef.AttrDef)
1282 for (;;) {
1283 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1284 tag = p.first;
1285 if (!p.second) goto handle_unusual;
1286 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1287 // string name = 1;
1288 case 1: {
1289 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1290 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1291 input, this->mutable_name()));
1292 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1293 this->name().data(), static_cast<int>(this->name().length()),
1294 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1295 "tensorflow.OpDef.AttrDef.name"));
1296 } else {
1297 goto handle_unusual;
1298 }
1299 break;
1300 }
1301
1302 // string type = 2;
1303 case 2: {
1304 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1305 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1306 input, this->mutable_type()));
1307 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1308 this->type().data(), static_cast<int>(this->type().length()),
1309 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1310 "tensorflow.OpDef.AttrDef.type"));
1311 } else {
1312 goto handle_unusual;
1313 }
1314 break;
1315 }
1316
1317 // .tensorflow.AttrValue default_value = 3;
1318 case 3: {
1319 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1320 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1321 input, mutable_default_value()));
1322 } else {
1323 goto handle_unusual;
1324 }
1325 break;
1326 }
1327
1328 // string description = 4;
1329 case 4: {
1330 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1331 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1332 input, this->mutable_description()));
1333 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1334 this->description().data(), static_cast<int>(this->description().length()),
1335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1336 "tensorflow.OpDef.AttrDef.description"));
1337 } else {
1338 goto handle_unusual;
1339 }
1340 break;
1341 }
1342
1343 // bool has_minimum = 5;
1344 case 5: {
1345 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
1346
1347 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1348 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1349 input, &has_minimum_)));
1350 } else {
1351 goto handle_unusual;
1352 }
1353 break;
1354 }
1355
1356 // int64 minimum = 6;
1357 case 6: {
1358 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
1359
1360 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1361 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1362 input, &minimum_)));
1363 } else {
1364 goto handle_unusual;
1365 }
1366 break;
1367 }
1368
1369 // .tensorflow.AttrValue allowed_values = 7;
1370 case 7: {
1371 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
1372 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1373 input, mutable_allowed_values()));
1374 } else {
1375 goto handle_unusual;
1376 }
1377 break;
1378 }
1379
1380 default: {
1381 handle_unusual:
1382 if (tag == 0) {
1383 goto success;
1384 }
1385 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1386 input, tag, _internal_metadata_.mutable_unknown_fields()));
1387 break;
1388 }
1389 }
1390 }
1391success:
1392 // @@protoc_insertion_point(parse_success:tensorflow.OpDef.AttrDef)
1393 return true;
1394failure:
1395 // @@protoc_insertion_point(parse_failure:tensorflow.OpDef.AttrDef)
1396 return false;
1397#undef DO_
1398}
1399#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1400
1401void OpDef_AttrDef::SerializeWithCachedSizes(
1402 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1403 // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.AttrDef)
1404 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1405 (void) cached_has_bits;
1406
1407 // string name = 1;
1408 if (this->name().size() > 0) {
1409 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1410 this->name().data(), static_cast<int>(this->name().length()),
1411 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1412 "tensorflow.OpDef.AttrDef.name");
1413 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1414 1, this->name(), output);
1415 }
1416
1417 // string type = 2;
1418 if (this->type().size() > 0) {
1419 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1420 this->type().data(), static_cast<int>(this->type().length()),
1421 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1422 "tensorflow.OpDef.AttrDef.type");
1423 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1424 2, this->type(), output);
1425 }
1426
1427 // .tensorflow.AttrValue default_value = 3;
1428 if (this->has_default_value()) {
1429 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1430 3, _Internal::default_value(this), output);
1431 }
1432
1433 // string description = 4;
1434 if (this->description().size() > 0) {
1435 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1436 this->description().data(), static_cast<int>(this->description().length()),
1437 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1438 "tensorflow.OpDef.AttrDef.description");
1439 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1440 4, this->description(), output);
1441 }
1442
1443 // bool has_minimum = 5;
1444 if (this->has_minimum() != 0) {
1445 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->has_minimum(), output);
1446 }
1447
1448 // int64 minimum = 6;
1449 if (this->minimum() != 0) {
1450 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->minimum(), output);
1451 }
1452
1453 // .tensorflow.AttrValue allowed_values = 7;
1454 if (this->has_allowed_values()) {
1455 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1456 7, _Internal::allowed_values(this), output);
1457 }
1458
1459 if (_internal_metadata_.have_unknown_fields()) {
1460 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1461 _internal_metadata_.unknown_fields(), output);
1462 }
1463 // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.AttrDef)
1464}
1465
1466::PROTOBUF_NAMESPACE_ID::uint8* OpDef_AttrDef::InternalSerializeWithCachedSizesToArray(
1467 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1468 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.AttrDef)
1469 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1470 (void) cached_has_bits;
1471
1472 // string name = 1;
1473 if (this->name().size() > 0) {
1474 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1475 this->name().data(), static_cast<int>(this->name().length()),
1476 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1477 "tensorflow.OpDef.AttrDef.name");
1478 target =
1479 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1480 1, this->name(), target);
1481 }
1482
1483 // string type = 2;
1484 if (this->type().size() > 0) {
1485 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1486 this->type().data(), static_cast<int>(this->type().length()),
1487 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1488 "tensorflow.OpDef.AttrDef.type");
1489 target =
1490 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1491 2, this->type(), target);
1492 }
1493
1494 // .tensorflow.AttrValue default_value = 3;
1495 if (this->has_default_value()) {
1496 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1497 InternalWriteMessageToArray(
1498 3, _Internal::default_value(this), target);
1499 }
1500
1501 // string description = 4;
1502 if (this->description().size() > 0) {
1503 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1504 this->description().data(), static_cast<int>(this->description().length()),
1505 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1506 "tensorflow.OpDef.AttrDef.description");
1507 target =
1508 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1509 4, this->description(), target);
1510 }
1511
1512 // bool has_minimum = 5;
1513 if (this->has_minimum() != 0) {
1514 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->has_minimum(), target);
1515 }
1516
1517 // int64 minimum = 6;
1518 if (this->minimum() != 0) {
1519 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->minimum(), target);
1520 }
1521
1522 // .tensorflow.AttrValue allowed_values = 7;
1523 if (this->has_allowed_values()) {
1524 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1525 InternalWriteMessageToArray(
1526 7, _Internal::allowed_values(this), target);
1527 }
1528
1529 if (_internal_metadata_.have_unknown_fields()) {
1530 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1531 _internal_metadata_.unknown_fields(), target);
1532 }
1533 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.AttrDef)
1534 return target;
1535}
1536
1537size_t OpDef_AttrDef::ByteSizeLong() const {
1538// @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.AttrDef)
1539 size_t total_size = 0;
1540
1541 if (_internal_metadata_.have_unknown_fields()) {
1542 total_size +=
1543 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1544 _internal_metadata_.unknown_fields());
1545 }
1546 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1547 // Prevent compiler warnings about cached_has_bits being unused
1548 (void) cached_has_bits;
1549
1550 // string name = 1;
1551 if (this->name().size() > 0) {
1552 total_size += 1 +
1553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1554 this->name());
1555 }
1556
1557 // string type = 2;
1558 if (this->type().size() > 0) {
1559 total_size += 1 +
1560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1561 this->type());
1562 }
1563
1564 // string description = 4;
1565 if (this->description().size() > 0) {
1566 total_size += 1 +
1567 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1568 this->description());
1569 }
1570
1571 // .tensorflow.AttrValue default_value = 3;
1572 if (this->has_default_value()) {
1573 total_size += 1 +
1574 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1575 *default_value_);
1576 }
1577
1578 // .tensorflow.AttrValue allowed_values = 7;
1579 if (this->has_allowed_values()) {
1580 total_size += 1 +
1581 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1582 *allowed_values_);
1583 }
1584
1585 // int64 minimum = 6;
1586 if (this->minimum() != 0) {
1587 total_size += 1 +
1588 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1589 this->minimum());
1590 }
1591
1592 // bool has_minimum = 5;
1593 if (this->has_minimum() != 0) {
1594 total_size += 1 + 1;
1595 }
1596
1597 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1598 SetCachedSize(cached_size);
1599 return total_size;
1600}
1601
1602void OpDef_AttrDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1603// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.AttrDef)
1604 GOOGLE_DCHECK_NE(&from, this);
1605 const OpDef_AttrDef* source =
1606 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpDef_AttrDef>(
1607 &from);
1608 if (source == nullptr) {
1609 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef.AttrDef)
1610 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1611 } else {
1612 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.AttrDef)
1613 MergeFrom(*source);
1614 }
1615}
1616
1617void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) {
1618// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.AttrDef)
1619 GOOGLE_DCHECK_NE(&from, this);
1620 _internal_metadata_.MergeFrom(from._internal_metadata_);
1621 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1622 (void) cached_has_bits;
1623
1624 if (from.name().size() > 0) {
1625 set_name(from.name());
1626 }
1627 if (from.type().size() > 0) {
1628 set_type(from.type());
1629 }
1630 if (from.description().size() > 0) {
1631 set_description(from.description());
1632 }
1633 if (from.has_default_value()) {
1634 mutable_default_value()->::tensorflow::AttrValue::MergeFrom(from.default_value());
1635 }
1636 if (from.has_allowed_values()) {
1637 mutable_allowed_values()->::tensorflow::AttrValue::MergeFrom(from.allowed_values());
1638 }
1639 if (from.minimum() != 0) {
1640 set_minimum(from.minimum());
1641 }
1642 if (from.has_minimum() != 0) {
1643 set_has_minimum(from.has_minimum());
1644 }
1645}
1646
1647void OpDef_AttrDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1648// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef.AttrDef)
1649 if (&from == this) return;
1650 Clear();
1651 MergeFrom(from);
1652}
1653
1654void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) {
1655// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.AttrDef)
1656 if (&from == this) return;
1657 Clear();
1658 MergeFrom(from);
1659}
1660
1661bool OpDef_AttrDef::IsInitialized() const {
1662 return true;
1663}
1664
1665void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) {
1666 using std::swap;
1667 _internal_metadata_.Swap(&other->_internal_metadata_);
1668 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1669 GetArenaNoVirtual());
1670 type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1671 GetArenaNoVirtual());
1672 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1673 GetArenaNoVirtual());
1674 swap(default_value_, other->default_value_);
1675 swap(allowed_values_, other->allowed_values_);
1676 swap(minimum_, other->minimum_);
1677 swap(has_minimum_, other->has_minimum_);
1678}
1679
1680::PROTOBUF_NAMESPACE_ID::Metadata OpDef_AttrDef::GetMetadata() const {
1681 return GetMetadataStatic();
1682}
1683
1684
1685// ===================================================================
1686
1687void OpDef::InitAsDefaultInstance() {
1688 ::tensorflow::_OpDef_default_instance_._instance.get_mutable()->deprecation_ = const_cast< ::tensorflow::OpDeprecation*>(
1689 ::tensorflow::OpDeprecation::internal_default_instance());
1690}
1691class OpDef::_Internal {
1692 public:
1693 static const ::tensorflow::OpDeprecation& deprecation(const OpDef* msg);
1694};
1695
1696const ::tensorflow::OpDeprecation&
1697OpDef::_Internal::deprecation(const OpDef* msg) {
1698 return *msg->deprecation_;
1699}
1700void OpDef::unsafe_arena_set_allocated_deprecation(
1701 ::tensorflow::OpDeprecation* deprecation) {
1702 if (GetArenaNoVirtual() == nullptr) {
1703 delete deprecation_;
1704 }
1705 deprecation_ = deprecation;
1706 if (deprecation) {
1707
1708 } else {
1709
1710 }
1711 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.deprecation)
1712}
1713OpDef::OpDef()
1714 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1715 SharedCtor();
1716 // @@protoc_insertion_point(constructor:tensorflow.OpDef)
1717}
1718OpDef::OpDef(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1719 : ::PROTOBUF_NAMESPACE_ID::Message(),
1720 _internal_metadata_(arena),
1721 input_arg_(arena),
1722 output_arg_(arena),
1723 attr_(arena),
1724 control_output_(arena) {
1725 SharedCtor();
1726 RegisterArenaDtor(arena);
1727 // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef)
1728}
1729OpDef::OpDef(const OpDef& from)
1730 : ::PROTOBUF_NAMESPACE_ID::Message(),
1731 _internal_metadata_(nullptr),
1732 input_arg_(from.input_arg_),
1733 output_arg_(from.output_arg_),
1734 attr_(from.attr_),
1735 control_output_(from.control_output_) {
1736 _internal_metadata_.MergeFrom(from._internal_metadata_);
1737 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1738 if (!from.name().empty()) {
1739 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
1740 GetArenaNoVirtual());
1741 }
1742 summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1743 if (!from.summary().empty()) {
1744 summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.summary(),
1745 GetArenaNoVirtual());
1746 }
1747 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1748 if (!from.description().empty()) {
1749 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
1750 GetArenaNoVirtual());
1751 }
1752 if (from.has_deprecation()) {
1753 deprecation_ = new ::tensorflow::OpDeprecation(*from.deprecation_);
1754 } else {
1755 deprecation_ = nullptr;
1756 }
1757 ::memcpy(&is_commutative_, &from.is_commutative_,
1758 static_cast<size_t>(reinterpret_cast<char*>(&is_distributed_communication_) -
1759 reinterpret_cast<char*>(&is_commutative_)) + sizeof(is_distributed_communication_));
1760 // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef)
1761}
1762
1763void OpDef::SharedCtor() {
1764 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
1765 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1766 summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1767 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1768 ::memset(&deprecation_, 0, static_cast<size_t>(
1769 reinterpret_cast<char*>(&is_distributed_communication_) -
1770 reinterpret_cast<char*>(&deprecation_)) + sizeof(is_distributed_communication_));
1771}
1772
1773OpDef::~OpDef() {
1774 // @@protoc_insertion_point(destructor:tensorflow.OpDef)
1775 SharedDtor();
1776}
1777
1778void OpDef::SharedDtor() {
1779 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1780 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1781 summary_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1782 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1783 if (this != internal_default_instance()) delete deprecation_;
1784}
1785
1786void OpDef::ArenaDtor(void* object) {
1787 OpDef* _this = reinterpret_cast< OpDef* >(object);
1788 (void)_this;
1789}
1790void OpDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1791}
1792void OpDef::SetCachedSize(int size) const {
1793 _cached_size_.Set(size);
1794}
1795const OpDef& OpDef::default_instance() {
1796 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpDef_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
1797 return *internal_default_instance();
1798}
1799
1800
1801void OpDef::Clear() {
1802// @@protoc_insertion_point(message_clear_start:tensorflow.OpDef)
1803 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1804 // Prevent compiler warnings about cached_has_bits being unused
1805 (void) cached_has_bits;
1806
1807 input_arg_.Clear();
1808 output_arg_.Clear();
1809 attr_.Clear();
1810 control_output_.Clear();
1811 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1812 summary_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1813 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1814 if (GetArenaNoVirtual() == nullptr && deprecation_ != nullptr) {
1815 delete deprecation_;
1816 }
1817 deprecation_ = nullptr;
1818 ::memset(&is_commutative_, 0, static_cast<size_t>(
1819 reinterpret_cast<char*>(&is_distributed_communication_) -
1820 reinterpret_cast<char*>(&is_commutative_)) + sizeof(is_distributed_communication_));
1821 _internal_metadata_.Clear();
1822}
1823
1824#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1825const char* OpDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1826#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1827 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1828 while (!ctx->Done(&ptr)) {
1829 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1830 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1831 CHK_(ptr);
1832 switch (tag >> 3) {
1833 // string name = 1;
1834 case 1:
1835 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1836 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.OpDef.name");
1837 CHK_(ptr);
1838 } else goto handle_unusual;
1839 continue;
1840 // repeated .tensorflow.OpDef.ArgDef input_arg = 2;
1841 case 2:
1842 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1843 ptr -= 1;
1844 do {
1845 ptr += 1;
1846 ptr = ctx->ParseMessage(add_input_arg(), ptr);
1847 CHK_(ptr);
1848 if (!ctx->DataAvailable(ptr)) break;
1849 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
1850 } else goto handle_unusual;
1851 continue;
1852 // repeated .tensorflow.OpDef.ArgDef output_arg = 3;
1853 case 3:
1854 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1855 ptr -= 1;
1856 do {
1857 ptr += 1;
1858 ptr = ctx->ParseMessage(add_output_arg(), ptr);
1859 CHK_(ptr);
1860 if (!ctx->DataAvailable(ptr)) break;
1861 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
1862 } else goto handle_unusual;
1863 continue;
1864 // repeated .tensorflow.OpDef.AttrDef attr = 4;
1865 case 4:
1866 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1867 ptr -= 1;
1868 do {
1869 ptr += 1;
1870 ptr = ctx->ParseMessage(add_attr(), ptr);
1871 CHK_(ptr);
1872 if (!ctx->DataAvailable(ptr)) break;
1873 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
1874 } else goto handle_unusual;
1875 continue;
1876 // string summary = 5;
1877 case 5:
1878 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1879 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_summary(), ptr, ctx, "tensorflow.OpDef.summary");
1880 CHK_(ptr);
1881 } else goto handle_unusual;
1882 continue;
1883 // string description = 6;
1884 case 6:
1885 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
1886 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.OpDef.description");
1887 CHK_(ptr);
1888 } else goto handle_unusual;
1889 continue;
1890 // .tensorflow.OpDeprecation deprecation = 8;
1891 case 8:
1892 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
1893 ptr = ctx->ParseMessage(mutable_deprecation(), ptr);
1894 CHK_(ptr);
1895 } else goto handle_unusual;
1896 continue;
1897 // bool is_aggregate = 16;
1898 case 16:
1899 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
1900 is_aggregate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1901 CHK_(ptr);
1902 } else goto handle_unusual;
1903 continue;
1904 // bool is_stateful = 17;
1905 case 17:
1906 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
1907 is_stateful_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1908 CHK_(ptr);
1909 } else goto handle_unusual;
1910 continue;
1911 // bool is_commutative = 18;
1912 case 18:
1913 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
1914 is_commutative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1915 CHK_(ptr);
1916 } else goto handle_unusual;
1917 continue;
1918 // bool allows_uninitialized_input = 19;
1919 case 19:
1920 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) {
1921 allows_uninitialized_input_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1922 CHK_(ptr);
1923 } else goto handle_unusual;
1924 continue;
1925 // repeated string control_output = 20;
1926 case 20:
1927 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) {
1928 ptr -= 2;
1929 do {
1930 ptr += 2;
1931 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_control_output(), ptr, ctx, "tensorflow.OpDef.control_output");
1932 CHK_(ptr);
1933 if (!ctx->DataAvailable(ptr)) break;
1934 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 418);
1935 } else goto handle_unusual;
1936 continue;
1937 // bool is_distributed_communication = 21;
1938 case 21:
1939 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) {
1940 is_distributed_communication_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1941 CHK_(ptr);
1942 } else goto handle_unusual;
1943 continue;
1944 default: {
1945 handle_unusual:
1946 if ((tag & 7) == 4 || tag == 0) {
1947 ctx->SetLastTag(tag);
1948 goto success;
1949 }
1950 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1951 CHK_(ptr != nullptr);
1952 continue;
1953 }
1954 } // switch
1955 } // while
1956success:
1957 return ptr;
1958failure:
1959 ptr = nullptr;
1960 goto success;
1961#undef CHK_
1962}
1963#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1964bool OpDef::MergePartialFromCodedStream(
1965 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1966#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1967 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1968 // @@protoc_insertion_point(parse_start:tensorflow.OpDef)
1969 for (;;) {
1970 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1971 tag = p.first;
1972 if (!p.second) goto handle_unusual;
1973 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1974 // string name = 1;
1975 case 1: {
1976 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1977 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1978 input, this->mutable_name()));
1979 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1980 this->name().data(), static_cast<int>(this->name().length()),
1981 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1982 "tensorflow.OpDef.name"));
1983 } else {
1984 goto handle_unusual;
1985 }
1986 break;
1987 }
1988
1989 // repeated .tensorflow.OpDef.ArgDef input_arg = 2;
1990 case 2: {
1991 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1992 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1993 input, add_input_arg()));
1994 } else {
1995 goto handle_unusual;
1996 }
1997 break;
1998 }
1999
2000 // repeated .tensorflow.OpDef.ArgDef output_arg = 3;
2001 case 3: {
2002 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2003 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2004 input, add_output_arg()));
2005 } else {
2006 goto handle_unusual;
2007 }
2008 break;
2009 }
2010
2011 // repeated .tensorflow.OpDef.AttrDef attr = 4;
2012 case 4: {
2013 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
2014 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2015 input, add_attr()));
2016 } else {
2017 goto handle_unusual;
2018 }
2019 break;
2020 }
2021
2022 // string summary = 5;
2023 case 5: {
2024 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
2025 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2026 input, this->mutable_summary()));
2027 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2028 this->summary().data(), static_cast<int>(this->summary().length()),
2029 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2030 "tensorflow.OpDef.summary"));
2031 } else {
2032 goto handle_unusual;
2033 }
2034 break;
2035 }
2036
2037 // string description = 6;
2038 case 6: {
2039 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
2040 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2041 input, this->mutable_description()));
2042 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2043 this->description().data(), static_cast<int>(this->description().length()),
2044 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2045 "tensorflow.OpDef.description"));
2046 } else {
2047 goto handle_unusual;
2048 }
2049 break;
2050 }
2051
2052 // .tensorflow.OpDeprecation deprecation = 8;
2053 case 8: {
2054 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
2055 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2056 input, mutable_deprecation()));
2057 } else {
2058 goto handle_unusual;
2059 }
2060 break;
2061 }
2062
2063 // bool is_aggregate = 16;
2064 case 16: {
2065 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (128 & 0xFF)) {
2066
2067 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2068 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2069 input, &is_aggregate_)));
2070 } else {
2071 goto handle_unusual;
2072 }
2073 break;
2074 }
2075
2076 // bool is_stateful = 17;
2077 case 17: {
2078 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) {
2079
2080 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2081 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2082 input, &is_stateful_)));
2083 } else {
2084 goto handle_unusual;
2085 }
2086 break;
2087 }
2088
2089 // bool is_commutative = 18;
2090 case 18: {
2091 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) {
2092
2093 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2094 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2095 input, &is_commutative_)));
2096 } else {
2097 goto handle_unusual;
2098 }
2099 break;
2100 }
2101
2102 // bool allows_uninitialized_input = 19;
2103 case 19: {
2104 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (152 & 0xFF)) {
2105
2106 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2107 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2108 input, &allows_uninitialized_input_)));
2109 } else {
2110 goto handle_unusual;
2111 }
2112 break;
2113 }
2114
2115 // repeated string control_output = 20;
2116 case 20: {
2117 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (162 & 0xFF)) {
2118 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2119 input, this->add_control_output()));
2120 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2121 this->control_output(this->control_output_size() - 1).data(),
2122 static_cast<int>(this->control_output(this->control_output_size() - 1).length()),
2123 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2124 "tensorflow.OpDef.control_output"));
2125 } else {
2126 goto handle_unusual;
2127 }
2128 break;
2129 }
2130
2131 // bool is_distributed_communication = 21;
2132 case 21: {
2133 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (168 & 0xFF)) {
2134
2135 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2136 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
2137 input, &is_distributed_communication_)));
2138 } else {
2139 goto handle_unusual;
2140 }
2141 break;
2142 }
2143
2144 default: {
2145 handle_unusual:
2146 if (tag == 0) {
2147 goto success;
2148 }
2149 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2150 input, tag, _internal_metadata_.mutable_unknown_fields()));
2151 break;
2152 }
2153 }
2154 }
2155success:
2156 // @@protoc_insertion_point(parse_success:tensorflow.OpDef)
2157 return true;
2158failure:
2159 // @@protoc_insertion_point(parse_failure:tensorflow.OpDef)
2160 return false;
2161#undef DO_
2162}
2163#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2164
2165void OpDef::SerializeWithCachedSizes(
2166 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2167 // @@protoc_insertion_point(serialize_start:tensorflow.OpDef)
2168 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2169 (void) cached_has_bits;
2170
2171 // string name = 1;
2172 if (this->name().size() > 0) {
2173 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2174 this->name().data(), static_cast<int>(this->name().length()),
2175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2176 "tensorflow.OpDef.name");
2177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2178 1, this->name(), output);
2179 }
2180
2181 // repeated .tensorflow.OpDef.ArgDef input_arg = 2;
2182 for (unsigned int i = 0,
2183 n = static_cast<unsigned int>(this->input_arg_size()); i < n; i++) {
2184 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2185 2,
2186 this->input_arg(static_cast<int>(i)),
2187 output);
2188 }
2189
2190 // repeated .tensorflow.OpDef.ArgDef output_arg = 3;
2191 for (unsigned int i = 0,
2192 n = static_cast<unsigned int>(this->output_arg_size()); i < n; i++) {
2193 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2194 3,
2195 this->output_arg(static_cast<int>(i)),
2196 output);
2197 }
2198
2199 // repeated .tensorflow.OpDef.AttrDef attr = 4;
2200 for (unsigned int i = 0,
2201 n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
2202 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2203 4,
2204 this->attr(static_cast<int>(i)),
2205 output);
2206 }
2207
2208 // string summary = 5;
2209 if (this->summary().size() > 0) {
2210 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2211 this->summary().data(), static_cast<int>(this->summary().length()),
2212 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2213 "tensorflow.OpDef.summary");
2214 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2215 5, this->summary(), output);
2216 }
2217
2218 // string description = 6;
2219 if (this->description().size() > 0) {
2220 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2221 this->description().data(), static_cast<int>(this->description().length()),
2222 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2223 "tensorflow.OpDef.description");
2224 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2225 6, this->description(), output);
2226 }
2227
2228 // .tensorflow.OpDeprecation deprecation = 8;
2229 if (this->has_deprecation()) {
2230 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2231 8, _Internal::deprecation(this), output);
2232 }
2233
2234 // bool is_aggregate = 16;
2235 if (this->is_aggregate() != 0) {
2236 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(16, this->is_aggregate(), output);
2237 }
2238
2239 // bool is_stateful = 17;
2240 if (this->is_stateful() != 0) {
2241 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(17, this->is_stateful(), output);
2242 }
2243
2244 // bool is_commutative = 18;
2245 if (this->is_commutative() != 0) {
2246 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(18, this->is_commutative(), output);
2247 }
2248
2249 // bool allows_uninitialized_input = 19;
2250 if (this->allows_uninitialized_input() != 0) {
2251 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(19, this->allows_uninitialized_input(), output);
2252 }
2253
2254 // repeated string control_output = 20;
2255 for (int i = 0, n = this->control_output_size(); i < n; i++) {
2256 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2257 this->control_output(i).data(), static_cast<int>(this->control_output(i).length()),
2258 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2259 "tensorflow.OpDef.control_output");
2260 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2261 20, this->control_output(i), output);
2262 }
2263
2264 // bool is_distributed_communication = 21;
2265 if (this->is_distributed_communication() != 0) {
2266 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(21, this->is_distributed_communication(), output);
2267 }
2268
2269 if (_internal_metadata_.have_unknown_fields()) {
2270 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2271 _internal_metadata_.unknown_fields(), output);
2272 }
2273 // @@protoc_insertion_point(serialize_end:tensorflow.OpDef)
2274}
2275
2276::PROTOBUF_NAMESPACE_ID::uint8* OpDef::InternalSerializeWithCachedSizesToArray(
2277 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2278 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef)
2279 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2280 (void) cached_has_bits;
2281
2282 // string name = 1;
2283 if (this->name().size() > 0) {
2284 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2285 this->name().data(), static_cast<int>(this->name().length()),
2286 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2287 "tensorflow.OpDef.name");
2288 target =
2289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2290 1, this->name(), target);
2291 }
2292
2293 // repeated .tensorflow.OpDef.ArgDef input_arg = 2;
2294 for (unsigned int i = 0,
2295 n = static_cast<unsigned int>(this->input_arg_size()); i < n; i++) {
2296 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2297 InternalWriteMessageToArray(
2298 2, this->input_arg(static_cast<int>(i)), target);
2299 }
2300
2301 // repeated .tensorflow.OpDef.ArgDef output_arg = 3;
2302 for (unsigned int i = 0,
2303 n = static_cast<unsigned int>(this->output_arg_size()); i < n; i++) {
2304 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2305 InternalWriteMessageToArray(
2306 3, this->output_arg(static_cast<int>(i)), target);
2307 }
2308
2309 // repeated .tensorflow.OpDef.AttrDef attr = 4;
2310 for (unsigned int i = 0,
2311 n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
2312 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2313 InternalWriteMessageToArray(
2314 4, this->attr(static_cast<int>(i)), target);
2315 }
2316
2317 // string summary = 5;
2318 if (this->summary().size() > 0) {
2319 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2320 this->summary().data(), static_cast<int>(this->summary().length()),
2321 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2322 "tensorflow.OpDef.summary");
2323 target =
2324 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2325 5, this->summary(), target);
2326 }
2327
2328 // string description = 6;
2329 if (this->description().size() > 0) {
2330 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2331 this->description().data(), static_cast<int>(this->description().length()),
2332 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2333 "tensorflow.OpDef.description");
2334 target =
2335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2336 6, this->description(), target);
2337 }
2338
2339 // .tensorflow.OpDeprecation deprecation = 8;
2340 if (this->has_deprecation()) {
2341 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2342 InternalWriteMessageToArray(
2343 8, _Internal::deprecation(this), target);
2344 }
2345
2346 // bool is_aggregate = 16;
2347 if (this->is_aggregate() != 0) {
2348 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->is_aggregate(), target);
2349 }
2350
2351 // bool is_stateful = 17;
2352 if (this->is_stateful() != 0) {
2353 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->is_stateful(), target);
2354 }
2355
2356 // bool is_commutative = 18;
2357 if (this->is_commutative() != 0) {
2358 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->is_commutative(), target);
2359 }
2360
2361 // bool allows_uninitialized_input = 19;
2362 if (this->allows_uninitialized_input() != 0) {
2363 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(19, this->allows_uninitialized_input(), target);
2364 }
2365
2366 // repeated string control_output = 20;
2367 for (int i = 0, n = this->control_output_size(); i < n; i++) {
2368 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2369 this->control_output(i).data(), static_cast<int>(this->control_output(i).length()),
2370 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2371 "tensorflow.OpDef.control_output");
2372 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2373 WriteStringToArray(20, this->control_output(i), target);
2374 }
2375
2376 // bool is_distributed_communication = 21;
2377 if (this->is_distributed_communication() != 0) {
2378 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(21, this->is_distributed_communication(), target);
2379 }
2380
2381 if (_internal_metadata_.have_unknown_fields()) {
2382 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2383 _internal_metadata_.unknown_fields(), target);
2384 }
2385 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef)
2386 return target;
2387}
2388
2389size_t OpDef::ByteSizeLong() const {
2390// @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef)
2391 size_t total_size = 0;
2392
2393 if (_internal_metadata_.have_unknown_fields()) {
2394 total_size +=
2395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2396 _internal_metadata_.unknown_fields());
2397 }
2398 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2399 // Prevent compiler warnings about cached_has_bits being unused
2400 (void) cached_has_bits;
2401
2402 // repeated .tensorflow.OpDef.ArgDef input_arg = 2;
2403 {
2404 unsigned int count = static_cast<unsigned int>(this->input_arg_size());
2405 total_size += 1UL * count;
2406 for (unsigned int i = 0; i < count; i++) {
2407 total_size +=
2408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2409 this->input_arg(static_cast<int>(i)));
2410 }
2411 }
2412
2413 // repeated .tensorflow.OpDef.ArgDef output_arg = 3;
2414 {
2415 unsigned int count = static_cast<unsigned int>(this->output_arg_size());
2416 total_size += 1UL * count;
2417 for (unsigned int i = 0; i < count; i++) {
2418 total_size +=
2419 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2420 this->output_arg(static_cast<int>(i)));
2421 }
2422 }
2423
2424 // repeated .tensorflow.OpDef.AttrDef attr = 4;
2425 {
2426 unsigned int count = static_cast<unsigned int>(this->attr_size());
2427 total_size += 1UL * count;
2428 for (unsigned int i = 0; i < count; i++) {
2429 total_size +=
2430 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2431 this->attr(static_cast<int>(i)));
2432 }
2433 }
2434
2435 // repeated string control_output = 20;
2436 total_size += 2 *
2437 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->control_output_size());
2438 for (int i = 0, n = this->control_output_size(); i < n; i++) {
2439 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2440 this->control_output(i));
2441 }
2442
2443 // string name = 1;
2444 if (this->name().size() > 0) {
2445 total_size += 1 +
2446 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2447 this->name());
2448 }
2449
2450 // string summary = 5;
2451 if (this->summary().size() > 0) {
2452 total_size += 1 +
2453 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2454 this->summary());
2455 }
2456
2457 // string description = 6;
2458 if (this->description().size() > 0) {
2459 total_size += 1 +
2460 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2461 this->description());
2462 }
2463
2464 // .tensorflow.OpDeprecation deprecation = 8;
2465 if (this->has_deprecation()) {
2466 total_size += 1 +
2467 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2468 *deprecation_);
2469 }
2470
2471 // bool is_commutative = 18;
2472 if (this->is_commutative() != 0) {
2473 total_size += 2 + 1;
2474 }
2475
2476 // bool is_aggregate = 16;
2477 if (this->is_aggregate() != 0) {
2478 total_size += 2 + 1;
2479 }
2480
2481 // bool is_stateful = 17;
2482 if (this->is_stateful() != 0) {
2483 total_size += 2 + 1;
2484 }
2485
2486 // bool allows_uninitialized_input = 19;
2487 if (this->allows_uninitialized_input() != 0) {
2488 total_size += 2 + 1;
2489 }
2490
2491 // bool is_distributed_communication = 21;
2492 if (this->is_distributed_communication() != 0) {
2493 total_size += 2 + 1;
2494 }
2495
2496 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2497 SetCachedSize(cached_size);
2498 return total_size;
2499}
2500
2501void OpDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2502// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef)
2503 GOOGLE_DCHECK_NE(&from, this);
2504 const OpDef* source =
2505 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpDef>(
2506 &from);
2507 if (source == nullptr) {
2508 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef)
2509 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2510 } else {
2511 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef)
2512 MergeFrom(*source);
2513 }
2514}
2515
2516void OpDef::MergeFrom(const OpDef& from) {
2517// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef)
2518 GOOGLE_DCHECK_NE(&from, this);
2519 _internal_metadata_.MergeFrom(from._internal_metadata_);
2520 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2521 (void) cached_has_bits;
2522
2523 input_arg_.MergeFrom(from.input_arg_);
2524 output_arg_.MergeFrom(from.output_arg_);
2525 attr_.MergeFrom(from.attr_);
2526 control_output_.MergeFrom(from.control_output_);
2527 if (from.name().size() > 0) {
2528 set_name(from.name());
2529 }
2530 if (from.summary().size() > 0) {
2531 set_summary(from.summary());
2532 }
2533 if (from.description().size() > 0) {
2534 set_description(from.description());
2535 }
2536 if (from.has_deprecation()) {
2537 mutable_deprecation()->::tensorflow::OpDeprecation::MergeFrom(from.deprecation());
2538 }
2539 if (from.is_commutative() != 0) {
2540 set_is_commutative(from.is_commutative());
2541 }
2542 if (from.is_aggregate() != 0) {
2543 set_is_aggregate(from.is_aggregate());
2544 }
2545 if (from.is_stateful() != 0) {
2546 set_is_stateful(from.is_stateful());
2547 }
2548 if (from.allows_uninitialized_input() != 0) {
2549 set_allows_uninitialized_input(from.allows_uninitialized_input());
2550 }
2551 if (from.is_distributed_communication() != 0) {
2552 set_is_distributed_communication(from.is_distributed_communication());
2553 }
2554}
2555
2556void OpDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2557// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef)
2558 if (&from == this) return;
2559 Clear();
2560 MergeFrom(from);
2561}
2562
2563void OpDef::CopyFrom(const OpDef& from) {
2564// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef)
2565 if (&from == this) return;
2566 Clear();
2567 MergeFrom(from);
2568}
2569
2570bool OpDef::IsInitialized() const {
2571 return true;
2572}
2573
2574void OpDef::InternalSwap(OpDef* other) {
2575 using std::swap;
2576 _internal_metadata_.Swap(&other->_internal_metadata_);
2577 CastToBase(&input_arg_)->InternalSwap(CastToBase(&other->input_arg_));
2578 CastToBase(&output_arg_)->InternalSwap(CastToBase(&other->output_arg_));
2579 CastToBase(&attr_)->InternalSwap(CastToBase(&other->attr_));
2580 control_output_.InternalSwap(CastToBase(&other->control_output_));
2581 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2582 GetArenaNoVirtual());
2583 summary_.Swap(&other->summary_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2584 GetArenaNoVirtual());
2585 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2586 GetArenaNoVirtual());
2587 swap(deprecation_, other->deprecation_);
2588 swap(is_commutative_, other->is_commutative_);
2589 swap(is_aggregate_, other->is_aggregate_);
2590 swap(is_stateful_, other->is_stateful_);
2591 swap(allows_uninitialized_input_, other->allows_uninitialized_input_);
2592 swap(is_distributed_communication_, other->is_distributed_communication_);
2593}
2594
2595::PROTOBUF_NAMESPACE_ID::Metadata OpDef::GetMetadata() const {
2596 return GetMetadataStatic();
2597}
2598
2599
2600// ===================================================================
2601
2602void OpDeprecation::InitAsDefaultInstance() {
2603}
2604class OpDeprecation::_Internal {
2605 public:
2606};
2607
2608OpDeprecation::OpDeprecation()
2609 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2610 SharedCtor();
2611 // @@protoc_insertion_point(constructor:tensorflow.OpDeprecation)
2612}
2613OpDeprecation::OpDeprecation(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2614 : ::PROTOBUF_NAMESPACE_ID::Message(),
2615 _internal_metadata_(arena) {
2616 SharedCtor();
2617 RegisterArenaDtor(arena);
2618 // @@protoc_insertion_point(arena_constructor:tensorflow.OpDeprecation)
2619}
2620OpDeprecation::OpDeprecation(const OpDeprecation& from)
2621 : ::PROTOBUF_NAMESPACE_ID::Message(),
2622 _internal_metadata_(nullptr) {
2623 _internal_metadata_.MergeFrom(from._internal_metadata_);
2624 explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2625 if (!from.explanation().empty()) {
2626 explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.explanation(),
2627 GetArenaNoVirtual());
2628 }
2629 version_ = from.version_;
2630 // @@protoc_insertion_point(copy_constructor:tensorflow.OpDeprecation)
2631}
2632
2633void OpDeprecation::SharedCtor() {
2634 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
2635 explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2636 version_ = 0;
2637}
2638
2639OpDeprecation::~OpDeprecation() {
2640 // @@protoc_insertion_point(destructor:tensorflow.OpDeprecation)
2641 SharedDtor();
2642}
2643
2644void OpDeprecation::SharedDtor() {
2645 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2646 explanation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2647}
2648
2649void OpDeprecation::ArenaDtor(void* object) {
2650 OpDeprecation* _this = reinterpret_cast< OpDeprecation* >(object);
2651 (void)_this;
2652}
2653void OpDeprecation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2654}
2655void OpDeprecation::SetCachedSize(int size) const {
2656 _cached_size_.Set(size);
2657}
2658const OpDeprecation& OpDeprecation::default_instance() {
2659 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpDeprecation_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
2660 return *internal_default_instance();
2661}
2662
2663
2664void OpDeprecation::Clear() {
2665// @@protoc_insertion_point(message_clear_start:tensorflow.OpDeprecation)
2666 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2667 // Prevent compiler warnings about cached_has_bits being unused
2668 (void) cached_has_bits;
2669
2670 explanation_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2671 version_ = 0;
2672 _internal_metadata_.Clear();
2673}
2674
2675#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2676const char* OpDeprecation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2677#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2678 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2679 while (!ctx->Done(&ptr)) {
2680 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2681 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2682 CHK_(ptr);
2683 switch (tag >> 3) {
2684 // int32 version = 1;
2685 case 1:
2686 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
2687 version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2688 CHK_(ptr);
2689 } else goto handle_unusual;
2690 continue;
2691 // string explanation = 2;
2692 case 2:
2693 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2694 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_explanation(), ptr, ctx, "tensorflow.OpDeprecation.explanation");
2695 CHK_(ptr);
2696 } else goto handle_unusual;
2697 continue;
2698 default: {
2699 handle_unusual:
2700 if ((tag & 7) == 4 || tag == 0) {
2701 ctx->SetLastTag(tag);
2702 goto success;
2703 }
2704 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2705 CHK_(ptr != nullptr);
2706 continue;
2707 }
2708 } // switch
2709 } // while
2710success:
2711 return ptr;
2712failure:
2713 ptr = nullptr;
2714 goto success;
2715#undef CHK_
2716}
2717#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2718bool OpDeprecation::MergePartialFromCodedStream(
2719 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2720#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2721 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2722 // @@protoc_insertion_point(parse_start:tensorflow.OpDeprecation)
2723 for (;;) {
2724 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2725 tag = p.first;
2726 if (!p.second) goto handle_unusual;
2727 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2728 // int32 version = 1;
2729 case 1: {
2730 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
2731
2732 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2733 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2734 input, &version_)));
2735 } else {
2736 goto handle_unusual;
2737 }
2738 break;
2739 }
2740
2741 // string explanation = 2;
2742 case 2: {
2743 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2744 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2745 input, this->mutable_explanation()));
2746 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2747 this->explanation().data(), static_cast<int>(this->explanation().length()),
2748 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2749 "tensorflow.OpDeprecation.explanation"));
2750 } else {
2751 goto handle_unusual;
2752 }
2753 break;
2754 }
2755
2756 default: {
2757 handle_unusual:
2758 if (tag == 0) {
2759 goto success;
2760 }
2761 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2762 input, tag, _internal_metadata_.mutable_unknown_fields()));
2763 break;
2764 }
2765 }
2766 }
2767success:
2768 // @@protoc_insertion_point(parse_success:tensorflow.OpDeprecation)
2769 return true;
2770failure:
2771 // @@protoc_insertion_point(parse_failure:tensorflow.OpDeprecation)
2772 return false;
2773#undef DO_
2774}
2775#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2776
2777void OpDeprecation::SerializeWithCachedSizes(
2778 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2779 // @@protoc_insertion_point(serialize_start:tensorflow.OpDeprecation)
2780 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2781 (void) cached_has_bits;
2782
2783 // int32 version = 1;
2784 if (this->version() != 0) {
2785 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->version(), output);
2786 }
2787
2788 // string explanation = 2;
2789 if (this->explanation().size() > 0) {
2790 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2791 this->explanation().data(), static_cast<int>(this->explanation().length()),
2792 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2793 "tensorflow.OpDeprecation.explanation");
2794 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2795 2, this->explanation(), output);
2796 }
2797
2798 if (_internal_metadata_.have_unknown_fields()) {
2799 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2800 _internal_metadata_.unknown_fields(), output);
2801 }
2802 // @@protoc_insertion_point(serialize_end:tensorflow.OpDeprecation)
2803}
2804
2805::PROTOBUF_NAMESPACE_ID::uint8* OpDeprecation::InternalSerializeWithCachedSizesToArray(
2806 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2807 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDeprecation)
2808 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2809 (void) cached_has_bits;
2810
2811 // int32 version = 1;
2812 if (this->version() != 0) {
2813 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target);
2814 }
2815
2816 // string explanation = 2;
2817 if (this->explanation().size() > 0) {
2818 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2819 this->explanation().data(), static_cast<int>(this->explanation().length()),
2820 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2821 "tensorflow.OpDeprecation.explanation");
2822 target =
2823 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2824 2, this->explanation(), target);
2825 }
2826
2827 if (_internal_metadata_.have_unknown_fields()) {
2828 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2829 _internal_metadata_.unknown_fields(), target);
2830 }
2831 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDeprecation)
2832 return target;
2833}
2834
2835size_t OpDeprecation::ByteSizeLong() const {
2836// @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDeprecation)
2837 size_t total_size = 0;
2838
2839 if (_internal_metadata_.have_unknown_fields()) {
2840 total_size +=
2841 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2842 _internal_metadata_.unknown_fields());
2843 }
2844 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2845 // Prevent compiler warnings about cached_has_bits being unused
2846 (void) cached_has_bits;
2847
2848 // string explanation = 2;
2849 if (this->explanation().size() > 0) {
2850 total_size += 1 +
2851 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2852 this->explanation());
2853 }
2854
2855 // int32 version = 1;
2856 if (this->version() != 0) {
2857 total_size += 1 +
2858 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
2859 this->version());
2860 }
2861
2862 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2863 SetCachedSize(cached_size);
2864 return total_size;
2865}
2866
2867void OpDeprecation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2868// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDeprecation)
2869 GOOGLE_DCHECK_NE(&from, this);
2870 const OpDeprecation* source =
2871 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpDeprecation>(
2872 &from);
2873 if (source == nullptr) {
2874 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDeprecation)
2875 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2876 } else {
2877 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDeprecation)
2878 MergeFrom(*source);
2879 }
2880}
2881
2882void OpDeprecation::MergeFrom(const OpDeprecation& from) {
2883// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDeprecation)
2884 GOOGLE_DCHECK_NE(&from, this);
2885 _internal_metadata_.MergeFrom(from._internal_metadata_);
2886 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2887 (void) cached_has_bits;
2888
2889 if (from.explanation().size() > 0) {
2890 set_explanation(from.explanation());
2891 }
2892 if (from.version() != 0) {
2893 set_version(from.version());
2894 }
2895}
2896
2897void OpDeprecation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2898// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDeprecation)
2899 if (&from == this) return;
2900 Clear();
2901 MergeFrom(from);
2902}
2903
2904void OpDeprecation::CopyFrom(const OpDeprecation& from) {
2905// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDeprecation)
2906 if (&from == this) return;
2907 Clear();
2908 MergeFrom(from);
2909}
2910
2911bool OpDeprecation::IsInitialized() const {
2912 return true;
2913}
2914
2915void OpDeprecation::InternalSwap(OpDeprecation* other) {
2916 using std::swap;
2917 _internal_metadata_.Swap(&other->_internal_metadata_);
2918 explanation_.Swap(&other->explanation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2919 GetArenaNoVirtual());
2920 swap(version_, other->version_);
2921}
2922
2923::PROTOBUF_NAMESPACE_ID::Metadata OpDeprecation::GetMetadata() const {
2924 return GetMetadataStatic();
2925}
2926
2927
2928// ===================================================================
2929
2930void OpList::InitAsDefaultInstance() {
2931}
2932class OpList::_Internal {
2933 public:
2934};
2935
2936OpList::OpList()
2937 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2938 SharedCtor();
2939 // @@protoc_insertion_point(constructor:tensorflow.OpList)
2940}
2941OpList::OpList(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2942 : ::PROTOBUF_NAMESPACE_ID::Message(),
2943 _internal_metadata_(arena),
2944 op_(arena) {
2945 SharedCtor();
2946 RegisterArenaDtor(arena);
2947 // @@protoc_insertion_point(arena_constructor:tensorflow.OpList)
2948}
2949OpList::OpList(const OpList& from)
2950 : ::PROTOBUF_NAMESPACE_ID::Message(),
2951 _internal_metadata_(nullptr),
2952 op_(from.op_) {
2953 _internal_metadata_.MergeFrom(from._internal_metadata_);
2954 // @@protoc_insertion_point(copy_constructor:tensorflow.OpList)
2955}
2956
2957void OpList::SharedCtor() {
2958 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
2959}
2960
2961OpList::~OpList() {
2962 // @@protoc_insertion_point(destructor:tensorflow.OpList)
2963 SharedDtor();
2964}
2965
2966void OpList::SharedDtor() {
2967 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2968}
2969
2970void OpList::ArenaDtor(void* object) {
2971 OpList* _this = reinterpret_cast< OpList* >(object);
2972 (void)_this;
2973}
2974void OpList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2975}
2976void OpList::SetCachedSize(int size) const {
2977 _cached_size_.Set(size);
2978}
2979const OpList& OpList::default_instance() {
2980 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base);
2981 return *internal_default_instance();
2982}
2983
2984
2985void OpList::Clear() {
2986// @@protoc_insertion_point(message_clear_start:tensorflow.OpList)
2987 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2988 // Prevent compiler warnings about cached_has_bits being unused
2989 (void) cached_has_bits;
2990
2991 op_.Clear();
2992 _internal_metadata_.Clear();
2993}
2994
2995#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2996const char* OpList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2997#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2998 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2999 while (!ctx->Done(&ptr)) {
3000 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3001 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3002 CHK_(ptr);
3003 switch (tag >> 3) {
3004 // repeated .tensorflow.OpDef op = 1;
3005 case 1:
3006 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3007 ptr -= 1;
3008 do {
3009 ptr += 1;
3010 ptr = ctx->ParseMessage(add_op(), ptr);
3011 CHK_(ptr);
3012 if (!ctx->DataAvailable(ptr)) break;
3013 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
3014 } else goto handle_unusual;
3015 continue;
3016 default: {
3017 handle_unusual:
3018 if ((tag & 7) == 4 || tag == 0) {
3019 ctx->SetLastTag(tag);
3020 goto success;
3021 }
3022 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3023 CHK_(ptr != nullptr);
3024 continue;
3025 }
3026 } // switch
3027 } // while
3028success:
3029 return ptr;
3030failure:
3031 ptr = nullptr;
3032 goto success;
3033#undef CHK_
3034}
3035#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3036bool OpList::MergePartialFromCodedStream(
3037 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3038#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3039 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3040 // @@protoc_insertion_point(parse_start:tensorflow.OpList)
3041 for (;;) {
3042 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3043 tag = p.first;
3044 if (!p.second) goto handle_unusual;
3045 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3046 // repeated .tensorflow.OpDef op = 1;
3047 case 1: {
3048 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3049 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3050 input, add_op()));
3051 } else {
3052 goto handle_unusual;
3053 }
3054 break;
3055 }
3056
3057 default: {
3058 handle_unusual:
3059 if (tag == 0) {
3060 goto success;
3061 }
3062 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3063 input, tag, _internal_metadata_.mutable_unknown_fields()));
3064 break;
3065 }
3066 }
3067 }
3068success:
3069 // @@protoc_insertion_point(parse_success:tensorflow.OpList)
3070 return true;
3071failure:
3072 // @@protoc_insertion_point(parse_failure:tensorflow.OpList)
3073 return false;
3074#undef DO_
3075}
3076#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3077
3078void OpList::SerializeWithCachedSizes(
3079 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3080 // @@protoc_insertion_point(serialize_start:tensorflow.OpList)
3081 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3082 (void) cached_has_bits;
3083
3084 // repeated .tensorflow.OpDef op = 1;
3085 for (unsigned int i = 0,
3086 n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
3087 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3088 1,
3089 this->op(static_cast<int>(i)),
3090 output);
3091 }
3092
3093 if (_internal_metadata_.have_unknown_fields()) {
3094 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3095 _internal_metadata_.unknown_fields(), output);
3096 }
3097 // @@protoc_insertion_point(serialize_end:tensorflow.OpList)
3098}
3099
3100::PROTOBUF_NAMESPACE_ID::uint8* OpList::InternalSerializeWithCachedSizesToArray(
3101 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3102 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpList)
3103 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3104 (void) cached_has_bits;
3105
3106 // repeated .tensorflow.OpDef op = 1;
3107 for (unsigned int i = 0,
3108 n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
3109 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3110 InternalWriteMessageToArray(
3111 1, this->op(static_cast<int>(i)), target);
3112 }
3113
3114 if (_internal_metadata_.have_unknown_fields()) {
3115 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3116 _internal_metadata_.unknown_fields(), target);
3117 }
3118 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpList)
3119 return target;
3120}
3121
3122size_t OpList::ByteSizeLong() const {
3123// @@protoc_insertion_point(message_byte_size_start:tensorflow.OpList)
3124 size_t total_size = 0;
3125
3126 if (_internal_metadata_.have_unknown_fields()) {
3127 total_size +=
3128 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3129 _internal_metadata_.unknown_fields());
3130 }
3131 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3132 // Prevent compiler warnings about cached_has_bits being unused
3133 (void) cached_has_bits;
3134
3135 // repeated .tensorflow.OpDef op = 1;
3136 {
3137 unsigned int count = static_cast<unsigned int>(this->op_size());
3138 total_size += 1UL * count;
3139 for (unsigned int i = 0; i < count; i++) {
3140 total_size +=
3141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3142 this->op(static_cast<int>(i)));
3143 }
3144 }
3145
3146 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3147 SetCachedSize(cached_size);
3148 return total_size;
3149}
3150
3151void OpList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3152// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpList)
3153 GOOGLE_DCHECK_NE(&from, this);
3154 const OpList* source =
3155 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OpList>(
3156 &from);
3157 if (source == nullptr) {
3158 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpList)
3159 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3160 } else {
3161 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpList)
3162 MergeFrom(*source);
3163 }
3164}
3165
3166void OpList::MergeFrom(const OpList& from) {
3167// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpList)
3168 GOOGLE_DCHECK_NE(&from, this);
3169 _internal_metadata_.MergeFrom(from._internal_metadata_);
3170 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3171 (void) cached_has_bits;
3172
3173 op_.MergeFrom(from.op_);
3174}
3175
3176void OpList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3177// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpList)
3178 if (&from == this) return;
3179 Clear();
3180 MergeFrom(from);
3181}
3182
3183void OpList::CopyFrom(const OpList& from) {
3184// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpList)
3185 if (&from == this) return;
3186 Clear();
3187 MergeFrom(from);
3188}
3189
3190bool OpList::IsInitialized() const {
3191 return true;
3192}
3193
3194void OpList::InternalSwap(OpList* other) {
3195 using std::swap;
3196 _internal_metadata_.Swap(&other->_internal_metadata_);
3197 CastToBase(&op_)->InternalSwap(CastToBase(&other->op_));
3198}
3199
3200::PROTOBUF_NAMESPACE_ID::Metadata OpList::GetMetadata() const {
3201 return GetMetadataStatic();
3202}
3203
3204
3205// @@protoc_insertion_point(namespace_scope)
3206} // namespace tensorflow
3207PROTOBUF_NAMESPACE_OPEN
3208template<> PROTOBUF_NOINLINE ::tensorflow::OpDef_ArgDef* Arena::CreateMaybeMessage< ::tensorflow::OpDef_ArgDef >(Arena* arena) {
3209 return Arena::CreateMessageInternal< ::tensorflow::OpDef_ArgDef >(arena);
3210}
3211template<> PROTOBUF_NOINLINE ::tensorflow::OpDef_AttrDef* Arena::CreateMaybeMessage< ::tensorflow::OpDef_AttrDef >(Arena* arena) {
3212 return Arena::CreateMessageInternal< ::tensorflow::OpDef_AttrDef >(arena);
3213}
3214template<> PROTOBUF_NOINLINE ::tensorflow::OpDef* Arena::CreateMaybeMessage< ::tensorflow::OpDef >(Arena* arena) {
3215 return Arena::CreateMessageInternal< ::tensorflow::OpDef >(arena);
3216}
3217template<> PROTOBUF_NOINLINE ::tensorflow::OpDeprecation* Arena::CreateMaybeMessage< ::tensorflow::OpDeprecation >(Arena* arena) {
3218 return Arena::CreateMessageInternal< ::tensorflow::OpDeprecation >(arena);
3219}
3220template<> PROTOBUF_NOINLINE ::tensorflow::OpList* Arena::CreateMaybeMessage< ::tensorflow::OpList >(Arena* arena) {
3221 return Arena::CreateMessageInternal< ::tensorflow::OpList >(arena);
3222}
3223PROTOBUF_NAMESPACE_CLOSE
3224
3225// @@protoc_insertion_point(global_scope)
3226#include <google/protobuf/port_undef.inc>
3227