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