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