1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/meta_graph.proto |
3 | |
4 | #include "tensorflow/core/protobuf/meta_graph.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
21 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
22 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
23 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
24 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
25 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
26 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fstruct_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_DictValue_tensorflow_2fcore_2fprotobuf_2fstruct_2eproto; |
27 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto; |
28 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
29 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
30 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
31 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
32 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto; |
33 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SavedObjectGraph_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
34 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SaverDef_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto; |
35 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
36 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
37 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
38 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
39 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
40 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
41 | namespace tensorflow { |
42 | class MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUseDefaultTypeInternal { |
43 | public: |
44 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse> _instance; |
45 | } _MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_default_instance_; |
46 | class MetaGraphDef_MetaInfoDefDefaultTypeInternal { |
47 | public: |
48 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaGraphDef_MetaInfoDef> _instance; |
49 | } _MetaGraphDef_MetaInfoDef_default_instance_; |
50 | class MetaGraphDef_CollectionDefEntry_DoNotUseDefaultTypeInternal { |
51 | public: |
52 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaGraphDef_CollectionDefEntry_DoNotUse> _instance; |
53 | } _MetaGraphDef_CollectionDefEntry_DoNotUse_default_instance_; |
54 | class MetaGraphDef_SignatureDefEntry_DoNotUseDefaultTypeInternal { |
55 | public: |
56 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaGraphDef_SignatureDefEntry_DoNotUse> _instance; |
57 | } _MetaGraphDef_SignatureDefEntry_DoNotUse_default_instance_; |
58 | class MetaGraphDefDefaultTypeInternal { |
59 | public: |
60 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaGraphDef> _instance; |
61 | } _MetaGraphDef_default_instance_; |
62 | class CollectionDef_NodeListDefaultTypeInternal { |
63 | public: |
64 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef_NodeList> _instance; |
65 | } _CollectionDef_NodeList_default_instance_; |
66 | class CollectionDef_BytesListDefaultTypeInternal { |
67 | public: |
68 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef_BytesList> _instance; |
69 | } _CollectionDef_BytesList_default_instance_; |
70 | class CollectionDef_Int64ListDefaultTypeInternal { |
71 | public: |
72 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef_Int64List> _instance; |
73 | } _CollectionDef_Int64List_default_instance_; |
74 | class CollectionDef_FloatListDefaultTypeInternal { |
75 | public: |
76 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef_FloatList> _instance; |
77 | } _CollectionDef_FloatList_default_instance_; |
78 | class CollectionDef_AnyListDefaultTypeInternal { |
79 | public: |
80 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef_AnyList> _instance; |
81 | } _CollectionDef_AnyList_default_instance_; |
82 | class CollectionDefDefaultTypeInternal { |
83 | public: |
84 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDef> _instance; |
85 | const ::tensorflow::CollectionDef_NodeList* node_list_; |
86 | const ::tensorflow::CollectionDef_BytesList* bytes_list_; |
87 | const ::tensorflow::CollectionDef_Int64List* int64_list_; |
88 | const ::tensorflow::CollectionDef_FloatList* float_list_; |
89 | const ::tensorflow::CollectionDef_AnyList* any_list_; |
90 | } _CollectionDef_default_instance_; |
91 | class TensorInfo_CooSparseDefaultTypeInternal { |
92 | public: |
93 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TensorInfo_CooSparse> _instance; |
94 | } _TensorInfo_CooSparse_default_instance_; |
95 | class TensorInfo_CompositeTensorDefaultTypeInternal { |
96 | public: |
97 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TensorInfo_CompositeTensor> _instance; |
98 | } _TensorInfo_CompositeTensor_default_instance_; |
99 | class TensorInfoDefaultTypeInternal { |
100 | public: |
101 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TensorInfo> _instance; |
102 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
103 | const ::tensorflow::TensorInfo_CooSparse* coo_sparse_; |
104 | const ::tensorflow::TensorInfo_CompositeTensor* composite_tensor_; |
105 | } _TensorInfo_default_instance_; |
106 | class SignatureDef_InputsEntry_DoNotUseDefaultTypeInternal { |
107 | public: |
108 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SignatureDef_InputsEntry_DoNotUse> _instance; |
109 | } _SignatureDef_InputsEntry_DoNotUse_default_instance_; |
110 | class SignatureDef_OutputsEntry_DoNotUseDefaultTypeInternal { |
111 | public: |
112 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SignatureDef_OutputsEntry_DoNotUse> _instance; |
113 | } _SignatureDef_OutputsEntry_DoNotUse_default_instance_; |
114 | class SignatureDefDefaultTypeInternal { |
115 | public: |
116 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SignatureDef> _instance; |
117 | } _SignatureDef_default_instance_; |
118 | class AssetFileDefDefaultTypeInternal { |
119 | public: |
120 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AssetFileDef> _instance; |
121 | } _AssetFileDef_default_instance_; |
122 | } // namespace tensorflow |
123 | static void InitDefaultsscc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
124 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
125 | |
126 | { |
127 | void* ptr = &::tensorflow::_AssetFileDef_default_instance_; |
128 | new (ptr) ::tensorflow::AssetFileDef(); |
129 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
130 | } |
131 | ::tensorflow::AssetFileDef::InitAsDefaultInstance(); |
132 | } |
133 | |
134 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
135 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
136 | &scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
137 | |
138 | static void InitDefaultsscc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
139 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
140 | |
141 | { |
142 | void* ptr = &::tensorflow::_CollectionDef_default_instance_; |
143 | new (ptr) ::tensorflow::CollectionDef(); |
144 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
145 | } |
146 | ::tensorflow::CollectionDef::InitAsDefaultInstance(); |
147 | } |
148 | |
149 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
150 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
151 | &scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
152 | &scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
153 | &scc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
154 | &scc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
155 | &scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
156 | |
157 | static void InitDefaultsscc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
158 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
159 | |
160 | { |
161 | void* ptr = &::tensorflow::_CollectionDef_AnyList_default_instance_; |
162 | new (ptr) ::tensorflow::CollectionDef_AnyList(); |
163 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
164 | } |
165 | ::tensorflow::CollectionDef_AnyList::InitAsDefaultInstance(); |
166 | } |
167 | |
168 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
169 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
170 | &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}}; |
171 | |
172 | static void InitDefaultsscc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
173 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
174 | |
175 | { |
176 | void* ptr = &::tensorflow::_CollectionDef_BytesList_default_instance_; |
177 | new (ptr) ::tensorflow::CollectionDef_BytesList(); |
178 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
179 | } |
180 | ::tensorflow::CollectionDef_BytesList::InitAsDefaultInstance(); |
181 | } |
182 | |
183 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
184 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
185 | |
186 | static void InitDefaultsscc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
187 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
188 | |
189 | { |
190 | void* ptr = &::tensorflow::_CollectionDef_FloatList_default_instance_; |
191 | new (ptr) ::tensorflow::CollectionDef_FloatList(); |
192 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
193 | } |
194 | ::tensorflow::CollectionDef_FloatList::InitAsDefaultInstance(); |
195 | } |
196 | |
197 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
198 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
199 | |
200 | static void InitDefaultsscc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
201 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
202 | |
203 | { |
204 | void* ptr = &::tensorflow::_CollectionDef_Int64List_default_instance_; |
205 | new (ptr) ::tensorflow::CollectionDef_Int64List(); |
206 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
207 | } |
208 | ::tensorflow::CollectionDef_Int64List::InitAsDefaultInstance(); |
209 | } |
210 | |
211 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
212 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
213 | |
214 | static void InitDefaultsscc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
215 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
216 | |
217 | { |
218 | void* ptr = &::tensorflow::_CollectionDef_NodeList_default_instance_; |
219 | new (ptr) ::tensorflow::CollectionDef_NodeList(); |
220 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
221 | } |
222 | ::tensorflow::CollectionDef_NodeList::InitAsDefaultInstance(); |
223 | } |
224 | |
225 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
226 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
227 | |
228 | static void InitDefaultsscc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
229 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
230 | |
231 | { |
232 | void* ptr = &::tensorflow::_MetaGraphDef_default_instance_; |
233 | new (ptr) ::tensorflow::MetaGraphDef(); |
234 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
235 | } |
236 | ::tensorflow::MetaGraphDef::InitAsDefaultInstance(); |
237 | } |
238 | |
239 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
240 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsscc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
241 | &scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
242 | &scc_info_GraphDef_tensorflow_2fcore_2fframework_2fgraph_2eproto.base, |
243 | &scc_info_SaverDef_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto.base, |
244 | &scc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
245 | &scc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
246 | &scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
247 | &scc_info_SavedObjectGraph_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.base,}}; |
248 | |
249 | static void InitDefaultsscc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
250 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
251 | |
252 | { |
253 | void* ptr = &::tensorflow::_MetaGraphDef_CollectionDefEntry_DoNotUse_default_instance_; |
254 | new (ptr) ::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse(); |
255 | } |
256 | ::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse::InitAsDefaultInstance(); |
257 | } |
258 | |
259 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
260 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
261 | &scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
262 | |
263 | static void InitDefaultsscc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
264 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
265 | |
266 | { |
267 | void* ptr = &::tensorflow::_MetaGraphDef_MetaInfoDef_default_instance_; |
268 | new (ptr) ::tensorflow::MetaGraphDef_MetaInfoDef(); |
269 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
270 | } |
271 | ::tensorflow::MetaGraphDef_MetaInfoDef::InitAsDefaultInstance(); |
272 | } |
273 | |
274 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
275 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
276 | &scc_info_OpList_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto.base, |
277 | &scc_info_Any_google_2fprotobuf_2fany_2eproto.base, |
278 | &scc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
279 | |
280 | static void InitDefaultsscc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
281 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
282 | |
283 | { |
284 | void* ptr = &::tensorflow::_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_default_instance_; |
285 | new (ptr) ::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse(); |
286 | } |
287 | ::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::InitAsDefaultInstance(); |
288 | } |
289 | |
290 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
291 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
292 | |
293 | static void InitDefaultsscc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
294 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
295 | |
296 | { |
297 | void* ptr = &::tensorflow::_MetaGraphDef_SignatureDefEntry_DoNotUse_default_instance_; |
298 | new (ptr) ::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse(); |
299 | } |
300 | ::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse::InitAsDefaultInstance(); |
301 | } |
302 | |
303 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
304 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
305 | &scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
306 | |
307 | static void InitDefaultsscc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
308 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
309 | |
310 | { |
311 | void* ptr = &::tensorflow::_SignatureDef_default_instance_; |
312 | new (ptr) ::tensorflow::SignatureDef(); |
313 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
314 | } |
315 | ::tensorflow::SignatureDef::InitAsDefaultInstance(); |
316 | } |
317 | |
318 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
319 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
320 | &scc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
321 | &scc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
322 | |
323 | static void InitDefaultsscc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
324 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
325 | |
326 | { |
327 | void* ptr = &::tensorflow::_SignatureDef_InputsEntry_DoNotUse_default_instance_; |
328 | new (ptr) ::tensorflow::SignatureDef_InputsEntry_DoNotUse(); |
329 | } |
330 | ::tensorflow::SignatureDef_InputsEntry_DoNotUse::InitAsDefaultInstance(); |
331 | } |
332 | |
333 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
334 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
335 | &scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
336 | |
337 | static void InitDefaultsscc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
338 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
339 | |
340 | { |
341 | void* ptr = &::tensorflow::_SignatureDef_OutputsEntry_DoNotUse_default_instance_; |
342 | new (ptr) ::tensorflow::SignatureDef_OutputsEntry_DoNotUse(); |
343 | } |
344 | ::tensorflow::SignatureDef_OutputsEntry_DoNotUse::InitAsDefaultInstance(); |
345 | } |
346 | |
347 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
348 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
349 | &scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
350 | |
351 | static void InitDefaultsscc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
352 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
353 | |
354 | { |
355 | void* ptr = &::tensorflow::_TensorInfo_CompositeTensor_default_instance_; |
356 | new (ptr) ::tensorflow::TensorInfo_CompositeTensor(); |
357 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
358 | } |
359 | { |
360 | void* ptr = &::tensorflow::_TensorInfo_default_instance_; |
361 | new (ptr) ::tensorflow::TensorInfo(); |
362 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
363 | } |
364 | ::tensorflow::TensorInfo_CompositeTensor::InitAsDefaultInstance(); |
365 | ::tensorflow::TensorInfo::InitAsDefaultInstance(); |
366 | } |
367 | |
368 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
369 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, { |
370 | &scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
371 | &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base, |
372 | &scc_info_DictValue_tensorflow_2fcore_2fprotobuf_2fstruct_2eproto.base,}}; |
373 | |
374 | static void InitDefaultsscc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { |
375 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
376 | |
377 | { |
378 | void* ptr = &::tensorflow::_TensorInfo_CooSparse_default_instance_; |
379 | new (ptr) ::tensorflow::TensorInfo_CooSparse(); |
380 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
381 | } |
382 | ::tensorflow::TensorInfo_CooSparse::InitAsDefaultInstance(); |
383 | } |
384 | |
385 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = |
386 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto}, {}}; |
387 | |
388 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto[18]; |
389 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = nullptr; |
390 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = nullptr; |
391 | |
392 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
393 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse, _has_bits_), |
394 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse, _internal_metadata_), |
395 | ~0u, // no _extensions_ |
396 | ~0u, // no _oneof_case_ |
397 | ~0u, // no _weak_field_map_ |
398 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse, key_), |
399 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse, value_), |
400 | 0, |
401 | 1, |
402 | ~0u, // no _has_bits_ |
403 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, _internal_metadata_), |
404 | ~0u, // no _extensions_ |
405 | ~0u, // no _oneof_case_ |
406 | ~0u, // no _weak_field_map_ |
407 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, meta_graph_version_), |
408 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, stripped_op_list_), |
409 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, any_info_), |
410 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, tags_), |
411 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, tensorflow_version_), |
412 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, tensorflow_git_version_), |
413 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, stripped_default_attrs_), |
414 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_MetaInfoDef, function_aliases_), |
415 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse, _has_bits_), |
416 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse, _internal_metadata_), |
417 | ~0u, // no _extensions_ |
418 | ~0u, // no _oneof_case_ |
419 | ~0u, // no _weak_field_map_ |
420 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse, key_), |
421 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse, value_), |
422 | 0, |
423 | 1, |
424 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse, _has_bits_), |
425 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse, _internal_metadata_), |
426 | ~0u, // no _extensions_ |
427 | ~0u, // no _oneof_case_ |
428 | ~0u, // no _weak_field_map_ |
429 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse, key_), |
430 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse, value_), |
431 | 0, |
432 | 1, |
433 | ~0u, // no _has_bits_ |
434 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, _internal_metadata_), |
435 | ~0u, // no _extensions_ |
436 | ~0u, // no _oneof_case_ |
437 | ~0u, // no _weak_field_map_ |
438 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, meta_info_def_), |
439 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, graph_def_), |
440 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, saver_def_), |
441 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, collection_def_), |
442 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, signature_def_), |
443 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, asset_file_def_), |
444 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetaGraphDef, object_graph_def_), |
445 | ~0u, // no _has_bits_ |
446 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_NodeList, _internal_metadata_), |
447 | ~0u, // no _extensions_ |
448 | ~0u, // no _oneof_case_ |
449 | ~0u, // no _weak_field_map_ |
450 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_NodeList, value_), |
451 | ~0u, // no _has_bits_ |
452 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_BytesList, _internal_metadata_), |
453 | ~0u, // no _extensions_ |
454 | ~0u, // no _oneof_case_ |
455 | ~0u, // no _weak_field_map_ |
456 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_BytesList, value_), |
457 | ~0u, // no _has_bits_ |
458 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_Int64List, _internal_metadata_), |
459 | ~0u, // no _extensions_ |
460 | ~0u, // no _oneof_case_ |
461 | ~0u, // no _weak_field_map_ |
462 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_Int64List, value_), |
463 | ~0u, // no _has_bits_ |
464 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_FloatList, _internal_metadata_), |
465 | ~0u, // no _extensions_ |
466 | ~0u, // no _oneof_case_ |
467 | ~0u, // no _weak_field_map_ |
468 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_FloatList, value_), |
469 | ~0u, // no _has_bits_ |
470 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_AnyList, _internal_metadata_), |
471 | ~0u, // no _extensions_ |
472 | ~0u, // no _oneof_case_ |
473 | ~0u, // no _weak_field_map_ |
474 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef_AnyList, value_), |
475 | ~0u, // no _has_bits_ |
476 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef, _internal_metadata_), |
477 | ~0u, // no _extensions_ |
478 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef, _oneof_case_[0]), |
479 | ~0u, // no _weak_field_map_ |
480 | offsetof(::tensorflow::CollectionDefDefaultTypeInternal, node_list_), |
481 | offsetof(::tensorflow::CollectionDefDefaultTypeInternal, bytes_list_), |
482 | offsetof(::tensorflow::CollectionDefDefaultTypeInternal, int64_list_), |
483 | offsetof(::tensorflow::CollectionDefDefaultTypeInternal, float_list_), |
484 | offsetof(::tensorflow::CollectionDefDefaultTypeInternal, any_list_), |
485 | PROTOBUF_FIELD_OFFSET(::tensorflow::CollectionDef, kind_), |
486 | ~0u, // no _has_bits_ |
487 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CooSparse, _internal_metadata_), |
488 | ~0u, // no _extensions_ |
489 | ~0u, // no _oneof_case_ |
490 | ~0u, // no _weak_field_map_ |
491 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CooSparse, values_tensor_name_), |
492 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CooSparse, indices_tensor_name_), |
493 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CooSparse, dense_shape_tensor_name_), |
494 | ~0u, // no _has_bits_ |
495 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CompositeTensor, _internal_metadata_), |
496 | ~0u, // no _extensions_ |
497 | ~0u, // no _oneof_case_ |
498 | ~0u, // no _weak_field_map_ |
499 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CompositeTensor, type_spec_), |
500 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo_CompositeTensor, components_), |
501 | ~0u, // no _has_bits_ |
502 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo, _internal_metadata_), |
503 | ~0u, // no _extensions_ |
504 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo, _oneof_case_[0]), |
505 | ~0u, // no _weak_field_map_ |
506 | offsetof(::tensorflow::TensorInfoDefaultTypeInternal, name_), |
507 | offsetof(::tensorflow::TensorInfoDefaultTypeInternal, coo_sparse_), |
508 | offsetof(::tensorflow::TensorInfoDefaultTypeInternal, composite_tensor_), |
509 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo, dtype_), |
510 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo, tensor_shape_), |
511 | PROTOBUF_FIELD_OFFSET(::tensorflow::TensorInfo, encoding_), |
512 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_InputsEntry_DoNotUse, _has_bits_), |
513 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_InputsEntry_DoNotUse, _internal_metadata_), |
514 | ~0u, // no _extensions_ |
515 | ~0u, // no _oneof_case_ |
516 | ~0u, // no _weak_field_map_ |
517 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_InputsEntry_DoNotUse, key_), |
518 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_InputsEntry_DoNotUse, value_), |
519 | 0, |
520 | 1, |
521 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_OutputsEntry_DoNotUse, _has_bits_), |
522 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_OutputsEntry_DoNotUse, _internal_metadata_), |
523 | ~0u, // no _extensions_ |
524 | ~0u, // no _oneof_case_ |
525 | ~0u, // no _weak_field_map_ |
526 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_OutputsEntry_DoNotUse, key_), |
527 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef_OutputsEntry_DoNotUse, value_), |
528 | 0, |
529 | 1, |
530 | ~0u, // no _has_bits_ |
531 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef, _internal_metadata_), |
532 | ~0u, // no _extensions_ |
533 | ~0u, // no _oneof_case_ |
534 | ~0u, // no _weak_field_map_ |
535 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef, inputs_), |
536 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef, outputs_), |
537 | PROTOBUF_FIELD_OFFSET(::tensorflow::SignatureDef, method_name_), |
538 | ~0u, // no _has_bits_ |
539 | PROTOBUF_FIELD_OFFSET(::tensorflow::AssetFileDef, _internal_metadata_), |
540 | ~0u, // no _extensions_ |
541 | ~0u, // no _oneof_case_ |
542 | ~0u, // no _weak_field_map_ |
543 | PROTOBUF_FIELD_OFFSET(::tensorflow::AssetFileDef, tensor_info_), |
544 | PROTOBUF_FIELD_OFFSET(::tensorflow::AssetFileDef, filename_), |
545 | }; |
546 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
547 | { 0, 7, sizeof(::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse)}, |
548 | { 9, -1, sizeof(::tensorflow::MetaGraphDef_MetaInfoDef)}, |
549 | { 22, 29, sizeof(::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse)}, |
550 | { 31, 38, sizeof(::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse)}, |
551 | { 40, -1, sizeof(::tensorflow::MetaGraphDef)}, |
552 | { 52, -1, sizeof(::tensorflow::CollectionDef_NodeList)}, |
553 | { 58, -1, sizeof(::tensorflow::CollectionDef_BytesList)}, |
554 | { 64, -1, sizeof(::tensorflow::CollectionDef_Int64List)}, |
555 | { 70, -1, sizeof(::tensorflow::CollectionDef_FloatList)}, |
556 | { 76, -1, sizeof(::tensorflow::CollectionDef_AnyList)}, |
557 | { 82, -1, sizeof(::tensorflow::CollectionDef)}, |
558 | { 93, -1, sizeof(::tensorflow::TensorInfo_CooSparse)}, |
559 | { 101, -1, sizeof(::tensorflow::TensorInfo_CompositeTensor)}, |
560 | { 108, -1, sizeof(::tensorflow::TensorInfo)}, |
561 | { 119, 126, sizeof(::tensorflow::SignatureDef_InputsEntry_DoNotUse)}, |
562 | { 128, 135, sizeof(::tensorflow::SignatureDef_OutputsEntry_DoNotUse)}, |
563 | { 137, -1, sizeof(::tensorflow::SignatureDef)}, |
564 | { 145, -1, sizeof(::tensorflow::AssetFileDef)}, |
565 | }; |
566 | |
567 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
568 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_default_instance_), |
569 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetaGraphDef_MetaInfoDef_default_instance_), |
570 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetaGraphDef_CollectionDefEntry_DoNotUse_default_instance_), |
571 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetaGraphDef_SignatureDefEntry_DoNotUse_default_instance_), |
572 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetaGraphDef_default_instance_), |
573 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_NodeList_default_instance_), |
574 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_BytesList_default_instance_), |
575 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_Int64List_default_instance_), |
576 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_FloatList_default_instance_), |
577 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_AnyList_default_instance_), |
578 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CollectionDef_default_instance_), |
579 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TensorInfo_CooSparse_default_instance_), |
580 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TensorInfo_CompositeTensor_default_instance_), |
581 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TensorInfo_default_instance_), |
582 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SignatureDef_InputsEntry_DoNotUse_default_instance_), |
583 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SignatureDef_OutputsEntry_DoNotUse_default_instance_), |
584 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SignatureDef_default_instance_), |
585 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_AssetFileDef_default_instance_), |
586 | }; |
587 | |
588 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
589 | "\n)tensorflow/core/protobuf/meta_graph.pr" |
590 | "oto\022\ntensorflow\032\031google/protobuf/any.pro" |
591 | "to\032%tensorflow/core/framework/graph.prot" |
592 | "o\032&tensorflow/core/framework/op_def.prot" |
593 | "o\032,tensorflow/core/framework/tensor_shap" |
594 | "e.proto\032%tensorflow/core/framework/types" |
595 | ".proto\0321tensorflow/core/protobuf/saved_o" |
596 | "bject_graph.proto\032$tensorflow/core/proto" |
597 | "buf/saver.proto\032%tensorflow/core/protobu" |
598 | "f/struct.proto\"\250\007\n\014MetaGraphDef\022;\n\rmeta_" |
599 | "info_def\030\001 \001(\0132$.tensorflow.MetaGraphDef" |
600 | ".MetaInfoDef\022\'\n\tgraph_def\030\002 \001(\0132\024.tensor" |
601 | "flow.GraphDef\022\'\n\tsaver_def\030\003 \001(\0132\024.tenso" |
602 | "rflow.SaverDef\022C\n\016collection_def\030\004 \003(\0132+" |
603 | ".tensorflow.MetaGraphDef.CollectionDefEn" |
604 | "try\022A\n\rsignature_def\030\005 \003(\0132*.tensorflow." |
605 | "MetaGraphDef.SignatureDefEntry\0220\n\016asset_" |
606 | "file_def\030\006 \003(\0132\030.tensorflow.AssetFileDef" |
607 | "\0226\n\020object_graph_def\030\007 \001(\0132\034.tensorflow." |
608 | "SavedObjectGraph\032\366\002\n\013MetaInfoDef\022\032\n\022meta" |
609 | "_graph_version\030\001 \001(\t\022,\n\020stripped_op_list" |
610 | "\030\002 \001(\0132\022.tensorflow.OpList\022&\n\010any_info\030\003" |
611 | " \001(\0132\024.google.protobuf.Any\022\014\n\004tags\030\004 \003(\t" |
612 | "\022\032\n\022tensorflow_version\030\005 \001(\t\022\036\n\026tensorfl" |
613 | "ow_git_version\030\006 \001(\t\022\036\n\026stripped_default" |
614 | "_attrs\030\007 \001(\010\022S\n\020function_aliases\030\010 \003(\01329" |
615 | ".tensorflow.MetaGraphDef.MetaInfoDef.Fun" |
616 | "ctionAliasesEntry\0326\n\024FunctionAliasesEntr" |
617 | "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032O\n\022Col" |
618 | "lectionDefEntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 " |
619 | "\001(\0132\031.tensorflow.CollectionDef:\0028\001\032M\n\021Si" |
620 | "gnatureDefEntry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002 " |
621 | "\001(\0132\030.tensorflow.SignatureDef:\0028\001\"\337\003\n\rCo" |
622 | "llectionDef\0227\n\tnode_list\030\001 \001(\0132\".tensorf" |
623 | "low.CollectionDef.NodeListH\000\0229\n\nbytes_li" |
624 | "st\030\002 \001(\0132#.tensorflow.CollectionDef.Byte" |
625 | "sListH\000\0229\n\nint64_list\030\003 \001(\0132#.tensorflow" |
626 | ".CollectionDef.Int64ListH\000\0229\n\nfloat_list" |
627 | "\030\004 \001(\0132#.tensorflow.CollectionDef.FloatL" |
628 | "istH\000\0225\n\010any_list\030\005 \001(\0132!.tensorflow.Col" |
629 | "lectionDef.AnyListH\000\032\031\n\010NodeList\022\r\n\005valu" |
630 | "e\030\001 \003(\t\032\032\n\tBytesList\022\r\n\005value\030\001 \003(\014\032\036\n\tI" |
631 | "nt64List\022\021\n\005value\030\001 \003(\003B\002\020\001\032\036\n\tFloatList" |
632 | "\022\021\n\005value\030\001 \003(\002B\002\020\001\032.\n\007AnyList\022#\n\005value\030" |
633 | "\001 \003(\0132\024.google.protobuf.AnyB\006\n\004kind\"\321\003\n\n" |
634 | "TensorInfo\022\016\n\004name\030\001 \001(\tH\000\0226\n\ncoo_sparse" |
635 | "\030\004 \001(\0132 .tensorflow.TensorInfo.CooSparse" |
636 | "H\000\022B\n\020composite_tensor\030\005 \001(\0132&.tensorflo" |
637 | "w.TensorInfo.CompositeTensorH\000\022#\n\005dtype\030" |
638 | "\002 \001(\0162\024.tensorflow.DataType\0222\n\014tensor_sh" |
639 | "ape\030\003 \001(\0132\034.tensorflow.TensorShapeProto\032" |
640 | "e\n\tCooSparse\022\032\n\022values_tensor_name\030\001 \001(\t" |
641 | "\022\033\n\023indices_tensor_name\030\002 \001(\t\022\037\n\027dense_s" |
642 | "hape_tensor_name\030\003 \001(\t\032k\n\017CompositeTenso" |
643 | "r\022,\n\ttype_spec\030\001 \001(\0132\031.tensorflow.TypeSp" |
644 | "ecProto\022*\n\ncomponents\030\002 \003(\0132\026.tensorflow" |
645 | ".TensorInfoB\n\n\010encoding\"\240\002\n\014SignatureDef" |
646 | "\0224\n\006inputs\030\001 \003(\0132$.tensorflow.SignatureD" |
647 | "ef.InputsEntry\0226\n\007outputs\030\002 \003(\0132%.tensor" |
648 | "flow.SignatureDef.OutputsEntry\022\023\n\013method" |
649 | "_name\030\003 \001(\t\032E\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022" |
650 | "%\n\005value\030\002 \001(\0132\026.tensorflow.TensorInfo:\002" |
651 | "8\001\032F\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" |
652 | "\030\002 \001(\0132\026.tensorflow.TensorInfo:\0028\001\"M\n\014As" |
653 | "setFileDef\022+\n\013tensor_info\030\001 \001(\0132\026.tensor" |
654 | "flow.TensorInfo\022\020\n\010filename\030\002 \001(\tB\207\001\n\030or" |
655 | "g.tensorflow.frameworkB\017MetaGraphProtosP" |
656 | "\001ZUgithub.com/tensorflow/tensorflow/tens" |
657 | "orflow/go/core/protobuf/for_core_protos_" |
658 | "go_proto\370\001\001b\006proto3" |
659 | ; |
660 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_deps[8] = { |
661 | &::descriptor_table_google_2fprotobuf_2fany_2eproto, |
662 | &::descriptor_table_tensorflow_2fcore_2fframework_2fgraph_2eproto, |
663 | &::descriptor_table_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto, |
664 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto, |
665 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto, |
666 | &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto, |
667 | &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto, |
668 | &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fstruct_2eproto, |
669 | }; |
670 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_sccs[17] = { |
671 | &scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
672 | &scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
673 | &scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
674 | &scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
675 | &scc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
676 | &scc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
677 | &scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
678 | &scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
679 | &scc_info_MetaGraphDef_CollectionDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
680 | &scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
681 | &scc_info_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
682 | &scc_info_MetaGraphDef_SignatureDefEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
683 | &scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
684 | &scc_info_SignatureDef_InputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
685 | &scc_info_SignatureDef_OutputsEntry_DoNotUse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
686 | &scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
687 | &scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base, |
688 | }; |
689 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once; |
690 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_initialized = false; |
691 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = { |
692 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto, "tensorflow/core/protobuf/meta_graph.proto" , 2779, |
693 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_deps, 17, 8, |
694 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto::offsets, |
695 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto, 18, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto, |
696 | }; |
697 | |
698 | // Force running AddDescriptors() at dynamic initialization time. |
699 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto), true); |
700 | namespace tensorflow { |
701 | |
702 | // =================================================================== |
703 | |
704 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse() {} |
705 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
706 | : SuperType(arena) {} |
707 | void MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::MergeFrom(const MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse& other) { |
708 | MergeFromInternal(other); |
709 | } |
710 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::GetMetadata() const { |
711 | return GetMetadataStatic(); |
712 | } |
713 | void MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::MergeFrom( |
714 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
715 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
716 | } |
717 | |
718 | |
719 | // =================================================================== |
720 | |
721 | void MetaGraphDef_MetaInfoDef::InitAsDefaultInstance() { |
722 | ::tensorflow::_MetaGraphDef_MetaInfoDef_default_instance_._instance.get_mutable()->stripped_op_list_ = const_cast< ::tensorflow::OpList*>( |
723 | ::tensorflow::OpList::internal_default_instance()); |
724 | ::tensorflow::_MetaGraphDef_MetaInfoDef_default_instance_._instance.get_mutable()->any_info_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>( |
725 | PROTOBUF_NAMESPACE_ID::Any::internal_default_instance()); |
726 | } |
727 | class MetaGraphDef_MetaInfoDef::_Internal { |
728 | public: |
729 | static const ::tensorflow::OpList& stripped_op_list(const MetaGraphDef_MetaInfoDef* msg); |
730 | static const PROTOBUF_NAMESPACE_ID::Any& any_info(const MetaGraphDef_MetaInfoDef* msg); |
731 | }; |
732 | |
733 | const ::tensorflow::OpList& |
734 | MetaGraphDef_MetaInfoDef::_Internal::stripped_op_list(const MetaGraphDef_MetaInfoDef* msg) { |
735 | return *msg->stripped_op_list_; |
736 | } |
737 | const PROTOBUF_NAMESPACE_ID::Any& |
738 | MetaGraphDef_MetaInfoDef::_Internal::any_info(const MetaGraphDef_MetaInfoDef* msg) { |
739 | return *msg->any_info_; |
740 | } |
741 | void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_stripped_op_list( |
742 | ::tensorflow::OpList* stripped_op_list) { |
743 | if (GetArenaNoVirtual() == nullptr) { |
744 | delete stripped_op_list_; |
745 | } |
746 | stripped_op_list_ = stripped_op_list; |
747 | if (stripped_op_list) { |
748 | |
749 | } else { |
750 | |
751 | } |
752 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) |
753 | } |
754 | void MetaGraphDef_MetaInfoDef::clear_stripped_op_list() { |
755 | if (GetArenaNoVirtual() == nullptr && stripped_op_list_ != nullptr) { |
756 | delete stripped_op_list_; |
757 | } |
758 | stripped_op_list_ = nullptr; |
759 | } |
760 | void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_any_info( |
761 | PROTOBUF_NAMESPACE_ID::Any* any_info) { |
762 | if (GetArenaNoVirtual() == nullptr) { |
763 | delete any_info_; |
764 | } |
765 | any_info_ = any_info; |
766 | if (any_info) { |
767 | |
768 | } else { |
769 | |
770 | } |
771 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.any_info) |
772 | } |
773 | void MetaGraphDef_MetaInfoDef::clear_any_info() { |
774 | if (GetArenaNoVirtual() == nullptr && any_info_ != nullptr) { |
775 | delete any_info_; |
776 | } |
777 | any_info_ = nullptr; |
778 | } |
779 | MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef() |
780 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
781 | SharedCtor(); |
782 | // @@protoc_insertion_point(constructor:tensorflow.MetaGraphDef.MetaInfoDef) |
783 | } |
784 | MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
785 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
786 | _internal_metadata_(arena), |
787 | tags_(arena), |
788 | function_aliases_(arena) { |
789 | SharedCtor(); |
790 | RegisterArenaDtor(arena); |
791 | // @@protoc_insertion_point(arena_constructor:tensorflow.MetaGraphDef.MetaInfoDef) |
792 | } |
793 | MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef(const MetaGraphDef_MetaInfoDef& from) |
794 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
795 | _internal_metadata_(nullptr), |
796 | tags_(from.tags_) { |
797 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
798 | function_aliases_.MergeFrom(from.function_aliases_); |
799 | meta_graph_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
800 | if (!from.meta_graph_version().empty()) { |
801 | meta_graph_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.meta_graph_version(), |
802 | GetArenaNoVirtual()); |
803 | } |
804 | tensorflow_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
805 | if (!from.tensorflow_version().empty()) { |
806 | tensorflow_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tensorflow_version(), |
807 | GetArenaNoVirtual()); |
808 | } |
809 | tensorflow_git_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
810 | if (!from.tensorflow_git_version().empty()) { |
811 | tensorflow_git_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tensorflow_git_version(), |
812 | GetArenaNoVirtual()); |
813 | } |
814 | if (from.has_stripped_op_list()) { |
815 | stripped_op_list_ = new ::tensorflow::OpList(*from.stripped_op_list_); |
816 | } else { |
817 | stripped_op_list_ = nullptr; |
818 | } |
819 | if (from.has_any_info()) { |
820 | any_info_ = new PROTOBUF_NAMESPACE_ID::Any(*from.any_info_); |
821 | } else { |
822 | any_info_ = nullptr; |
823 | } |
824 | stripped_default_attrs_ = from.stripped_default_attrs_; |
825 | // @@protoc_insertion_point(copy_constructor:tensorflow.MetaGraphDef.MetaInfoDef) |
826 | } |
827 | |
828 | void MetaGraphDef_MetaInfoDef::SharedCtor() { |
829 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
830 | meta_graph_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
831 | tensorflow_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
832 | tensorflow_git_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
833 | ::memset(&stripped_op_list_, 0, static_cast<size_t>( |
834 | reinterpret_cast<char*>(&stripped_default_attrs_) - |
835 | reinterpret_cast<char*>(&stripped_op_list_)) + sizeof(stripped_default_attrs_)); |
836 | } |
837 | |
838 | MetaGraphDef_MetaInfoDef::~MetaGraphDef_MetaInfoDef() { |
839 | // @@protoc_insertion_point(destructor:tensorflow.MetaGraphDef.MetaInfoDef) |
840 | SharedDtor(); |
841 | } |
842 | |
843 | void MetaGraphDef_MetaInfoDef::SharedDtor() { |
844 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
845 | meta_graph_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
846 | tensorflow_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
847 | tensorflow_git_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
848 | if (this != internal_default_instance()) delete stripped_op_list_; |
849 | if (this != internal_default_instance()) delete any_info_; |
850 | } |
851 | |
852 | void MetaGraphDef_MetaInfoDef::ArenaDtor(void* object) { |
853 | MetaGraphDef_MetaInfoDef* _this = reinterpret_cast< MetaGraphDef_MetaInfoDef* >(object); |
854 | (void)_this; |
855 | } |
856 | void MetaGraphDef_MetaInfoDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
857 | } |
858 | void MetaGraphDef_MetaInfoDef::SetCachedSize(int size) const { |
859 | _cached_size_.Set(size); |
860 | } |
861 | const MetaGraphDef_MetaInfoDef& MetaGraphDef_MetaInfoDef::default_instance() { |
862 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetaGraphDef_MetaInfoDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
863 | return *internal_default_instance(); |
864 | } |
865 | |
866 | |
867 | void MetaGraphDef_MetaInfoDef::Clear() { |
868 | // @@protoc_insertion_point(message_clear_start:tensorflow.MetaGraphDef.MetaInfoDef) |
869 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
870 | // Prevent compiler warnings about cached_has_bits being unused |
871 | (void) cached_has_bits; |
872 | |
873 | tags_.Clear(); |
874 | function_aliases_.Clear(); |
875 | meta_graph_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
876 | tensorflow_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
877 | tensorflow_git_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
878 | if (GetArenaNoVirtual() == nullptr && stripped_op_list_ != nullptr) { |
879 | delete stripped_op_list_; |
880 | } |
881 | stripped_op_list_ = nullptr; |
882 | if (GetArenaNoVirtual() == nullptr && any_info_ != nullptr) { |
883 | delete any_info_; |
884 | } |
885 | any_info_ = nullptr; |
886 | stripped_default_attrs_ = false; |
887 | _internal_metadata_.Clear(); |
888 | } |
889 | |
890 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
891 | const char* MetaGraphDef_MetaInfoDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
892 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
893 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
894 | while (!ctx->Done(&ptr)) { |
895 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
896 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
897 | CHK_(ptr); |
898 | switch (tag >> 3) { |
899 | // string meta_graph_version = 1; |
900 | case 1: |
901 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
902 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_meta_graph_version(), ptr, ctx, "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version" ); |
903 | CHK_(ptr); |
904 | } else goto handle_unusual; |
905 | continue; |
906 | // .tensorflow.OpList stripped_op_list = 2; |
907 | case 2: |
908 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
909 | ptr = ctx->ParseMessage(mutable_stripped_op_list(), ptr); |
910 | CHK_(ptr); |
911 | } else goto handle_unusual; |
912 | continue; |
913 | // .google.protobuf.Any any_info = 3; |
914 | case 3: |
915 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
916 | ptr = ctx->ParseMessage(mutable_any_info(), ptr); |
917 | CHK_(ptr); |
918 | } else goto handle_unusual; |
919 | continue; |
920 | // repeated string tags = 4; |
921 | case 4: |
922 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
923 | ptr -= 1; |
924 | do { |
925 | ptr += 1; |
926 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_tags(), ptr, ctx, "tensorflow.MetaGraphDef.MetaInfoDef.tags" ); |
927 | CHK_(ptr); |
928 | if (!ctx->DataAvailable(ptr)) break; |
929 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
930 | } else goto handle_unusual; |
931 | continue; |
932 | // string tensorflow_version = 5; |
933 | case 5: |
934 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
935 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tensorflow_version(), ptr, ctx, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version" ); |
936 | CHK_(ptr); |
937 | } else goto handle_unusual; |
938 | continue; |
939 | // string tensorflow_git_version = 6; |
940 | case 6: |
941 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
942 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tensorflow_git_version(), ptr, ctx, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version" ); |
943 | CHK_(ptr); |
944 | } else goto handle_unusual; |
945 | continue; |
946 | // bool stripped_default_attrs = 7; |
947 | case 7: |
948 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
949 | stripped_default_attrs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
950 | CHK_(ptr); |
951 | } else goto handle_unusual; |
952 | continue; |
953 | // map<string, string> function_aliases = 8; |
954 | case 8: |
955 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
956 | ptr -= 1; |
957 | do { |
958 | ptr += 1; |
959 | ptr = ctx->ParseMessage(&function_aliases_, ptr); |
960 | CHK_(ptr); |
961 | if (!ctx->DataAvailable(ptr)) break; |
962 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 66); |
963 | } else goto handle_unusual; |
964 | continue; |
965 | default: { |
966 | handle_unusual: |
967 | if ((tag & 7) == 4 || tag == 0) { |
968 | ctx->SetLastTag(tag); |
969 | goto success; |
970 | } |
971 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
972 | CHK_(ptr != nullptr); |
973 | continue; |
974 | } |
975 | } // switch |
976 | } // while |
977 | success: |
978 | return ptr; |
979 | failure: |
980 | ptr = nullptr; |
981 | goto success; |
982 | #undef CHK_ |
983 | } |
984 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
985 | bool MetaGraphDef_MetaInfoDef::MergePartialFromCodedStream( |
986 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
987 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
988 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
989 | // @@protoc_insertion_point(parse_start:tensorflow.MetaGraphDef.MetaInfoDef) |
990 | for (;;) { |
991 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
992 | tag = p.first; |
993 | if (!p.second) goto handle_unusual; |
994 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
995 | // string meta_graph_version = 1; |
996 | case 1: { |
997 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
998 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
999 | input, this->mutable_meta_graph_version())); |
1000 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1001 | this->meta_graph_version().data(), static_cast<int>(this->meta_graph_version().length()), |
1002 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1003 | "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version" )); |
1004 | } else { |
1005 | goto handle_unusual; |
1006 | } |
1007 | break; |
1008 | } |
1009 | |
1010 | // .tensorflow.OpList stripped_op_list = 2; |
1011 | case 2: { |
1012 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1013 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1014 | input, mutable_stripped_op_list())); |
1015 | } else { |
1016 | goto handle_unusual; |
1017 | } |
1018 | break; |
1019 | } |
1020 | |
1021 | // .google.protobuf.Any any_info = 3; |
1022 | case 3: { |
1023 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
1024 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1025 | input, mutable_any_info())); |
1026 | } else { |
1027 | goto handle_unusual; |
1028 | } |
1029 | break; |
1030 | } |
1031 | |
1032 | // repeated string tags = 4; |
1033 | case 4: { |
1034 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
1035 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1036 | input, this->add_tags())); |
1037 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1038 | this->tags(this->tags_size() - 1).data(), |
1039 | static_cast<int>(this->tags(this->tags_size() - 1).length()), |
1040 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1041 | "tensorflow.MetaGraphDef.MetaInfoDef.tags" )); |
1042 | } else { |
1043 | goto handle_unusual; |
1044 | } |
1045 | break; |
1046 | } |
1047 | |
1048 | // string tensorflow_version = 5; |
1049 | case 5: { |
1050 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
1051 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1052 | input, this->mutable_tensorflow_version())); |
1053 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1054 | this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()), |
1055 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1056 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version" )); |
1057 | } else { |
1058 | goto handle_unusual; |
1059 | } |
1060 | break; |
1061 | } |
1062 | |
1063 | // string tensorflow_git_version = 6; |
1064 | case 6: { |
1065 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
1066 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1067 | input, this->mutable_tensorflow_git_version())); |
1068 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1069 | this->tensorflow_git_version().data(), static_cast<int>(this->tensorflow_git_version().length()), |
1070 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1071 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version" )); |
1072 | } else { |
1073 | goto handle_unusual; |
1074 | } |
1075 | break; |
1076 | } |
1077 | |
1078 | // bool stripped_default_attrs = 7; |
1079 | case 7: { |
1080 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { |
1081 | |
1082 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1083 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
1084 | input, &stripped_default_attrs_))); |
1085 | } else { |
1086 | goto handle_unusual; |
1087 | } |
1088 | break; |
1089 | } |
1090 | |
1091 | // map<string, string> function_aliases = 8; |
1092 | case 8: { |
1093 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { |
1094 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1095 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse, |
1096 | std::string, std::string, |
1097 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
1098 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
1099 | 0 >, |
1100 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string > > parser(&function_aliases_); |
1101 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
1102 | input, &parser)); |
1103 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1104 | parser.key().data(), static_cast<int>(parser.key().length()), |
1105 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1106 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.key" )); |
1107 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1108 | parser.value().data(), static_cast<int>(parser.value().length()), |
1109 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1110 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.value" )); |
1111 | } else { |
1112 | goto handle_unusual; |
1113 | } |
1114 | break; |
1115 | } |
1116 | |
1117 | default: { |
1118 | handle_unusual: |
1119 | if (tag == 0) { |
1120 | goto success; |
1121 | } |
1122 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1123 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1124 | break; |
1125 | } |
1126 | } |
1127 | } |
1128 | success: |
1129 | // @@protoc_insertion_point(parse_success:tensorflow.MetaGraphDef.MetaInfoDef) |
1130 | return true; |
1131 | failure: |
1132 | // @@protoc_insertion_point(parse_failure:tensorflow.MetaGraphDef.MetaInfoDef) |
1133 | return false; |
1134 | #undef DO_ |
1135 | } |
1136 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1137 | |
1138 | void MetaGraphDef_MetaInfoDef::SerializeWithCachedSizes( |
1139 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1140 | // @@protoc_insertion_point(serialize_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1141 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1142 | (void) cached_has_bits; |
1143 | |
1144 | // string meta_graph_version = 1; |
1145 | if (this->meta_graph_version().size() > 0) { |
1146 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1147 | this->meta_graph_version().data(), static_cast<int>(this->meta_graph_version().length()), |
1148 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1149 | "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version" ); |
1150 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1151 | 1, this->meta_graph_version(), output); |
1152 | } |
1153 | |
1154 | // .tensorflow.OpList stripped_op_list = 2; |
1155 | if (this->has_stripped_op_list()) { |
1156 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1157 | 2, _Internal::stripped_op_list(this), output); |
1158 | } |
1159 | |
1160 | // .google.protobuf.Any any_info = 3; |
1161 | if (this->has_any_info()) { |
1162 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1163 | 3, _Internal::any_info(this), output); |
1164 | } |
1165 | |
1166 | // repeated string tags = 4; |
1167 | for (int i = 0, n = this->tags_size(); i < n; i++) { |
1168 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1169 | this->tags(i).data(), static_cast<int>(this->tags(i).length()), |
1170 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1171 | "tensorflow.MetaGraphDef.MetaInfoDef.tags" ); |
1172 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
1173 | 4, this->tags(i), output); |
1174 | } |
1175 | |
1176 | // string tensorflow_version = 5; |
1177 | if (this->tensorflow_version().size() > 0) { |
1178 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1179 | this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()), |
1180 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1181 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version" ); |
1182 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1183 | 5, this->tensorflow_version(), output); |
1184 | } |
1185 | |
1186 | // string tensorflow_git_version = 6; |
1187 | if (this->tensorflow_git_version().size() > 0) { |
1188 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1189 | this->tensorflow_git_version().data(), static_cast<int>(this->tensorflow_git_version().length()), |
1190 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1191 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version" ); |
1192 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1193 | 6, this->tensorflow_git_version(), output); |
1194 | } |
1195 | |
1196 | // bool stripped_default_attrs = 7; |
1197 | if (this->stripped_default_attrs() != 0) { |
1198 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->stripped_default_attrs(), output); |
1199 | } |
1200 | |
1201 | // map<string, string> function_aliases = 8; |
1202 | if (!this->function_aliases().empty()) { |
1203 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
1204 | ConstPtr; |
1205 | typedef ConstPtr SortItem; |
1206 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
1207 | struct Utf8Check { |
1208 | static void Check(ConstPtr p) { |
1209 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1210 | p->first.data(), static_cast<int>(p->first.length()), |
1211 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1212 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.key" ); |
1213 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1214 | p->second.data(), static_cast<int>(p->second.length()), |
1215 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1216 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.value" ); |
1217 | } |
1218 | }; |
1219 | |
1220 | if (output->IsSerializationDeterministic() && |
1221 | this->function_aliases().size() > 1) { |
1222 | ::std::unique_ptr<SortItem[]> items( |
1223 | new SortItem[this->function_aliases().size()]); |
1224 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
1225 | size_type n = 0; |
1226 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
1227 | it = this->function_aliases().begin(); |
1228 | it != this->function_aliases().end(); ++it, ++n) { |
1229 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
1230 | } |
1231 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
1232 | for (size_type i = 0; i < n; i++) { |
1233 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Funcs::SerializeToCodedStream(8, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
1234 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
1235 | } |
1236 | } else { |
1237 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
1238 | it = this->function_aliases().begin(); |
1239 | it != this->function_aliases().end(); ++it) { |
1240 | MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Funcs::SerializeToCodedStream(8, it->first, it->second, output); |
1241 | Utf8Check::Check(&(*it)); |
1242 | } |
1243 | } |
1244 | } |
1245 | |
1246 | if (_internal_metadata_.have_unknown_fields()) { |
1247 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1248 | _internal_metadata_.unknown_fields(), output); |
1249 | } |
1250 | // @@protoc_insertion_point(serialize_end:tensorflow.MetaGraphDef.MetaInfoDef) |
1251 | } |
1252 | |
1253 | ::PROTOBUF_NAMESPACE_ID::uint8* MetaGraphDef_MetaInfoDef::InternalSerializeWithCachedSizesToArray( |
1254 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1255 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1256 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1257 | (void) cached_has_bits; |
1258 | |
1259 | // string meta_graph_version = 1; |
1260 | if (this->meta_graph_version().size() > 0) { |
1261 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1262 | this->meta_graph_version().data(), static_cast<int>(this->meta_graph_version().length()), |
1263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1264 | "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version" ); |
1265 | target = |
1266 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1267 | 1, this->meta_graph_version(), target); |
1268 | } |
1269 | |
1270 | // .tensorflow.OpList stripped_op_list = 2; |
1271 | if (this->has_stripped_op_list()) { |
1272 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1273 | InternalWriteMessageToArray( |
1274 | 2, _Internal::stripped_op_list(this), target); |
1275 | } |
1276 | |
1277 | // .google.protobuf.Any any_info = 3; |
1278 | if (this->has_any_info()) { |
1279 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1280 | InternalWriteMessageToArray( |
1281 | 3, _Internal::any_info(this), target); |
1282 | } |
1283 | |
1284 | // repeated string tags = 4; |
1285 | for (int i = 0, n = this->tags_size(); i < n; i++) { |
1286 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1287 | this->tags(i).data(), static_cast<int>(this->tags(i).length()), |
1288 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1289 | "tensorflow.MetaGraphDef.MetaInfoDef.tags" ); |
1290 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1291 | WriteStringToArray(4, this->tags(i), target); |
1292 | } |
1293 | |
1294 | // string tensorflow_version = 5; |
1295 | if (this->tensorflow_version().size() > 0) { |
1296 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1297 | this->tensorflow_version().data(), static_cast<int>(this->tensorflow_version().length()), |
1298 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1299 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version" ); |
1300 | target = |
1301 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1302 | 5, this->tensorflow_version(), target); |
1303 | } |
1304 | |
1305 | // string tensorflow_git_version = 6; |
1306 | if (this->tensorflow_git_version().size() > 0) { |
1307 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1308 | this->tensorflow_git_version().data(), static_cast<int>(this->tensorflow_git_version().length()), |
1309 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1310 | "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version" ); |
1311 | target = |
1312 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1313 | 6, this->tensorflow_git_version(), target); |
1314 | } |
1315 | |
1316 | // bool stripped_default_attrs = 7; |
1317 | if (this->stripped_default_attrs() != 0) { |
1318 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->stripped_default_attrs(), target); |
1319 | } |
1320 | |
1321 | // map<string, string> function_aliases = 8; |
1322 | if (!this->function_aliases().empty()) { |
1323 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
1324 | ConstPtr; |
1325 | typedef ConstPtr SortItem; |
1326 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
1327 | struct Utf8Check { |
1328 | static void Check(ConstPtr p) { |
1329 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1330 | p->first.data(), static_cast<int>(p->first.length()), |
1331 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1332 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.key" ); |
1333 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1334 | p->second.data(), static_cast<int>(p->second.length()), |
1335 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1336 | "tensorflow.MetaGraphDef.MetaInfoDef.FunctionAliasesEntry.value" ); |
1337 | } |
1338 | }; |
1339 | |
1340 | if (false && |
1341 | this->function_aliases().size() > 1) { |
1342 | ::std::unique_ptr<SortItem[]> items( |
1343 | new SortItem[this->function_aliases().size()]); |
1344 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
1345 | size_type n = 0; |
1346 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
1347 | it = this->function_aliases().begin(); |
1348 | it != this->function_aliases().end(); ++it, ++n) { |
1349 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
1350 | } |
1351 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
1352 | for (size_type i = 0; i < n; i++) { |
1353 | target = MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Funcs::SerializeToArray(8, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
1354 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
1355 | } |
1356 | } else { |
1357 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
1358 | it = this->function_aliases().begin(); |
1359 | it != this->function_aliases().end(); ++it) { |
1360 | target = MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Funcs::SerializeToArray(8, it->first, it->second, target); |
1361 | Utf8Check::Check(&(*it)); |
1362 | } |
1363 | } |
1364 | } |
1365 | |
1366 | if (_internal_metadata_.have_unknown_fields()) { |
1367 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1368 | _internal_metadata_.unknown_fields(), target); |
1369 | } |
1370 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MetaGraphDef.MetaInfoDef) |
1371 | return target; |
1372 | } |
1373 | |
1374 | size_t MetaGraphDef_MetaInfoDef::ByteSizeLong() const { |
1375 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1376 | size_t total_size = 0; |
1377 | |
1378 | if (_internal_metadata_.have_unknown_fields()) { |
1379 | total_size += |
1380 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1381 | _internal_metadata_.unknown_fields()); |
1382 | } |
1383 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1384 | // Prevent compiler warnings about cached_has_bits being unused |
1385 | (void) cached_has_bits; |
1386 | |
1387 | // repeated string tags = 4; |
1388 | total_size += 1 * |
1389 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->tags_size()); |
1390 | for (int i = 0, n = this->tags_size(); i < n; i++) { |
1391 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1392 | this->tags(i)); |
1393 | } |
1394 | |
1395 | // map<string, string> function_aliases = 8; |
1396 | total_size += 1 * |
1397 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->function_aliases_size()); |
1398 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
1399 | it = this->function_aliases().begin(); |
1400 | it != this->function_aliases().end(); ++it) { |
1401 | total_size += MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
1402 | } |
1403 | |
1404 | // string meta_graph_version = 1; |
1405 | if (this->meta_graph_version().size() > 0) { |
1406 | total_size += 1 + |
1407 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1408 | this->meta_graph_version()); |
1409 | } |
1410 | |
1411 | // string tensorflow_version = 5; |
1412 | if (this->tensorflow_version().size() > 0) { |
1413 | total_size += 1 + |
1414 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1415 | this->tensorflow_version()); |
1416 | } |
1417 | |
1418 | // string tensorflow_git_version = 6; |
1419 | if (this->tensorflow_git_version().size() > 0) { |
1420 | total_size += 1 + |
1421 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1422 | this->tensorflow_git_version()); |
1423 | } |
1424 | |
1425 | // .tensorflow.OpList stripped_op_list = 2; |
1426 | if (this->has_stripped_op_list()) { |
1427 | total_size += 1 + |
1428 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1429 | *stripped_op_list_); |
1430 | } |
1431 | |
1432 | // .google.protobuf.Any any_info = 3; |
1433 | if (this->has_any_info()) { |
1434 | total_size += 1 + |
1435 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1436 | *any_info_); |
1437 | } |
1438 | |
1439 | // bool stripped_default_attrs = 7; |
1440 | if (this->stripped_default_attrs() != 0) { |
1441 | total_size += 1 + 1; |
1442 | } |
1443 | |
1444 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1445 | SetCachedSize(cached_size); |
1446 | return total_size; |
1447 | } |
1448 | |
1449 | void MetaGraphDef_MetaInfoDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1450 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1451 | GOOGLE_DCHECK_NE(&from, this); |
1452 | const MetaGraphDef_MetaInfoDef* source = |
1453 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetaGraphDef_MetaInfoDef>( |
1454 | &from); |
1455 | if (source == nullptr) { |
1456 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MetaGraphDef.MetaInfoDef) |
1457 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1458 | } else { |
1459 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MetaGraphDef.MetaInfoDef) |
1460 | MergeFrom(*source); |
1461 | } |
1462 | } |
1463 | |
1464 | void MetaGraphDef_MetaInfoDef::MergeFrom(const MetaGraphDef_MetaInfoDef& from) { |
1465 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1466 | GOOGLE_DCHECK_NE(&from, this); |
1467 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1468 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1469 | (void) cached_has_bits; |
1470 | |
1471 | tags_.MergeFrom(from.tags_); |
1472 | function_aliases_.MergeFrom(from.function_aliases_); |
1473 | if (from.meta_graph_version().size() > 0) { |
1474 | set_meta_graph_version(from.meta_graph_version()); |
1475 | } |
1476 | if (from.tensorflow_version().size() > 0) { |
1477 | set_tensorflow_version(from.tensorflow_version()); |
1478 | } |
1479 | if (from.tensorflow_git_version().size() > 0) { |
1480 | set_tensorflow_git_version(from.tensorflow_git_version()); |
1481 | } |
1482 | if (from.has_stripped_op_list()) { |
1483 | mutable_stripped_op_list()->::tensorflow::OpList::MergeFrom(from.stripped_op_list()); |
1484 | } |
1485 | if (from.has_any_info()) { |
1486 | mutable_any_info()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.any_info()); |
1487 | } |
1488 | if (from.stripped_default_attrs() != 0) { |
1489 | set_stripped_default_attrs(from.stripped_default_attrs()); |
1490 | } |
1491 | } |
1492 | |
1493 | void MetaGraphDef_MetaInfoDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1494 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1495 | if (&from == this) return; |
1496 | Clear(); |
1497 | MergeFrom(from); |
1498 | } |
1499 | |
1500 | void MetaGraphDef_MetaInfoDef::CopyFrom(const MetaGraphDef_MetaInfoDef& from) { |
1501 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MetaGraphDef.MetaInfoDef) |
1502 | if (&from == this) return; |
1503 | Clear(); |
1504 | MergeFrom(from); |
1505 | } |
1506 | |
1507 | bool MetaGraphDef_MetaInfoDef::IsInitialized() const { |
1508 | return true; |
1509 | } |
1510 | |
1511 | void MetaGraphDef_MetaInfoDef::InternalSwap(MetaGraphDef_MetaInfoDef* other) { |
1512 | using std::swap; |
1513 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1514 | tags_.InternalSwap(CastToBase(&other->tags_)); |
1515 | function_aliases_.Swap(&other->function_aliases_); |
1516 | meta_graph_version_.Swap(&other->meta_graph_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1517 | GetArenaNoVirtual()); |
1518 | tensorflow_version_.Swap(&other->tensorflow_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1519 | GetArenaNoVirtual()); |
1520 | tensorflow_git_version_.Swap(&other->tensorflow_git_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1521 | GetArenaNoVirtual()); |
1522 | swap(stripped_op_list_, other->stripped_op_list_); |
1523 | swap(any_info_, other->any_info_); |
1524 | swap(stripped_default_attrs_, other->stripped_default_attrs_); |
1525 | } |
1526 | |
1527 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaGraphDef_MetaInfoDef::GetMetadata() const { |
1528 | return GetMetadataStatic(); |
1529 | } |
1530 | |
1531 | |
1532 | // =================================================================== |
1533 | |
1534 | MetaGraphDef_CollectionDefEntry_DoNotUse::MetaGraphDef_CollectionDefEntry_DoNotUse() {} |
1535 | MetaGraphDef_CollectionDefEntry_DoNotUse::MetaGraphDef_CollectionDefEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1536 | : SuperType(arena) {} |
1537 | void MetaGraphDef_CollectionDefEntry_DoNotUse::MergeFrom(const MetaGraphDef_CollectionDefEntry_DoNotUse& other) { |
1538 | MergeFromInternal(other); |
1539 | } |
1540 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaGraphDef_CollectionDefEntry_DoNotUse::GetMetadata() const { |
1541 | return GetMetadataStatic(); |
1542 | } |
1543 | void MetaGraphDef_CollectionDefEntry_DoNotUse::MergeFrom( |
1544 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
1545 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
1546 | } |
1547 | |
1548 | |
1549 | // =================================================================== |
1550 | |
1551 | MetaGraphDef_SignatureDefEntry_DoNotUse::MetaGraphDef_SignatureDefEntry_DoNotUse() {} |
1552 | MetaGraphDef_SignatureDefEntry_DoNotUse::MetaGraphDef_SignatureDefEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1553 | : SuperType(arena) {} |
1554 | void MetaGraphDef_SignatureDefEntry_DoNotUse::MergeFrom(const MetaGraphDef_SignatureDefEntry_DoNotUse& other) { |
1555 | MergeFromInternal(other); |
1556 | } |
1557 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaGraphDef_SignatureDefEntry_DoNotUse::GetMetadata() const { |
1558 | return GetMetadataStatic(); |
1559 | } |
1560 | void MetaGraphDef_SignatureDefEntry_DoNotUse::MergeFrom( |
1561 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
1562 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
1563 | } |
1564 | |
1565 | |
1566 | // =================================================================== |
1567 | |
1568 | void MetaGraphDef::InitAsDefaultInstance() { |
1569 | ::tensorflow::_MetaGraphDef_default_instance_._instance.get_mutable()->meta_info_def_ = const_cast< ::tensorflow::MetaGraphDef_MetaInfoDef*>( |
1570 | ::tensorflow::MetaGraphDef_MetaInfoDef::internal_default_instance()); |
1571 | ::tensorflow::_MetaGraphDef_default_instance_._instance.get_mutable()->graph_def_ = const_cast< ::tensorflow::GraphDef*>( |
1572 | ::tensorflow::GraphDef::internal_default_instance()); |
1573 | ::tensorflow::_MetaGraphDef_default_instance_._instance.get_mutable()->saver_def_ = const_cast< ::tensorflow::SaverDef*>( |
1574 | ::tensorflow::SaverDef::internal_default_instance()); |
1575 | ::tensorflow::_MetaGraphDef_default_instance_._instance.get_mutable()->object_graph_def_ = const_cast< ::tensorflow::SavedObjectGraph*>( |
1576 | ::tensorflow::SavedObjectGraph::internal_default_instance()); |
1577 | } |
1578 | class MetaGraphDef::_Internal { |
1579 | public: |
1580 | static const ::tensorflow::MetaGraphDef_MetaInfoDef& meta_info_def(const MetaGraphDef* msg); |
1581 | static const ::tensorflow::GraphDef& graph_def(const MetaGraphDef* msg); |
1582 | static const ::tensorflow::SaverDef& saver_def(const MetaGraphDef* msg); |
1583 | static const ::tensorflow::SavedObjectGraph& object_graph_def(const MetaGraphDef* msg); |
1584 | }; |
1585 | |
1586 | const ::tensorflow::MetaGraphDef_MetaInfoDef& |
1587 | MetaGraphDef::_Internal::meta_info_def(const MetaGraphDef* msg) { |
1588 | return *msg->meta_info_def_; |
1589 | } |
1590 | const ::tensorflow::GraphDef& |
1591 | MetaGraphDef::_Internal::graph_def(const MetaGraphDef* msg) { |
1592 | return *msg->graph_def_; |
1593 | } |
1594 | const ::tensorflow::SaverDef& |
1595 | MetaGraphDef::_Internal::saver_def(const MetaGraphDef* msg) { |
1596 | return *msg->saver_def_; |
1597 | } |
1598 | const ::tensorflow::SavedObjectGraph& |
1599 | MetaGraphDef::_Internal::object_graph_def(const MetaGraphDef* msg) { |
1600 | return *msg->object_graph_def_; |
1601 | } |
1602 | void MetaGraphDef::unsafe_arena_set_allocated_meta_info_def( |
1603 | ::tensorflow::MetaGraphDef_MetaInfoDef* meta_info_def) { |
1604 | if (GetArenaNoVirtual() == nullptr) { |
1605 | delete meta_info_def_; |
1606 | } |
1607 | meta_info_def_ = meta_info_def; |
1608 | if (meta_info_def) { |
1609 | |
1610 | } else { |
1611 | |
1612 | } |
1613 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.meta_info_def) |
1614 | } |
1615 | void MetaGraphDef::unsafe_arena_set_allocated_graph_def( |
1616 | ::tensorflow::GraphDef* graph_def) { |
1617 | if (GetArenaNoVirtual() == nullptr) { |
1618 | delete graph_def_; |
1619 | } |
1620 | graph_def_ = graph_def; |
1621 | if (graph_def) { |
1622 | |
1623 | } else { |
1624 | |
1625 | } |
1626 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.graph_def) |
1627 | } |
1628 | void MetaGraphDef::clear_graph_def() { |
1629 | if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) { |
1630 | delete graph_def_; |
1631 | } |
1632 | graph_def_ = nullptr; |
1633 | } |
1634 | void MetaGraphDef::unsafe_arena_set_allocated_saver_def( |
1635 | ::tensorflow::SaverDef* saver_def) { |
1636 | if (GetArenaNoVirtual() == nullptr) { |
1637 | delete saver_def_; |
1638 | } |
1639 | saver_def_ = saver_def; |
1640 | if (saver_def) { |
1641 | |
1642 | } else { |
1643 | |
1644 | } |
1645 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.saver_def) |
1646 | } |
1647 | void MetaGraphDef::clear_saver_def() { |
1648 | if (GetArenaNoVirtual() == nullptr && saver_def_ != nullptr) { |
1649 | delete saver_def_; |
1650 | } |
1651 | saver_def_ = nullptr; |
1652 | } |
1653 | void MetaGraphDef::unsafe_arena_set_allocated_object_graph_def( |
1654 | ::tensorflow::SavedObjectGraph* object_graph_def) { |
1655 | if (GetArenaNoVirtual() == nullptr) { |
1656 | delete object_graph_def_; |
1657 | } |
1658 | object_graph_def_ = object_graph_def; |
1659 | if (object_graph_def) { |
1660 | |
1661 | } else { |
1662 | |
1663 | } |
1664 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.object_graph_def) |
1665 | } |
1666 | void MetaGraphDef::clear_object_graph_def() { |
1667 | if (GetArenaNoVirtual() == nullptr && object_graph_def_ != nullptr) { |
1668 | delete object_graph_def_; |
1669 | } |
1670 | object_graph_def_ = nullptr; |
1671 | } |
1672 | MetaGraphDef::MetaGraphDef() |
1673 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1674 | SharedCtor(); |
1675 | // @@protoc_insertion_point(constructor:tensorflow.MetaGraphDef) |
1676 | } |
1677 | MetaGraphDef::MetaGraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1678 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1679 | _internal_metadata_(arena), |
1680 | collection_def_(arena), |
1681 | signature_def_(arena), |
1682 | asset_file_def_(arena) { |
1683 | SharedCtor(); |
1684 | RegisterArenaDtor(arena); |
1685 | // @@protoc_insertion_point(arena_constructor:tensorflow.MetaGraphDef) |
1686 | } |
1687 | MetaGraphDef::MetaGraphDef(const MetaGraphDef& from) |
1688 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1689 | _internal_metadata_(nullptr), |
1690 | asset_file_def_(from.asset_file_def_) { |
1691 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1692 | collection_def_.MergeFrom(from.collection_def_); |
1693 | signature_def_.MergeFrom(from.signature_def_); |
1694 | if (from.has_meta_info_def()) { |
1695 | meta_info_def_ = new ::tensorflow::MetaGraphDef_MetaInfoDef(*from.meta_info_def_); |
1696 | } else { |
1697 | meta_info_def_ = nullptr; |
1698 | } |
1699 | if (from.has_graph_def()) { |
1700 | graph_def_ = new ::tensorflow::GraphDef(*from.graph_def_); |
1701 | } else { |
1702 | graph_def_ = nullptr; |
1703 | } |
1704 | if (from.has_saver_def()) { |
1705 | saver_def_ = new ::tensorflow::SaverDef(*from.saver_def_); |
1706 | } else { |
1707 | saver_def_ = nullptr; |
1708 | } |
1709 | if (from.has_object_graph_def()) { |
1710 | object_graph_def_ = new ::tensorflow::SavedObjectGraph(*from.object_graph_def_); |
1711 | } else { |
1712 | object_graph_def_ = nullptr; |
1713 | } |
1714 | // @@protoc_insertion_point(copy_constructor:tensorflow.MetaGraphDef) |
1715 | } |
1716 | |
1717 | void MetaGraphDef::SharedCtor() { |
1718 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
1719 | ::memset(&meta_info_def_, 0, static_cast<size_t>( |
1720 | reinterpret_cast<char*>(&object_graph_def_) - |
1721 | reinterpret_cast<char*>(&meta_info_def_)) + sizeof(object_graph_def_)); |
1722 | } |
1723 | |
1724 | MetaGraphDef::~MetaGraphDef() { |
1725 | // @@protoc_insertion_point(destructor:tensorflow.MetaGraphDef) |
1726 | SharedDtor(); |
1727 | } |
1728 | |
1729 | void MetaGraphDef::SharedDtor() { |
1730 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1731 | if (this != internal_default_instance()) delete meta_info_def_; |
1732 | if (this != internal_default_instance()) delete graph_def_; |
1733 | if (this != internal_default_instance()) delete saver_def_; |
1734 | if (this != internal_default_instance()) delete object_graph_def_; |
1735 | } |
1736 | |
1737 | void MetaGraphDef::ArenaDtor(void* object) { |
1738 | MetaGraphDef* _this = reinterpret_cast< MetaGraphDef* >(object); |
1739 | (void)_this; |
1740 | } |
1741 | void MetaGraphDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1742 | } |
1743 | void MetaGraphDef::SetCachedSize(int size) const { |
1744 | _cached_size_.Set(size); |
1745 | } |
1746 | const MetaGraphDef& MetaGraphDef::default_instance() { |
1747 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
1748 | return *internal_default_instance(); |
1749 | } |
1750 | |
1751 | |
1752 | void MetaGraphDef::Clear() { |
1753 | // @@protoc_insertion_point(message_clear_start:tensorflow.MetaGraphDef) |
1754 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1755 | // Prevent compiler warnings about cached_has_bits being unused |
1756 | (void) cached_has_bits; |
1757 | |
1758 | collection_def_.Clear(); |
1759 | signature_def_.Clear(); |
1760 | asset_file_def_.Clear(); |
1761 | if (GetArenaNoVirtual() == nullptr && meta_info_def_ != nullptr) { |
1762 | delete meta_info_def_; |
1763 | } |
1764 | meta_info_def_ = nullptr; |
1765 | if (GetArenaNoVirtual() == nullptr && graph_def_ != nullptr) { |
1766 | delete graph_def_; |
1767 | } |
1768 | graph_def_ = nullptr; |
1769 | if (GetArenaNoVirtual() == nullptr && saver_def_ != nullptr) { |
1770 | delete saver_def_; |
1771 | } |
1772 | saver_def_ = nullptr; |
1773 | if (GetArenaNoVirtual() == nullptr && object_graph_def_ != nullptr) { |
1774 | delete object_graph_def_; |
1775 | } |
1776 | object_graph_def_ = nullptr; |
1777 | _internal_metadata_.Clear(); |
1778 | } |
1779 | |
1780 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1781 | const char* MetaGraphDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1782 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1783 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1784 | while (!ctx->Done(&ptr)) { |
1785 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1786 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1787 | CHK_(ptr); |
1788 | switch (tag >> 3) { |
1789 | // .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
1790 | case 1: |
1791 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1792 | ptr = ctx->ParseMessage(mutable_meta_info_def(), ptr); |
1793 | CHK_(ptr); |
1794 | } else goto handle_unusual; |
1795 | continue; |
1796 | // .tensorflow.GraphDef graph_def = 2; |
1797 | case 2: |
1798 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1799 | ptr = ctx->ParseMessage(mutable_graph_def(), ptr); |
1800 | CHK_(ptr); |
1801 | } else goto handle_unusual; |
1802 | continue; |
1803 | // .tensorflow.SaverDef saver_def = 3; |
1804 | case 3: |
1805 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
1806 | ptr = ctx->ParseMessage(mutable_saver_def(), ptr); |
1807 | CHK_(ptr); |
1808 | } else goto handle_unusual; |
1809 | continue; |
1810 | // map<string, .tensorflow.CollectionDef> collection_def = 4; |
1811 | case 4: |
1812 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
1813 | ptr -= 1; |
1814 | do { |
1815 | ptr += 1; |
1816 | ptr = ctx->ParseMessage(&collection_def_, ptr); |
1817 | CHK_(ptr); |
1818 | if (!ctx->DataAvailable(ptr)) break; |
1819 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
1820 | } else goto handle_unusual; |
1821 | continue; |
1822 | // map<string, .tensorflow.SignatureDef> signature_def = 5; |
1823 | case 5: |
1824 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
1825 | ptr -= 1; |
1826 | do { |
1827 | ptr += 1; |
1828 | ptr = ctx->ParseMessage(&signature_def_, ptr); |
1829 | CHK_(ptr); |
1830 | if (!ctx->DataAvailable(ptr)) break; |
1831 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); |
1832 | } else goto handle_unusual; |
1833 | continue; |
1834 | // repeated .tensorflow.AssetFileDef asset_file_def = 6; |
1835 | case 6: |
1836 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
1837 | ptr -= 1; |
1838 | do { |
1839 | ptr += 1; |
1840 | ptr = ctx->ParseMessage(add_asset_file_def(), ptr); |
1841 | CHK_(ptr); |
1842 | if (!ctx->DataAvailable(ptr)) break; |
1843 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); |
1844 | } else goto handle_unusual; |
1845 | continue; |
1846 | // .tensorflow.SavedObjectGraph object_graph_def = 7; |
1847 | case 7: |
1848 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
1849 | ptr = ctx->ParseMessage(mutable_object_graph_def(), ptr); |
1850 | CHK_(ptr); |
1851 | } else goto handle_unusual; |
1852 | continue; |
1853 | default: { |
1854 | handle_unusual: |
1855 | if ((tag & 7) == 4 || tag == 0) { |
1856 | ctx->SetLastTag(tag); |
1857 | goto success; |
1858 | } |
1859 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1860 | CHK_(ptr != nullptr); |
1861 | continue; |
1862 | } |
1863 | } // switch |
1864 | } // while |
1865 | success: |
1866 | return ptr; |
1867 | failure: |
1868 | ptr = nullptr; |
1869 | goto success; |
1870 | #undef CHK_ |
1871 | } |
1872 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1873 | bool MetaGraphDef::MergePartialFromCodedStream( |
1874 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1875 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1876 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1877 | // @@protoc_insertion_point(parse_start:tensorflow.MetaGraphDef) |
1878 | for (;;) { |
1879 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1880 | tag = p.first; |
1881 | if (!p.second) goto handle_unusual; |
1882 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1883 | // .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
1884 | case 1: { |
1885 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1886 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1887 | input, mutable_meta_info_def())); |
1888 | } else { |
1889 | goto handle_unusual; |
1890 | } |
1891 | break; |
1892 | } |
1893 | |
1894 | // .tensorflow.GraphDef graph_def = 2; |
1895 | case 2: { |
1896 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1897 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1898 | input, mutable_graph_def())); |
1899 | } else { |
1900 | goto handle_unusual; |
1901 | } |
1902 | break; |
1903 | } |
1904 | |
1905 | // .tensorflow.SaverDef saver_def = 3; |
1906 | case 3: { |
1907 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
1908 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1909 | input, mutable_saver_def())); |
1910 | } else { |
1911 | goto handle_unusual; |
1912 | } |
1913 | break; |
1914 | } |
1915 | |
1916 | // map<string, .tensorflow.CollectionDef> collection_def = 4; |
1917 | case 4: { |
1918 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
1919 | MetaGraphDef_CollectionDefEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1920 | MetaGraphDef_CollectionDefEntry_DoNotUse, |
1921 | std::string, ::tensorflow::CollectionDef, |
1922 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
1923 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
1924 | 0 >, |
1925 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef > > parser(&collection_def_); |
1926 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
1927 | input, &parser)); |
1928 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1929 | parser.key().data(), static_cast<int>(parser.key().length()), |
1930 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1931 | "tensorflow.MetaGraphDef.CollectionDefEntry.key" )); |
1932 | } else { |
1933 | goto handle_unusual; |
1934 | } |
1935 | break; |
1936 | } |
1937 | |
1938 | // map<string, .tensorflow.SignatureDef> signature_def = 5; |
1939 | case 5: { |
1940 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
1941 | MetaGraphDef_SignatureDefEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1942 | MetaGraphDef_SignatureDefEntry_DoNotUse, |
1943 | std::string, ::tensorflow::SignatureDef, |
1944 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
1945 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
1946 | 0 >, |
1947 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef > > parser(&signature_def_); |
1948 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
1949 | input, &parser)); |
1950 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1951 | parser.key().data(), static_cast<int>(parser.key().length()), |
1952 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1953 | "tensorflow.MetaGraphDef.SignatureDefEntry.key" )); |
1954 | } else { |
1955 | goto handle_unusual; |
1956 | } |
1957 | break; |
1958 | } |
1959 | |
1960 | // repeated .tensorflow.AssetFileDef asset_file_def = 6; |
1961 | case 6: { |
1962 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
1963 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1964 | input, add_asset_file_def())); |
1965 | } else { |
1966 | goto handle_unusual; |
1967 | } |
1968 | break; |
1969 | } |
1970 | |
1971 | // .tensorflow.SavedObjectGraph object_graph_def = 7; |
1972 | case 7: { |
1973 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { |
1974 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1975 | input, mutable_object_graph_def())); |
1976 | } else { |
1977 | goto handle_unusual; |
1978 | } |
1979 | break; |
1980 | } |
1981 | |
1982 | default: { |
1983 | handle_unusual: |
1984 | if (tag == 0) { |
1985 | goto success; |
1986 | } |
1987 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1988 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1989 | break; |
1990 | } |
1991 | } |
1992 | } |
1993 | success: |
1994 | // @@protoc_insertion_point(parse_success:tensorflow.MetaGraphDef) |
1995 | return true; |
1996 | failure: |
1997 | // @@protoc_insertion_point(parse_failure:tensorflow.MetaGraphDef) |
1998 | return false; |
1999 | #undef DO_ |
2000 | } |
2001 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2002 | |
2003 | void MetaGraphDef::SerializeWithCachedSizes( |
2004 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2005 | // @@protoc_insertion_point(serialize_start:tensorflow.MetaGraphDef) |
2006 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2007 | (void) cached_has_bits; |
2008 | |
2009 | // .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
2010 | if (this->has_meta_info_def()) { |
2011 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2012 | 1, _Internal::meta_info_def(this), output); |
2013 | } |
2014 | |
2015 | // .tensorflow.GraphDef graph_def = 2; |
2016 | if (this->has_graph_def()) { |
2017 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2018 | 2, _Internal::graph_def(this), output); |
2019 | } |
2020 | |
2021 | // .tensorflow.SaverDef saver_def = 3; |
2022 | if (this->has_saver_def()) { |
2023 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2024 | 3, _Internal::saver_def(this), output); |
2025 | } |
2026 | |
2027 | // map<string, .tensorflow.CollectionDef> collection_def = 4; |
2028 | if (!this->collection_def().empty()) { |
2029 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_pointer |
2030 | ConstPtr; |
2031 | typedef ConstPtr SortItem; |
2032 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2033 | struct Utf8Check { |
2034 | static void Check(ConstPtr p) { |
2035 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2036 | p->first.data(), static_cast<int>(p->first.length()), |
2037 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2038 | "tensorflow.MetaGraphDef.CollectionDefEntry.key" ); |
2039 | } |
2040 | }; |
2041 | |
2042 | if (output->IsSerializationDeterministic() && |
2043 | this->collection_def().size() > 1) { |
2044 | ::std::unique_ptr<SortItem[]> items( |
2045 | new SortItem[this->collection_def().size()]); |
2046 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::size_type size_type; |
2047 | size_type n = 0; |
2048 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_iterator |
2049 | it = this->collection_def().begin(); |
2050 | it != this->collection_def().end(); ++it, ++n) { |
2051 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2052 | } |
2053 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2054 | for (size_type i = 0; i < n; i++) { |
2055 | MetaGraphDef_CollectionDefEntry_DoNotUse::Funcs::SerializeToCodedStream(4, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
2056 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2057 | } |
2058 | } else { |
2059 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_iterator |
2060 | it = this->collection_def().begin(); |
2061 | it != this->collection_def().end(); ++it) { |
2062 | MetaGraphDef_CollectionDefEntry_DoNotUse::Funcs::SerializeToCodedStream(4, it->first, it->second, output); |
2063 | Utf8Check::Check(&(*it)); |
2064 | } |
2065 | } |
2066 | } |
2067 | |
2068 | // map<string, .tensorflow.SignatureDef> signature_def = 5; |
2069 | if (!this->signature_def().empty()) { |
2070 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_pointer |
2071 | ConstPtr; |
2072 | typedef ConstPtr SortItem; |
2073 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2074 | struct Utf8Check { |
2075 | static void Check(ConstPtr p) { |
2076 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2077 | p->first.data(), static_cast<int>(p->first.length()), |
2078 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2079 | "tensorflow.MetaGraphDef.SignatureDefEntry.key" ); |
2080 | } |
2081 | }; |
2082 | |
2083 | if (output->IsSerializationDeterministic() && |
2084 | this->signature_def().size() > 1) { |
2085 | ::std::unique_ptr<SortItem[]> items( |
2086 | new SortItem[this->signature_def().size()]); |
2087 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::size_type size_type; |
2088 | size_type n = 0; |
2089 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_iterator |
2090 | it = this->signature_def().begin(); |
2091 | it != this->signature_def().end(); ++it, ++n) { |
2092 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2093 | } |
2094 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2095 | for (size_type i = 0; i < n; i++) { |
2096 | MetaGraphDef_SignatureDefEntry_DoNotUse::Funcs::SerializeToCodedStream(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
2097 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2098 | } |
2099 | } else { |
2100 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_iterator |
2101 | it = this->signature_def().begin(); |
2102 | it != this->signature_def().end(); ++it) { |
2103 | MetaGraphDef_SignatureDefEntry_DoNotUse::Funcs::SerializeToCodedStream(5, it->first, it->second, output); |
2104 | Utf8Check::Check(&(*it)); |
2105 | } |
2106 | } |
2107 | } |
2108 | |
2109 | // repeated .tensorflow.AssetFileDef asset_file_def = 6; |
2110 | for (unsigned int i = 0, |
2111 | n = static_cast<unsigned int>(this->asset_file_def_size()); i < n; i++) { |
2112 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2113 | 6, |
2114 | this->asset_file_def(static_cast<int>(i)), |
2115 | output); |
2116 | } |
2117 | |
2118 | // .tensorflow.SavedObjectGraph object_graph_def = 7; |
2119 | if (this->has_object_graph_def()) { |
2120 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2121 | 7, _Internal::object_graph_def(this), output); |
2122 | } |
2123 | |
2124 | if (_internal_metadata_.have_unknown_fields()) { |
2125 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2126 | _internal_metadata_.unknown_fields(), output); |
2127 | } |
2128 | // @@protoc_insertion_point(serialize_end:tensorflow.MetaGraphDef) |
2129 | } |
2130 | |
2131 | ::PROTOBUF_NAMESPACE_ID::uint8* MetaGraphDef::InternalSerializeWithCachedSizesToArray( |
2132 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2133 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MetaGraphDef) |
2134 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2135 | (void) cached_has_bits; |
2136 | |
2137 | // .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
2138 | if (this->has_meta_info_def()) { |
2139 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2140 | InternalWriteMessageToArray( |
2141 | 1, _Internal::meta_info_def(this), target); |
2142 | } |
2143 | |
2144 | // .tensorflow.GraphDef graph_def = 2; |
2145 | if (this->has_graph_def()) { |
2146 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2147 | InternalWriteMessageToArray( |
2148 | 2, _Internal::graph_def(this), target); |
2149 | } |
2150 | |
2151 | // .tensorflow.SaverDef saver_def = 3; |
2152 | if (this->has_saver_def()) { |
2153 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2154 | InternalWriteMessageToArray( |
2155 | 3, _Internal::saver_def(this), target); |
2156 | } |
2157 | |
2158 | // map<string, .tensorflow.CollectionDef> collection_def = 4; |
2159 | if (!this->collection_def().empty()) { |
2160 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_pointer |
2161 | ConstPtr; |
2162 | typedef ConstPtr SortItem; |
2163 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2164 | struct Utf8Check { |
2165 | static void Check(ConstPtr p) { |
2166 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2167 | p->first.data(), static_cast<int>(p->first.length()), |
2168 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2169 | "tensorflow.MetaGraphDef.CollectionDefEntry.key" ); |
2170 | } |
2171 | }; |
2172 | |
2173 | if (false && |
2174 | this->collection_def().size() > 1) { |
2175 | ::std::unique_ptr<SortItem[]> items( |
2176 | new SortItem[this->collection_def().size()]); |
2177 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::size_type size_type; |
2178 | size_type n = 0; |
2179 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_iterator |
2180 | it = this->collection_def().begin(); |
2181 | it != this->collection_def().end(); ++it, ++n) { |
2182 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2183 | } |
2184 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2185 | for (size_type i = 0; i < n; i++) { |
2186 | target = MetaGraphDef_CollectionDefEntry_DoNotUse::Funcs::SerializeToArray(4, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
2187 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2188 | } |
2189 | } else { |
2190 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_iterator |
2191 | it = this->collection_def().begin(); |
2192 | it != this->collection_def().end(); ++it) { |
2193 | target = MetaGraphDef_CollectionDefEntry_DoNotUse::Funcs::SerializeToArray(4, it->first, it->second, target); |
2194 | Utf8Check::Check(&(*it)); |
2195 | } |
2196 | } |
2197 | } |
2198 | |
2199 | // map<string, .tensorflow.SignatureDef> signature_def = 5; |
2200 | if (!this->signature_def().empty()) { |
2201 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_pointer |
2202 | ConstPtr; |
2203 | typedef ConstPtr SortItem; |
2204 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2205 | struct Utf8Check { |
2206 | static void Check(ConstPtr p) { |
2207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2208 | p->first.data(), static_cast<int>(p->first.length()), |
2209 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2210 | "tensorflow.MetaGraphDef.SignatureDefEntry.key" ); |
2211 | } |
2212 | }; |
2213 | |
2214 | if (false && |
2215 | this->signature_def().size() > 1) { |
2216 | ::std::unique_ptr<SortItem[]> items( |
2217 | new SortItem[this->signature_def().size()]); |
2218 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::size_type size_type; |
2219 | size_type n = 0; |
2220 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_iterator |
2221 | it = this->signature_def().begin(); |
2222 | it != this->signature_def().end(); ++it, ++n) { |
2223 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2224 | } |
2225 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2226 | for (size_type i = 0; i < n; i++) { |
2227 | target = MetaGraphDef_SignatureDefEntry_DoNotUse::Funcs::SerializeToArray(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
2228 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2229 | } |
2230 | } else { |
2231 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_iterator |
2232 | it = this->signature_def().begin(); |
2233 | it != this->signature_def().end(); ++it) { |
2234 | target = MetaGraphDef_SignatureDefEntry_DoNotUse::Funcs::SerializeToArray(5, it->first, it->second, target); |
2235 | Utf8Check::Check(&(*it)); |
2236 | } |
2237 | } |
2238 | } |
2239 | |
2240 | // repeated .tensorflow.AssetFileDef asset_file_def = 6; |
2241 | for (unsigned int i = 0, |
2242 | n = static_cast<unsigned int>(this->asset_file_def_size()); i < n; i++) { |
2243 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2244 | InternalWriteMessageToArray( |
2245 | 6, this->asset_file_def(static_cast<int>(i)), target); |
2246 | } |
2247 | |
2248 | // .tensorflow.SavedObjectGraph object_graph_def = 7; |
2249 | if (this->has_object_graph_def()) { |
2250 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2251 | InternalWriteMessageToArray( |
2252 | 7, _Internal::object_graph_def(this), target); |
2253 | } |
2254 | |
2255 | if (_internal_metadata_.have_unknown_fields()) { |
2256 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2257 | _internal_metadata_.unknown_fields(), target); |
2258 | } |
2259 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MetaGraphDef) |
2260 | return target; |
2261 | } |
2262 | |
2263 | size_t MetaGraphDef::ByteSizeLong() const { |
2264 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.MetaGraphDef) |
2265 | size_t total_size = 0; |
2266 | |
2267 | if (_internal_metadata_.have_unknown_fields()) { |
2268 | total_size += |
2269 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2270 | _internal_metadata_.unknown_fields()); |
2271 | } |
2272 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2273 | // Prevent compiler warnings about cached_has_bits being unused |
2274 | (void) cached_has_bits; |
2275 | |
2276 | // map<string, .tensorflow.CollectionDef> collection_def = 4; |
2277 | total_size += 1 * |
2278 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_def_size()); |
2279 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::CollectionDef >::const_iterator |
2280 | it = this->collection_def().begin(); |
2281 | it != this->collection_def().end(); ++it) { |
2282 | total_size += MetaGraphDef_CollectionDefEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
2283 | } |
2284 | |
2285 | // map<string, .tensorflow.SignatureDef> signature_def = 5; |
2286 | total_size += 1 * |
2287 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->signature_def_size()); |
2288 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SignatureDef >::const_iterator |
2289 | it = this->signature_def().begin(); |
2290 | it != this->signature_def().end(); ++it) { |
2291 | total_size += MetaGraphDef_SignatureDefEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
2292 | } |
2293 | |
2294 | // repeated .tensorflow.AssetFileDef asset_file_def = 6; |
2295 | { |
2296 | unsigned int count = static_cast<unsigned int>(this->asset_file_def_size()); |
2297 | total_size += 1UL * count; |
2298 | for (unsigned int i = 0; i < count; i++) { |
2299 | total_size += |
2300 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2301 | this->asset_file_def(static_cast<int>(i))); |
2302 | } |
2303 | } |
2304 | |
2305 | // .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
2306 | if (this->has_meta_info_def()) { |
2307 | total_size += 1 + |
2308 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2309 | *meta_info_def_); |
2310 | } |
2311 | |
2312 | // .tensorflow.GraphDef graph_def = 2; |
2313 | if (this->has_graph_def()) { |
2314 | total_size += 1 + |
2315 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2316 | *graph_def_); |
2317 | } |
2318 | |
2319 | // .tensorflow.SaverDef saver_def = 3; |
2320 | if (this->has_saver_def()) { |
2321 | total_size += 1 + |
2322 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2323 | *saver_def_); |
2324 | } |
2325 | |
2326 | // .tensorflow.SavedObjectGraph object_graph_def = 7; |
2327 | if (this->has_object_graph_def()) { |
2328 | total_size += 1 + |
2329 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2330 | *object_graph_def_); |
2331 | } |
2332 | |
2333 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2334 | SetCachedSize(cached_size); |
2335 | return total_size; |
2336 | } |
2337 | |
2338 | void MetaGraphDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2339 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MetaGraphDef) |
2340 | GOOGLE_DCHECK_NE(&from, this); |
2341 | const MetaGraphDef* source = |
2342 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetaGraphDef>( |
2343 | &from); |
2344 | if (source == nullptr) { |
2345 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MetaGraphDef) |
2346 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2347 | } else { |
2348 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MetaGraphDef) |
2349 | MergeFrom(*source); |
2350 | } |
2351 | } |
2352 | |
2353 | void MetaGraphDef::MergeFrom(const MetaGraphDef& from) { |
2354 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MetaGraphDef) |
2355 | GOOGLE_DCHECK_NE(&from, this); |
2356 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2357 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2358 | (void) cached_has_bits; |
2359 | |
2360 | collection_def_.MergeFrom(from.collection_def_); |
2361 | signature_def_.MergeFrom(from.signature_def_); |
2362 | asset_file_def_.MergeFrom(from.asset_file_def_); |
2363 | if (from.has_meta_info_def()) { |
2364 | mutable_meta_info_def()->::tensorflow::MetaGraphDef_MetaInfoDef::MergeFrom(from.meta_info_def()); |
2365 | } |
2366 | if (from.has_graph_def()) { |
2367 | mutable_graph_def()->::tensorflow::GraphDef::MergeFrom(from.graph_def()); |
2368 | } |
2369 | if (from.has_saver_def()) { |
2370 | mutable_saver_def()->::tensorflow::SaverDef::MergeFrom(from.saver_def()); |
2371 | } |
2372 | if (from.has_object_graph_def()) { |
2373 | mutable_object_graph_def()->::tensorflow::SavedObjectGraph::MergeFrom(from.object_graph_def()); |
2374 | } |
2375 | } |
2376 | |
2377 | void MetaGraphDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2378 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MetaGraphDef) |
2379 | if (&from == this) return; |
2380 | Clear(); |
2381 | MergeFrom(from); |
2382 | } |
2383 | |
2384 | void MetaGraphDef::CopyFrom(const MetaGraphDef& from) { |
2385 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MetaGraphDef) |
2386 | if (&from == this) return; |
2387 | Clear(); |
2388 | MergeFrom(from); |
2389 | } |
2390 | |
2391 | bool MetaGraphDef::IsInitialized() const { |
2392 | return true; |
2393 | } |
2394 | |
2395 | void MetaGraphDef::InternalSwap(MetaGraphDef* other) { |
2396 | using std::swap; |
2397 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2398 | collection_def_.Swap(&other->collection_def_); |
2399 | signature_def_.Swap(&other->signature_def_); |
2400 | CastToBase(&asset_file_def_)->InternalSwap(CastToBase(&other->asset_file_def_)); |
2401 | swap(meta_info_def_, other->meta_info_def_); |
2402 | swap(graph_def_, other->graph_def_); |
2403 | swap(saver_def_, other->saver_def_); |
2404 | swap(object_graph_def_, other->object_graph_def_); |
2405 | } |
2406 | |
2407 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaGraphDef::GetMetadata() const { |
2408 | return GetMetadataStatic(); |
2409 | } |
2410 | |
2411 | |
2412 | // =================================================================== |
2413 | |
2414 | void CollectionDef_NodeList::InitAsDefaultInstance() { |
2415 | } |
2416 | class CollectionDef_NodeList::_Internal { |
2417 | public: |
2418 | }; |
2419 | |
2420 | CollectionDef_NodeList::CollectionDef_NodeList() |
2421 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2422 | SharedCtor(); |
2423 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.NodeList) |
2424 | } |
2425 | CollectionDef_NodeList::CollectionDef_NodeList(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2426 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2427 | _internal_metadata_(arena), |
2428 | value_(arena) { |
2429 | SharedCtor(); |
2430 | RegisterArenaDtor(arena); |
2431 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.NodeList) |
2432 | } |
2433 | CollectionDef_NodeList::CollectionDef_NodeList(const CollectionDef_NodeList& from) |
2434 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2435 | _internal_metadata_(nullptr), |
2436 | value_(from.value_) { |
2437 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2438 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.NodeList) |
2439 | } |
2440 | |
2441 | void CollectionDef_NodeList::SharedCtor() { |
2442 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
2443 | } |
2444 | |
2445 | CollectionDef_NodeList::~CollectionDef_NodeList() { |
2446 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.NodeList) |
2447 | SharedDtor(); |
2448 | } |
2449 | |
2450 | void CollectionDef_NodeList::SharedDtor() { |
2451 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2452 | } |
2453 | |
2454 | void CollectionDef_NodeList::ArenaDtor(void* object) { |
2455 | CollectionDef_NodeList* _this = reinterpret_cast< CollectionDef_NodeList* >(object); |
2456 | (void)_this; |
2457 | } |
2458 | void CollectionDef_NodeList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2459 | } |
2460 | void CollectionDef_NodeList::SetCachedSize(int size) const { |
2461 | _cached_size_.Set(size); |
2462 | } |
2463 | const CollectionDef_NodeList& CollectionDef_NodeList::default_instance() { |
2464 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_NodeList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
2465 | return *internal_default_instance(); |
2466 | } |
2467 | |
2468 | |
2469 | void CollectionDef_NodeList::Clear() { |
2470 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.NodeList) |
2471 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2472 | // Prevent compiler warnings about cached_has_bits being unused |
2473 | (void) cached_has_bits; |
2474 | |
2475 | value_.Clear(); |
2476 | _internal_metadata_.Clear(); |
2477 | } |
2478 | |
2479 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2480 | const char* CollectionDef_NodeList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2481 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2482 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2483 | while (!ctx->Done(&ptr)) { |
2484 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2485 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2486 | CHK_(ptr); |
2487 | switch (tag >> 3) { |
2488 | // repeated string value = 1; |
2489 | case 1: |
2490 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2491 | ptr -= 1; |
2492 | do { |
2493 | ptr += 1; |
2494 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_value(), ptr, ctx, "tensorflow.CollectionDef.NodeList.value" ); |
2495 | CHK_(ptr); |
2496 | if (!ctx->DataAvailable(ptr)) break; |
2497 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
2498 | } else goto handle_unusual; |
2499 | continue; |
2500 | default: { |
2501 | handle_unusual: |
2502 | if ((tag & 7) == 4 || tag == 0) { |
2503 | ctx->SetLastTag(tag); |
2504 | goto success; |
2505 | } |
2506 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2507 | CHK_(ptr != nullptr); |
2508 | continue; |
2509 | } |
2510 | } // switch |
2511 | } // while |
2512 | success: |
2513 | return ptr; |
2514 | failure: |
2515 | ptr = nullptr; |
2516 | goto success; |
2517 | #undef CHK_ |
2518 | } |
2519 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2520 | bool CollectionDef_NodeList::MergePartialFromCodedStream( |
2521 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2522 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2523 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2524 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.NodeList) |
2525 | for (;;) { |
2526 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2527 | tag = p.first; |
2528 | if (!p.second) goto handle_unusual; |
2529 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2530 | // repeated string value = 1; |
2531 | case 1: { |
2532 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2533 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2534 | input, this->add_value())); |
2535 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2536 | this->value(this->value_size() - 1).data(), |
2537 | static_cast<int>(this->value(this->value_size() - 1).length()), |
2538 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2539 | "tensorflow.CollectionDef.NodeList.value" )); |
2540 | } else { |
2541 | goto handle_unusual; |
2542 | } |
2543 | break; |
2544 | } |
2545 | |
2546 | default: { |
2547 | handle_unusual: |
2548 | if (tag == 0) { |
2549 | goto success; |
2550 | } |
2551 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2552 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2553 | break; |
2554 | } |
2555 | } |
2556 | } |
2557 | success: |
2558 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.NodeList) |
2559 | return true; |
2560 | failure: |
2561 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.NodeList) |
2562 | return false; |
2563 | #undef DO_ |
2564 | } |
2565 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2566 | |
2567 | void CollectionDef_NodeList::SerializeWithCachedSizes( |
2568 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2569 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.NodeList) |
2570 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2571 | (void) cached_has_bits; |
2572 | |
2573 | // repeated string value = 1; |
2574 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2575 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2576 | this->value(i).data(), static_cast<int>(this->value(i).length()), |
2577 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2578 | "tensorflow.CollectionDef.NodeList.value" ); |
2579 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
2580 | 1, this->value(i), output); |
2581 | } |
2582 | |
2583 | if (_internal_metadata_.have_unknown_fields()) { |
2584 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2585 | _internal_metadata_.unknown_fields(), output); |
2586 | } |
2587 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.NodeList) |
2588 | } |
2589 | |
2590 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef_NodeList::InternalSerializeWithCachedSizesToArray( |
2591 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2592 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.NodeList) |
2593 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2594 | (void) cached_has_bits; |
2595 | |
2596 | // repeated string value = 1; |
2597 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2598 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2599 | this->value(i).data(), static_cast<int>(this->value(i).length()), |
2600 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2601 | "tensorflow.CollectionDef.NodeList.value" ); |
2602 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2603 | WriteStringToArray(1, this->value(i), target); |
2604 | } |
2605 | |
2606 | if (_internal_metadata_.have_unknown_fields()) { |
2607 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2608 | _internal_metadata_.unknown_fields(), target); |
2609 | } |
2610 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.NodeList) |
2611 | return target; |
2612 | } |
2613 | |
2614 | size_t CollectionDef_NodeList::ByteSizeLong() const { |
2615 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.NodeList) |
2616 | size_t total_size = 0; |
2617 | |
2618 | if (_internal_metadata_.have_unknown_fields()) { |
2619 | total_size += |
2620 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2621 | _internal_metadata_.unknown_fields()); |
2622 | } |
2623 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2624 | // Prevent compiler warnings about cached_has_bits being unused |
2625 | (void) cached_has_bits; |
2626 | |
2627 | // repeated string value = 1; |
2628 | total_size += 1 * |
2629 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->value_size()); |
2630 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2631 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2632 | this->value(i)); |
2633 | } |
2634 | |
2635 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2636 | SetCachedSize(cached_size); |
2637 | return total_size; |
2638 | } |
2639 | |
2640 | void CollectionDef_NodeList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2641 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.NodeList) |
2642 | GOOGLE_DCHECK_NE(&from, this); |
2643 | const CollectionDef_NodeList* source = |
2644 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef_NodeList>( |
2645 | &from); |
2646 | if (source == nullptr) { |
2647 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.NodeList) |
2648 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2649 | } else { |
2650 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.NodeList) |
2651 | MergeFrom(*source); |
2652 | } |
2653 | } |
2654 | |
2655 | void CollectionDef_NodeList::MergeFrom(const CollectionDef_NodeList& from) { |
2656 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.NodeList) |
2657 | GOOGLE_DCHECK_NE(&from, this); |
2658 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2659 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2660 | (void) cached_has_bits; |
2661 | |
2662 | value_.MergeFrom(from.value_); |
2663 | } |
2664 | |
2665 | void CollectionDef_NodeList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2666 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.NodeList) |
2667 | if (&from == this) return; |
2668 | Clear(); |
2669 | MergeFrom(from); |
2670 | } |
2671 | |
2672 | void CollectionDef_NodeList::CopyFrom(const CollectionDef_NodeList& from) { |
2673 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.NodeList) |
2674 | if (&from == this) return; |
2675 | Clear(); |
2676 | MergeFrom(from); |
2677 | } |
2678 | |
2679 | bool CollectionDef_NodeList::IsInitialized() const { |
2680 | return true; |
2681 | } |
2682 | |
2683 | void CollectionDef_NodeList::InternalSwap(CollectionDef_NodeList* other) { |
2684 | using std::swap; |
2685 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2686 | value_.InternalSwap(CastToBase(&other->value_)); |
2687 | } |
2688 | |
2689 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef_NodeList::GetMetadata() const { |
2690 | return GetMetadataStatic(); |
2691 | } |
2692 | |
2693 | |
2694 | // =================================================================== |
2695 | |
2696 | void CollectionDef_BytesList::InitAsDefaultInstance() { |
2697 | } |
2698 | class CollectionDef_BytesList::_Internal { |
2699 | public: |
2700 | }; |
2701 | |
2702 | CollectionDef_BytesList::CollectionDef_BytesList() |
2703 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2704 | SharedCtor(); |
2705 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.BytesList) |
2706 | } |
2707 | CollectionDef_BytesList::CollectionDef_BytesList(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2708 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2709 | _internal_metadata_(arena), |
2710 | value_(arena) { |
2711 | SharedCtor(); |
2712 | RegisterArenaDtor(arena); |
2713 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.BytesList) |
2714 | } |
2715 | CollectionDef_BytesList::CollectionDef_BytesList(const CollectionDef_BytesList& from) |
2716 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2717 | _internal_metadata_(nullptr), |
2718 | value_(from.value_) { |
2719 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2720 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.BytesList) |
2721 | } |
2722 | |
2723 | void CollectionDef_BytesList::SharedCtor() { |
2724 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
2725 | } |
2726 | |
2727 | CollectionDef_BytesList::~CollectionDef_BytesList() { |
2728 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.BytesList) |
2729 | SharedDtor(); |
2730 | } |
2731 | |
2732 | void CollectionDef_BytesList::SharedDtor() { |
2733 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2734 | } |
2735 | |
2736 | void CollectionDef_BytesList::ArenaDtor(void* object) { |
2737 | CollectionDef_BytesList* _this = reinterpret_cast< CollectionDef_BytesList* >(object); |
2738 | (void)_this; |
2739 | } |
2740 | void CollectionDef_BytesList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2741 | } |
2742 | void CollectionDef_BytesList::SetCachedSize(int size) const { |
2743 | _cached_size_.Set(size); |
2744 | } |
2745 | const CollectionDef_BytesList& CollectionDef_BytesList::default_instance() { |
2746 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_BytesList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
2747 | return *internal_default_instance(); |
2748 | } |
2749 | |
2750 | |
2751 | void CollectionDef_BytesList::Clear() { |
2752 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.BytesList) |
2753 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2754 | // Prevent compiler warnings about cached_has_bits being unused |
2755 | (void) cached_has_bits; |
2756 | |
2757 | value_.Clear(); |
2758 | _internal_metadata_.Clear(); |
2759 | } |
2760 | |
2761 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2762 | const char* CollectionDef_BytesList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2763 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2764 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2765 | while (!ctx->Done(&ptr)) { |
2766 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2767 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2768 | CHK_(ptr); |
2769 | switch (tag >> 3) { |
2770 | // repeated bytes value = 1; |
2771 | case 1: |
2772 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2773 | ptr -= 1; |
2774 | do { |
2775 | ptr += 1; |
2776 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_value(), ptr, ctx); |
2777 | CHK_(ptr); |
2778 | if (!ctx->DataAvailable(ptr)) break; |
2779 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
2780 | } else goto handle_unusual; |
2781 | continue; |
2782 | default: { |
2783 | handle_unusual: |
2784 | if ((tag & 7) == 4 || tag == 0) { |
2785 | ctx->SetLastTag(tag); |
2786 | goto success; |
2787 | } |
2788 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2789 | CHK_(ptr != nullptr); |
2790 | continue; |
2791 | } |
2792 | } // switch |
2793 | } // while |
2794 | success: |
2795 | return ptr; |
2796 | failure: |
2797 | ptr = nullptr; |
2798 | goto success; |
2799 | #undef CHK_ |
2800 | } |
2801 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2802 | bool CollectionDef_BytesList::MergePartialFromCodedStream( |
2803 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2804 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2805 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2806 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.BytesList) |
2807 | for (;;) { |
2808 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2809 | tag = p.first; |
2810 | if (!p.second) goto handle_unusual; |
2811 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2812 | // repeated bytes value = 1; |
2813 | case 1: { |
2814 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2815 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
2816 | input, this->add_value())); |
2817 | } else { |
2818 | goto handle_unusual; |
2819 | } |
2820 | break; |
2821 | } |
2822 | |
2823 | default: { |
2824 | handle_unusual: |
2825 | if (tag == 0) { |
2826 | goto success; |
2827 | } |
2828 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2829 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2830 | break; |
2831 | } |
2832 | } |
2833 | } |
2834 | success: |
2835 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.BytesList) |
2836 | return true; |
2837 | failure: |
2838 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.BytesList) |
2839 | return false; |
2840 | #undef DO_ |
2841 | } |
2842 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2843 | |
2844 | void CollectionDef_BytesList::SerializeWithCachedSizes( |
2845 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2846 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.BytesList) |
2847 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2848 | (void) cached_has_bits; |
2849 | |
2850 | // repeated bytes value = 1; |
2851 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2852 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( |
2853 | 1, this->value(i), output); |
2854 | } |
2855 | |
2856 | if (_internal_metadata_.have_unknown_fields()) { |
2857 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2858 | _internal_metadata_.unknown_fields(), output); |
2859 | } |
2860 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.BytesList) |
2861 | } |
2862 | |
2863 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef_BytesList::InternalSerializeWithCachedSizesToArray( |
2864 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2865 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.BytesList) |
2866 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2867 | (void) cached_has_bits; |
2868 | |
2869 | // repeated bytes value = 1; |
2870 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2871 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2872 | WriteBytesToArray(1, this->value(i), target); |
2873 | } |
2874 | |
2875 | if (_internal_metadata_.have_unknown_fields()) { |
2876 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2877 | _internal_metadata_.unknown_fields(), target); |
2878 | } |
2879 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.BytesList) |
2880 | return target; |
2881 | } |
2882 | |
2883 | size_t CollectionDef_BytesList::ByteSizeLong() const { |
2884 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.BytesList) |
2885 | size_t total_size = 0; |
2886 | |
2887 | if (_internal_metadata_.have_unknown_fields()) { |
2888 | total_size += |
2889 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2890 | _internal_metadata_.unknown_fields()); |
2891 | } |
2892 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2893 | // Prevent compiler warnings about cached_has_bits being unused |
2894 | (void) cached_has_bits; |
2895 | |
2896 | // repeated bytes value = 1; |
2897 | total_size += 1 * |
2898 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->value_size()); |
2899 | for (int i = 0, n = this->value_size(); i < n; i++) { |
2900 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
2901 | this->value(i)); |
2902 | } |
2903 | |
2904 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2905 | SetCachedSize(cached_size); |
2906 | return total_size; |
2907 | } |
2908 | |
2909 | void CollectionDef_BytesList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2910 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.BytesList) |
2911 | GOOGLE_DCHECK_NE(&from, this); |
2912 | const CollectionDef_BytesList* source = |
2913 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef_BytesList>( |
2914 | &from); |
2915 | if (source == nullptr) { |
2916 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.BytesList) |
2917 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2918 | } else { |
2919 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.BytesList) |
2920 | MergeFrom(*source); |
2921 | } |
2922 | } |
2923 | |
2924 | void CollectionDef_BytesList::MergeFrom(const CollectionDef_BytesList& from) { |
2925 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.BytesList) |
2926 | GOOGLE_DCHECK_NE(&from, this); |
2927 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2928 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2929 | (void) cached_has_bits; |
2930 | |
2931 | value_.MergeFrom(from.value_); |
2932 | } |
2933 | |
2934 | void CollectionDef_BytesList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2935 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.BytesList) |
2936 | if (&from == this) return; |
2937 | Clear(); |
2938 | MergeFrom(from); |
2939 | } |
2940 | |
2941 | void CollectionDef_BytesList::CopyFrom(const CollectionDef_BytesList& from) { |
2942 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.BytesList) |
2943 | if (&from == this) return; |
2944 | Clear(); |
2945 | MergeFrom(from); |
2946 | } |
2947 | |
2948 | bool CollectionDef_BytesList::IsInitialized() const { |
2949 | return true; |
2950 | } |
2951 | |
2952 | void CollectionDef_BytesList::InternalSwap(CollectionDef_BytesList* other) { |
2953 | using std::swap; |
2954 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2955 | value_.InternalSwap(CastToBase(&other->value_)); |
2956 | } |
2957 | |
2958 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef_BytesList::GetMetadata() const { |
2959 | return GetMetadataStatic(); |
2960 | } |
2961 | |
2962 | |
2963 | // =================================================================== |
2964 | |
2965 | void CollectionDef_Int64List::InitAsDefaultInstance() { |
2966 | } |
2967 | class CollectionDef_Int64List::_Internal { |
2968 | public: |
2969 | }; |
2970 | |
2971 | CollectionDef_Int64List::CollectionDef_Int64List() |
2972 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2973 | SharedCtor(); |
2974 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.Int64List) |
2975 | } |
2976 | CollectionDef_Int64List::CollectionDef_Int64List(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2977 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2978 | _internal_metadata_(arena), |
2979 | value_(arena) { |
2980 | SharedCtor(); |
2981 | RegisterArenaDtor(arena); |
2982 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.Int64List) |
2983 | } |
2984 | CollectionDef_Int64List::CollectionDef_Int64List(const CollectionDef_Int64List& from) |
2985 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2986 | _internal_metadata_(nullptr), |
2987 | value_(from.value_) { |
2988 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2989 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.Int64List) |
2990 | } |
2991 | |
2992 | void CollectionDef_Int64List::SharedCtor() { |
2993 | } |
2994 | |
2995 | CollectionDef_Int64List::~CollectionDef_Int64List() { |
2996 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.Int64List) |
2997 | SharedDtor(); |
2998 | } |
2999 | |
3000 | void CollectionDef_Int64List::SharedDtor() { |
3001 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3002 | } |
3003 | |
3004 | void CollectionDef_Int64List::ArenaDtor(void* object) { |
3005 | CollectionDef_Int64List* _this = reinterpret_cast< CollectionDef_Int64List* >(object); |
3006 | (void)_this; |
3007 | } |
3008 | void CollectionDef_Int64List::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
3009 | } |
3010 | void CollectionDef_Int64List::SetCachedSize(int size) const { |
3011 | _cached_size_.Set(size); |
3012 | } |
3013 | const CollectionDef_Int64List& CollectionDef_Int64List::default_instance() { |
3014 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_Int64List_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
3015 | return *internal_default_instance(); |
3016 | } |
3017 | |
3018 | |
3019 | void CollectionDef_Int64List::Clear() { |
3020 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.Int64List) |
3021 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3022 | // Prevent compiler warnings about cached_has_bits being unused |
3023 | (void) cached_has_bits; |
3024 | |
3025 | value_.Clear(); |
3026 | _internal_metadata_.Clear(); |
3027 | } |
3028 | |
3029 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3030 | const char* CollectionDef_Int64List::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3031 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3032 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3033 | while (!ctx->Done(&ptr)) { |
3034 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3035 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3036 | CHK_(ptr); |
3037 | switch (tag >> 3) { |
3038 | // repeated int64 value = 1 [packed = true]; |
3039 | case 1: |
3040 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
3041 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_value(), ptr, ctx); |
3042 | CHK_(ptr); |
3043 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { |
3044 | add_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); |
3045 | CHK_(ptr); |
3046 | } else goto handle_unusual; |
3047 | continue; |
3048 | default: { |
3049 | handle_unusual: |
3050 | if ((tag & 7) == 4 || tag == 0) { |
3051 | ctx->SetLastTag(tag); |
3052 | goto success; |
3053 | } |
3054 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3055 | CHK_(ptr != nullptr); |
3056 | continue; |
3057 | } |
3058 | } // switch |
3059 | } // while |
3060 | success: |
3061 | return ptr; |
3062 | failure: |
3063 | ptr = nullptr; |
3064 | goto success; |
3065 | #undef CHK_ |
3066 | } |
3067 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3068 | bool CollectionDef_Int64List::MergePartialFromCodedStream( |
3069 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3070 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3071 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3072 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.Int64List) |
3073 | for (;;) { |
3074 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3075 | tag = p.first; |
3076 | if (!p.second) goto handle_unusual; |
3077 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3078 | // repeated int64 value = 1 [packed = true]; |
3079 | case 1: { |
3080 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
3081 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< |
3082 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3083 | input, this->mutable_value()))); |
3084 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
3085 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
3086 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3087 | 1, 10u, input, this->mutable_value()))); |
3088 | } else { |
3089 | goto handle_unusual; |
3090 | } |
3091 | break; |
3092 | } |
3093 | |
3094 | default: { |
3095 | handle_unusual: |
3096 | if (tag == 0) { |
3097 | goto success; |
3098 | } |
3099 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3100 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3101 | break; |
3102 | } |
3103 | } |
3104 | } |
3105 | success: |
3106 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.Int64List) |
3107 | return true; |
3108 | failure: |
3109 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.Int64List) |
3110 | return false; |
3111 | #undef DO_ |
3112 | } |
3113 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3114 | |
3115 | void CollectionDef_Int64List::SerializeWithCachedSizes( |
3116 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3117 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.Int64List) |
3118 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3119 | (void) cached_has_bits; |
3120 | |
3121 | // repeated int64 value = 1 [packed = true]; |
3122 | if (this->value_size() > 0) { |
3123 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
3124 | output->WriteVarint32(_value_cached_byte_size_.load( |
3125 | std::memory_order_relaxed)); |
3126 | } |
3127 | for (int i = 0, n = this->value_size(); i < n; i++) { |
3128 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( |
3129 | this->value(i), output); |
3130 | } |
3131 | |
3132 | if (_internal_metadata_.have_unknown_fields()) { |
3133 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3134 | _internal_metadata_.unknown_fields(), output); |
3135 | } |
3136 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.Int64List) |
3137 | } |
3138 | |
3139 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef_Int64List::InternalSerializeWithCachedSizesToArray( |
3140 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3141 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.Int64List) |
3142 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3143 | (void) cached_has_bits; |
3144 | |
3145 | // repeated int64 value = 1 [packed = true]; |
3146 | if (this->value_size() > 0) { |
3147 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
3148 | 1, |
3149 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
3150 | target); |
3151 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( |
3152 | _value_cached_byte_size_.load(std::memory_order_relaxed), |
3153 | target); |
3154 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3155 | WriteInt64NoTagToArray(this->value_, target); |
3156 | } |
3157 | |
3158 | if (_internal_metadata_.have_unknown_fields()) { |
3159 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3160 | _internal_metadata_.unknown_fields(), target); |
3161 | } |
3162 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.Int64List) |
3163 | return target; |
3164 | } |
3165 | |
3166 | size_t CollectionDef_Int64List::ByteSizeLong() const { |
3167 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.Int64List) |
3168 | size_t total_size = 0; |
3169 | |
3170 | if (_internal_metadata_.have_unknown_fields()) { |
3171 | total_size += |
3172 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3173 | _internal_metadata_.unknown_fields()); |
3174 | } |
3175 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3176 | // Prevent compiler warnings about cached_has_bits being unused |
3177 | (void) cached_has_bits; |
3178 | |
3179 | // repeated int64 value = 1 [packed = true]; |
3180 | { |
3181 | size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3182 | Int64Size(this->value_); |
3183 | if (data_size > 0) { |
3184 | total_size += 1 + |
3185 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
3186 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
3187 | } |
3188 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
3189 | _value_cached_byte_size_.store(cached_size, |
3190 | std::memory_order_relaxed); |
3191 | total_size += data_size; |
3192 | } |
3193 | |
3194 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3195 | SetCachedSize(cached_size); |
3196 | return total_size; |
3197 | } |
3198 | |
3199 | void CollectionDef_Int64List::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3200 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.Int64List) |
3201 | GOOGLE_DCHECK_NE(&from, this); |
3202 | const CollectionDef_Int64List* source = |
3203 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef_Int64List>( |
3204 | &from); |
3205 | if (source == nullptr) { |
3206 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.Int64List) |
3207 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3208 | } else { |
3209 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.Int64List) |
3210 | MergeFrom(*source); |
3211 | } |
3212 | } |
3213 | |
3214 | void CollectionDef_Int64List::MergeFrom(const CollectionDef_Int64List& from) { |
3215 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.Int64List) |
3216 | GOOGLE_DCHECK_NE(&from, this); |
3217 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3218 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3219 | (void) cached_has_bits; |
3220 | |
3221 | value_.MergeFrom(from.value_); |
3222 | } |
3223 | |
3224 | void CollectionDef_Int64List::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3225 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.Int64List) |
3226 | if (&from == this) return; |
3227 | Clear(); |
3228 | MergeFrom(from); |
3229 | } |
3230 | |
3231 | void CollectionDef_Int64List::CopyFrom(const CollectionDef_Int64List& from) { |
3232 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.Int64List) |
3233 | if (&from == this) return; |
3234 | Clear(); |
3235 | MergeFrom(from); |
3236 | } |
3237 | |
3238 | bool CollectionDef_Int64List::IsInitialized() const { |
3239 | return true; |
3240 | } |
3241 | |
3242 | void CollectionDef_Int64List::InternalSwap(CollectionDef_Int64List* other) { |
3243 | using std::swap; |
3244 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3245 | value_.InternalSwap(&other->value_); |
3246 | } |
3247 | |
3248 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef_Int64List::GetMetadata() const { |
3249 | return GetMetadataStatic(); |
3250 | } |
3251 | |
3252 | |
3253 | // =================================================================== |
3254 | |
3255 | void CollectionDef_FloatList::InitAsDefaultInstance() { |
3256 | } |
3257 | class CollectionDef_FloatList::_Internal { |
3258 | public: |
3259 | }; |
3260 | |
3261 | CollectionDef_FloatList::CollectionDef_FloatList() |
3262 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3263 | SharedCtor(); |
3264 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.FloatList) |
3265 | } |
3266 | CollectionDef_FloatList::CollectionDef_FloatList(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3267 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3268 | _internal_metadata_(arena), |
3269 | value_(arena) { |
3270 | SharedCtor(); |
3271 | RegisterArenaDtor(arena); |
3272 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.FloatList) |
3273 | } |
3274 | CollectionDef_FloatList::CollectionDef_FloatList(const CollectionDef_FloatList& from) |
3275 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3276 | _internal_metadata_(nullptr), |
3277 | value_(from.value_) { |
3278 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3279 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.FloatList) |
3280 | } |
3281 | |
3282 | void CollectionDef_FloatList::SharedCtor() { |
3283 | } |
3284 | |
3285 | CollectionDef_FloatList::~CollectionDef_FloatList() { |
3286 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.FloatList) |
3287 | SharedDtor(); |
3288 | } |
3289 | |
3290 | void CollectionDef_FloatList::SharedDtor() { |
3291 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3292 | } |
3293 | |
3294 | void CollectionDef_FloatList::ArenaDtor(void* object) { |
3295 | CollectionDef_FloatList* _this = reinterpret_cast< CollectionDef_FloatList* >(object); |
3296 | (void)_this; |
3297 | } |
3298 | void CollectionDef_FloatList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
3299 | } |
3300 | void CollectionDef_FloatList::SetCachedSize(int size) const { |
3301 | _cached_size_.Set(size); |
3302 | } |
3303 | const CollectionDef_FloatList& CollectionDef_FloatList::default_instance() { |
3304 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_FloatList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
3305 | return *internal_default_instance(); |
3306 | } |
3307 | |
3308 | |
3309 | void CollectionDef_FloatList::Clear() { |
3310 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.FloatList) |
3311 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3312 | // Prevent compiler warnings about cached_has_bits being unused |
3313 | (void) cached_has_bits; |
3314 | |
3315 | value_.Clear(); |
3316 | _internal_metadata_.Clear(); |
3317 | } |
3318 | |
3319 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3320 | const char* CollectionDef_FloatList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3321 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3322 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3323 | while (!ctx->Done(&ptr)) { |
3324 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3325 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3326 | CHK_(ptr); |
3327 | switch (tag >> 3) { |
3328 | // repeated float value = 1 [packed = true]; |
3329 | case 1: |
3330 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
3331 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_value(), ptr, ctx); |
3332 | CHK_(ptr); |
3333 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { |
3334 | add_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr)); |
3335 | ptr += sizeof(float); |
3336 | } else goto handle_unusual; |
3337 | continue; |
3338 | default: { |
3339 | handle_unusual: |
3340 | if ((tag & 7) == 4 || tag == 0) { |
3341 | ctx->SetLastTag(tag); |
3342 | goto success; |
3343 | } |
3344 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3345 | CHK_(ptr != nullptr); |
3346 | continue; |
3347 | } |
3348 | } // switch |
3349 | } // while |
3350 | success: |
3351 | return ptr; |
3352 | failure: |
3353 | ptr = nullptr; |
3354 | goto success; |
3355 | #undef CHK_ |
3356 | } |
3357 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3358 | bool CollectionDef_FloatList::MergePartialFromCodedStream( |
3359 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3360 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3361 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3362 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.FloatList) |
3363 | for (;;) { |
3364 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3365 | tag = p.first; |
3366 | if (!p.second) goto handle_unusual; |
3367 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3368 | // repeated float value = 1 [packed = true]; |
3369 | case 1: { |
3370 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
3371 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< |
3372 | float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( |
3373 | input, this->mutable_value()))); |
3374 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) { |
3375 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
3376 | float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( |
3377 | 1, 10u, input, this->mutable_value()))); |
3378 | } else { |
3379 | goto handle_unusual; |
3380 | } |
3381 | break; |
3382 | } |
3383 | |
3384 | default: { |
3385 | handle_unusual: |
3386 | if (tag == 0) { |
3387 | goto success; |
3388 | } |
3389 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3390 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3391 | break; |
3392 | } |
3393 | } |
3394 | } |
3395 | success: |
3396 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.FloatList) |
3397 | return true; |
3398 | failure: |
3399 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.FloatList) |
3400 | return false; |
3401 | #undef DO_ |
3402 | } |
3403 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3404 | |
3405 | void CollectionDef_FloatList::SerializeWithCachedSizes( |
3406 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3407 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.FloatList) |
3408 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3409 | (void) cached_has_bits; |
3410 | |
3411 | // repeated float value = 1 [packed = true]; |
3412 | if (this->value_size() > 0) { |
3413 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
3414 | output->WriteVarint32(_value_cached_byte_size_.load( |
3415 | std::memory_order_relaxed)); |
3416 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( |
3417 | this->value().data(), this->value_size(), output); |
3418 | } |
3419 | |
3420 | if (_internal_metadata_.have_unknown_fields()) { |
3421 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3422 | _internal_metadata_.unknown_fields(), output); |
3423 | } |
3424 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.FloatList) |
3425 | } |
3426 | |
3427 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef_FloatList::InternalSerializeWithCachedSizesToArray( |
3428 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3429 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.FloatList) |
3430 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3431 | (void) cached_has_bits; |
3432 | |
3433 | // repeated float value = 1 [packed = true]; |
3434 | if (this->value_size() > 0) { |
3435 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
3436 | 1, |
3437 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
3438 | target); |
3439 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( |
3440 | _value_cached_byte_size_.load(std::memory_order_relaxed), |
3441 | target); |
3442 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3443 | WriteFloatNoTagToArray(this->value_, target); |
3444 | } |
3445 | |
3446 | if (_internal_metadata_.have_unknown_fields()) { |
3447 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3448 | _internal_metadata_.unknown_fields(), target); |
3449 | } |
3450 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.FloatList) |
3451 | return target; |
3452 | } |
3453 | |
3454 | size_t CollectionDef_FloatList::ByteSizeLong() const { |
3455 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.FloatList) |
3456 | size_t total_size = 0; |
3457 | |
3458 | if (_internal_metadata_.have_unknown_fields()) { |
3459 | total_size += |
3460 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3461 | _internal_metadata_.unknown_fields()); |
3462 | } |
3463 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3464 | // Prevent compiler warnings about cached_has_bits being unused |
3465 | (void) cached_has_bits; |
3466 | |
3467 | // repeated float value = 1 [packed = true]; |
3468 | { |
3469 | unsigned int count = static_cast<unsigned int>(this->value_size()); |
3470 | size_t data_size = 4UL * count; |
3471 | if (data_size > 0) { |
3472 | total_size += 1 + |
3473 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
3474 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
3475 | } |
3476 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
3477 | _value_cached_byte_size_.store(cached_size, |
3478 | std::memory_order_relaxed); |
3479 | total_size += data_size; |
3480 | } |
3481 | |
3482 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3483 | SetCachedSize(cached_size); |
3484 | return total_size; |
3485 | } |
3486 | |
3487 | void CollectionDef_FloatList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3488 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.FloatList) |
3489 | GOOGLE_DCHECK_NE(&from, this); |
3490 | const CollectionDef_FloatList* source = |
3491 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef_FloatList>( |
3492 | &from); |
3493 | if (source == nullptr) { |
3494 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.FloatList) |
3495 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3496 | } else { |
3497 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.FloatList) |
3498 | MergeFrom(*source); |
3499 | } |
3500 | } |
3501 | |
3502 | void CollectionDef_FloatList::MergeFrom(const CollectionDef_FloatList& from) { |
3503 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.FloatList) |
3504 | GOOGLE_DCHECK_NE(&from, this); |
3505 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3506 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3507 | (void) cached_has_bits; |
3508 | |
3509 | value_.MergeFrom(from.value_); |
3510 | } |
3511 | |
3512 | void CollectionDef_FloatList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3513 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.FloatList) |
3514 | if (&from == this) return; |
3515 | Clear(); |
3516 | MergeFrom(from); |
3517 | } |
3518 | |
3519 | void CollectionDef_FloatList::CopyFrom(const CollectionDef_FloatList& from) { |
3520 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.FloatList) |
3521 | if (&from == this) return; |
3522 | Clear(); |
3523 | MergeFrom(from); |
3524 | } |
3525 | |
3526 | bool CollectionDef_FloatList::IsInitialized() const { |
3527 | return true; |
3528 | } |
3529 | |
3530 | void CollectionDef_FloatList::InternalSwap(CollectionDef_FloatList* other) { |
3531 | using std::swap; |
3532 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3533 | value_.InternalSwap(&other->value_); |
3534 | } |
3535 | |
3536 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef_FloatList::GetMetadata() const { |
3537 | return GetMetadataStatic(); |
3538 | } |
3539 | |
3540 | |
3541 | // =================================================================== |
3542 | |
3543 | void CollectionDef_AnyList::InitAsDefaultInstance() { |
3544 | } |
3545 | class CollectionDef_AnyList::_Internal { |
3546 | public: |
3547 | }; |
3548 | |
3549 | void CollectionDef_AnyList::clear_value() { |
3550 | value_.Clear(); |
3551 | } |
3552 | CollectionDef_AnyList::CollectionDef_AnyList() |
3553 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3554 | SharedCtor(); |
3555 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.AnyList) |
3556 | } |
3557 | CollectionDef_AnyList::CollectionDef_AnyList(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3558 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3559 | _internal_metadata_(arena), |
3560 | value_(arena) { |
3561 | SharedCtor(); |
3562 | RegisterArenaDtor(arena); |
3563 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.AnyList) |
3564 | } |
3565 | CollectionDef_AnyList::CollectionDef_AnyList(const CollectionDef_AnyList& from) |
3566 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3567 | _internal_metadata_(nullptr), |
3568 | value_(from.value_) { |
3569 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3570 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.AnyList) |
3571 | } |
3572 | |
3573 | void CollectionDef_AnyList::SharedCtor() { |
3574 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
3575 | } |
3576 | |
3577 | CollectionDef_AnyList::~CollectionDef_AnyList() { |
3578 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.AnyList) |
3579 | SharedDtor(); |
3580 | } |
3581 | |
3582 | void CollectionDef_AnyList::SharedDtor() { |
3583 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3584 | } |
3585 | |
3586 | void CollectionDef_AnyList::ArenaDtor(void* object) { |
3587 | CollectionDef_AnyList* _this = reinterpret_cast< CollectionDef_AnyList* >(object); |
3588 | (void)_this; |
3589 | } |
3590 | void CollectionDef_AnyList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
3591 | } |
3592 | void CollectionDef_AnyList::SetCachedSize(int size) const { |
3593 | _cached_size_.Set(size); |
3594 | } |
3595 | const CollectionDef_AnyList& CollectionDef_AnyList::default_instance() { |
3596 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_AnyList_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
3597 | return *internal_default_instance(); |
3598 | } |
3599 | |
3600 | |
3601 | void CollectionDef_AnyList::Clear() { |
3602 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.AnyList) |
3603 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3604 | // Prevent compiler warnings about cached_has_bits being unused |
3605 | (void) cached_has_bits; |
3606 | |
3607 | value_.Clear(); |
3608 | _internal_metadata_.Clear(); |
3609 | } |
3610 | |
3611 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3612 | const char* CollectionDef_AnyList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3613 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3614 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3615 | while (!ctx->Done(&ptr)) { |
3616 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3617 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3618 | CHK_(ptr); |
3619 | switch (tag >> 3) { |
3620 | // repeated .google.protobuf.Any value = 1; |
3621 | case 1: |
3622 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
3623 | ptr -= 1; |
3624 | do { |
3625 | ptr += 1; |
3626 | ptr = ctx->ParseMessage(add_value(), ptr); |
3627 | CHK_(ptr); |
3628 | if (!ctx->DataAvailable(ptr)) break; |
3629 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
3630 | } else goto handle_unusual; |
3631 | continue; |
3632 | default: { |
3633 | handle_unusual: |
3634 | if ((tag & 7) == 4 || tag == 0) { |
3635 | ctx->SetLastTag(tag); |
3636 | goto success; |
3637 | } |
3638 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3639 | CHK_(ptr != nullptr); |
3640 | continue; |
3641 | } |
3642 | } // switch |
3643 | } // while |
3644 | success: |
3645 | return ptr; |
3646 | failure: |
3647 | ptr = nullptr; |
3648 | goto success; |
3649 | #undef CHK_ |
3650 | } |
3651 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3652 | bool CollectionDef_AnyList::MergePartialFromCodedStream( |
3653 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3654 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3655 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3656 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.AnyList) |
3657 | for (;;) { |
3658 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3659 | tag = p.first; |
3660 | if (!p.second) goto handle_unusual; |
3661 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3662 | // repeated .google.protobuf.Any value = 1; |
3663 | case 1: { |
3664 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
3665 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
3666 | input, add_value())); |
3667 | } else { |
3668 | goto handle_unusual; |
3669 | } |
3670 | break; |
3671 | } |
3672 | |
3673 | default: { |
3674 | handle_unusual: |
3675 | if (tag == 0) { |
3676 | goto success; |
3677 | } |
3678 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3679 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3680 | break; |
3681 | } |
3682 | } |
3683 | } |
3684 | success: |
3685 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.AnyList) |
3686 | return true; |
3687 | failure: |
3688 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.AnyList) |
3689 | return false; |
3690 | #undef DO_ |
3691 | } |
3692 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3693 | |
3694 | void CollectionDef_AnyList::SerializeWithCachedSizes( |
3695 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3696 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.AnyList) |
3697 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3698 | (void) cached_has_bits; |
3699 | |
3700 | // repeated .google.protobuf.Any value = 1; |
3701 | for (unsigned int i = 0, |
3702 | n = static_cast<unsigned int>(this->value_size()); i < n; i++) { |
3703 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
3704 | 1, |
3705 | this->value(static_cast<int>(i)), |
3706 | output); |
3707 | } |
3708 | |
3709 | if (_internal_metadata_.have_unknown_fields()) { |
3710 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3711 | _internal_metadata_.unknown_fields(), output); |
3712 | } |
3713 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.AnyList) |
3714 | } |
3715 | |
3716 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef_AnyList::InternalSerializeWithCachedSizesToArray( |
3717 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3718 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.AnyList) |
3719 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3720 | (void) cached_has_bits; |
3721 | |
3722 | // repeated .google.protobuf.Any value = 1; |
3723 | for (unsigned int i = 0, |
3724 | n = static_cast<unsigned int>(this->value_size()); i < n; i++) { |
3725 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3726 | InternalWriteMessageToArray( |
3727 | 1, this->value(static_cast<int>(i)), target); |
3728 | } |
3729 | |
3730 | if (_internal_metadata_.have_unknown_fields()) { |
3731 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3732 | _internal_metadata_.unknown_fields(), target); |
3733 | } |
3734 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.AnyList) |
3735 | return target; |
3736 | } |
3737 | |
3738 | size_t CollectionDef_AnyList::ByteSizeLong() const { |
3739 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.AnyList) |
3740 | size_t total_size = 0; |
3741 | |
3742 | if (_internal_metadata_.have_unknown_fields()) { |
3743 | total_size += |
3744 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3745 | _internal_metadata_.unknown_fields()); |
3746 | } |
3747 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3748 | // Prevent compiler warnings about cached_has_bits being unused |
3749 | (void) cached_has_bits; |
3750 | |
3751 | // repeated .google.protobuf.Any value = 1; |
3752 | { |
3753 | unsigned int count = static_cast<unsigned int>(this->value_size()); |
3754 | total_size += 1UL * count; |
3755 | for (unsigned int i = 0; i < count; i++) { |
3756 | total_size += |
3757 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3758 | this->value(static_cast<int>(i))); |
3759 | } |
3760 | } |
3761 | |
3762 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3763 | SetCachedSize(cached_size); |
3764 | return total_size; |
3765 | } |
3766 | |
3767 | void CollectionDef_AnyList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3768 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.AnyList) |
3769 | GOOGLE_DCHECK_NE(&from, this); |
3770 | const CollectionDef_AnyList* source = |
3771 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef_AnyList>( |
3772 | &from); |
3773 | if (source == nullptr) { |
3774 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.AnyList) |
3775 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3776 | } else { |
3777 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.AnyList) |
3778 | MergeFrom(*source); |
3779 | } |
3780 | } |
3781 | |
3782 | void CollectionDef_AnyList::MergeFrom(const CollectionDef_AnyList& from) { |
3783 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.AnyList) |
3784 | GOOGLE_DCHECK_NE(&from, this); |
3785 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3786 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3787 | (void) cached_has_bits; |
3788 | |
3789 | value_.MergeFrom(from.value_); |
3790 | } |
3791 | |
3792 | void CollectionDef_AnyList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3793 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.AnyList) |
3794 | if (&from == this) return; |
3795 | Clear(); |
3796 | MergeFrom(from); |
3797 | } |
3798 | |
3799 | void CollectionDef_AnyList::CopyFrom(const CollectionDef_AnyList& from) { |
3800 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.AnyList) |
3801 | if (&from == this) return; |
3802 | Clear(); |
3803 | MergeFrom(from); |
3804 | } |
3805 | |
3806 | bool CollectionDef_AnyList::IsInitialized() const { |
3807 | return true; |
3808 | } |
3809 | |
3810 | void CollectionDef_AnyList::InternalSwap(CollectionDef_AnyList* other) { |
3811 | using std::swap; |
3812 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3813 | CastToBase(&value_)->InternalSwap(CastToBase(&other->value_)); |
3814 | } |
3815 | |
3816 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef_AnyList::GetMetadata() const { |
3817 | return GetMetadataStatic(); |
3818 | } |
3819 | |
3820 | |
3821 | // =================================================================== |
3822 | |
3823 | void CollectionDef::InitAsDefaultInstance() { |
3824 | ::tensorflow::_CollectionDef_default_instance_.node_list_ = const_cast< ::tensorflow::CollectionDef_NodeList*>( |
3825 | ::tensorflow::CollectionDef_NodeList::internal_default_instance()); |
3826 | ::tensorflow::_CollectionDef_default_instance_.bytes_list_ = const_cast< ::tensorflow::CollectionDef_BytesList*>( |
3827 | ::tensorflow::CollectionDef_BytesList::internal_default_instance()); |
3828 | ::tensorflow::_CollectionDef_default_instance_.int64_list_ = const_cast< ::tensorflow::CollectionDef_Int64List*>( |
3829 | ::tensorflow::CollectionDef_Int64List::internal_default_instance()); |
3830 | ::tensorflow::_CollectionDef_default_instance_.float_list_ = const_cast< ::tensorflow::CollectionDef_FloatList*>( |
3831 | ::tensorflow::CollectionDef_FloatList::internal_default_instance()); |
3832 | ::tensorflow::_CollectionDef_default_instance_.any_list_ = const_cast< ::tensorflow::CollectionDef_AnyList*>( |
3833 | ::tensorflow::CollectionDef_AnyList::internal_default_instance()); |
3834 | } |
3835 | class CollectionDef::_Internal { |
3836 | public: |
3837 | static const ::tensorflow::CollectionDef_NodeList& node_list(const CollectionDef* msg); |
3838 | static const ::tensorflow::CollectionDef_BytesList& bytes_list(const CollectionDef* msg); |
3839 | static const ::tensorflow::CollectionDef_Int64List& int64_list(const CollectionDef* msg); |
3840 | static const ::tensorflow::CollectionDef_FloatList& float_list(const CollectionDef* msg); |
3841 | static const ::tensorflow::CollectionDef_AnyList& any_list(const CollectionDef* msg); |
3842 | }; |
3843 | |
3844 | const ::tensorflow::CollectionDef_NodeList& |
3845 | CollectionDef::_Internal::node_list(const CollectionDef* msg) { |
3846 | return *msg->kind_.node_list_; |
3847 | } |
3848 | const ::tensorflow::CollectionDef_BytesList& |
3849 | CollectionDef::_Internal::bytes_list(const CollectionDef* msg) { |
3850 | return *msg->kind_.bytes_list_; |
3851 | } |
3852 | const ::tensorflow::CollectionDef_Int64List& |
3853 | CollectionDef::_Internal::int64_list(const CollectionDef* msg) { |
3854 | return *msg->kind_.int64_list_; |
3855 | } |
3856 | const ::tensorflow::CollectionDef_FloatList& |
3857 | CollectionDef::_Internal::float_list(const CollectionDef* msg) { |
3858 | return *msg->kind_.float_list_; |
3859 | } |
3860 | const ::tensorflow::CollectionDef_AnyList& |
3861 | CollectionDef::_Internal::any_list(const CollectionDef* msg) { |
3862 | return *msg->kind_.any_list_; |
3863 | } |
3864 | void CollectionDef::set_allocated_node_list(::tensorflow::CollectionDef_NodeList* node_list) { |
3865 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3866 | clear_kind(); |
3867 | if (node_list) { |
3868 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3869 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(node_list); |
3870 | if (message_arena != submessage_arena) { |
3871 | node_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3872 | message_arena, node_list, submessage_arena); |
3873 | } |
3874 | set_has_node_list(); |
3875 | kind_.node_list_ = node_list; |
3876 | } |
3877 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.node_list) |
3878 | } |
3879 | void CollectionDef::set_allocated_bytes_list(::tensorflow::CollectionDef_BytesList* bytes_list) { |
3880 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3881 | clear_kind(); |
3882 | if (bytes_list) { |
3883 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3884 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(bytes_list); |
3885 | if (message_arena != submessage_arena) { |
3886 | bytes_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3887 | message_arena, bytes_list, submessage_arena); |
3888 | } |
3889 | set_has_bytes_list(); |
3890 | kind_.bytes_list_ = bytes_list; |
3891 | } |
3892 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.bytes_list) |
3893 | } |
3894 | void CollectionDef::set_allocated_int64_list(::tensorflow::CollectionDef_Int64List* int64_list) { |
3895 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3896 | clear_kind(); |
3897 | if (int64_list) { |
3898 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3899 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(int64_list); |
3900 | if (message_arena != submessage_arena) { |
3901 | int64_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3902 | message_arena, int64_list, submessage_arena); |
3903 | } |
3904 | set_has_int64_list(); |
3905 | kind_.int64_list_ = int64_list; |
3906 | } |
3907 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.int64_list) |
3908 | } |
3909 | void CollectionDef::set_allocated_float_list(::tensorflow::CollectionDef_FloatList* float_list) { |
3910 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3911 | clear_kind(); |
3912 | if (float_list) { |
3913 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3914 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(float_list); |
3915 | if (message_arena != submessage_arena) { |
3916 | float_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3917 | message_arena, float_list, submessage_arena); |
3918 | } |
3919 | set_has_float_list(); |
3920 | kind_.float_list_ = float_list; |
3921 | } |
3922 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.float_list) |
3923 | } |
3924 | void CollectionDef::set_allocated_any_list(::tensorflow::CollectionDef_AnyList* any_list) { |
3925 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3926 | clear_kind(); |
3927 | if (any_list) { |
3928 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3929 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(any_list); |
3930 | if (message_arena != submessage_arena) { |
3931 | any_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3932 | message_arena, any_list, submessage_arena); |
3933 | } |
3934 | set_has_any_list(); |
3935 | kind_.any_list_ = any_list; |
3936 | } |
3937 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.any_list) |
3938 | } |
3939 | CollectionDef::CollectionDef() |
3940 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3941 | SharedCtor(); |
3942 | // @@protoc_insertion_point(constructor:tensorflow.CollectionDef) |
3943 | } |
3944 | CollectionDef::CollectionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3945 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3946 | _internal_metadata_(arena) { |
3947 | SharedCtor(); |
3948 | RegisterArenaDtor(arena); |
3949 | // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef) |
3950 | } |
3951 | CollectionDef::CollectionDef(const CollectionDef& from) |
3952 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3953 | _internal_metadata_(nullptr) { |
3954 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3955 | clear_has_kind(); |
3956 | switch (from.kind_case()) { |
3957 | case kNodeList: { |
3958 | mutable_node_list()->::tensorflow::CollectionDef_NodeList::MergeFrom(from.node_list()); |
3959 | break; |
3960 | } |
3961 | case kBytesList: { |
3962 | mutable_bytes_list()->::tensorflow::CollectionDef_BytesList::MergeFrom(from.bytes_list()); |
3963 | break; |
3964 | } |
3965 | case kInt64List: { |
3966 | mutable_int64_list()->::tensorflow::CollectionDef_Int64List::MergeFrom(from.int64_list()); |
3967 | break; |
3968 | } |
3969 | case kFloatList: { |
3970 | mutable_float_list()->::tensorflow::CollectionDef_FloatList::MergeFrom(from.float_list()); |
3971 | break; |
3972 | } |
3973 | case kAnyList: { |
3974 | mutable_any_list()->::tensorflow::CollectionDef_AnyList::MergeFrom(from.any_list()); |
3975 | break; |
3976 | } |
3977 | case KIND_NOT_SET: { |
3978 | break; |
3979 | } |
3980 | } |
3981 | // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef) |
3982 | } |
3983 | |
3984 | void CollectionDef::SharedCtor() { |
3985 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
3986 | clear_has_kind(); |
3987 | } |
3988 | |
3989 | CollectionDef::~CollectionDef() { |
3990 | // @@protoc_insertion_point(destructor:tensorflow.CollectionDef) |
3991 | SharedDtor(); |
3992 | } |
3993 | |
3994 | void CollectionDef::SharedDtor() { |
3995 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3996 | if (has_kind()) { |
3997 | clear_kind(); |
3998 | } |
3999 | } |
4000 | |
4001 | void CollectionDef::ArenaDtor(void* object) { |
4002 | CollectionDef* _this = reinterpret_cast< CollectionDef* >(object); |
4003 | (void)_this; |
4004 | } |
4005 | void CollectionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4006 | } |
4007 | void CollectionDef::SetCachedSize(int size) const { |
4008 | _cached_size_.Set(size); |
4009 | } |
4010 | const CollectionDef& CollectionDef::default_instance() { |
4011 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
4012 | return *internal_default_instance(); |
4013 | } |
4014 | |
4015 | |
4016 | void CollectionDef::clear_kind() { |
4017 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.CollectionDef) |
4018 | switch (kind_case()) { |
4019 | case kNodeList: { |
4020 | if (GetArenaNoVirtual() == nullptr) { |
4021 | delete kind_.node_list_; |
4022 | } |
4023 | break; |
4024 | } |
4025 | case kBytesList: { |
4026 | if (GetArenaNoVirtual() == nullptr) { |
4027 | delete kind_.bytes_list_; |
4028 | } |
4029 | break; |
4030 | } |
4031 | case kInt64List: { |
4032 | if (GetArenaNoVirtual() == nullptr) { |
4033 | delete kind_.int64_list_; |
4034 | } |
4035 | break; |
4036 | } |
4037 | case kFloatList: { |
4038 | if (GetArenaNoVirtual() == nullptr) { |
4039 | delete kind_.float_list_; |
4040 | } |
4041 | break; |
4042 | } |
4043 | case kAnyList: { |
4044 | if (GetArenaNoVirtual() == nullptr) { |
4045 | delete kind_.any_list_; |
4046 | } |
4047 | break; |
4048 | } |
4049 | case KIND_NOT_SET: { |
4050 | break; |
4051 | } |
4052 | } |
4053 | _oneof_case_[0] = KIND_NOT_SET; |
4054 | } |
4055 | |
4056 | |
4057 | void CollectionDef::Clear() { |
4058 | // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef) |
4059 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4060 | // Prevent compiler warnings about cached_has_bits being unused |
4061 | (void) cached_has_bits; |
4062 | |
4063 | clear_kind(); |
4064 | _internal_metadata_.Clear(); |
4065 | } |
4066 | |
4067 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4068 | const char* CollectionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4069 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4070 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4071 | while (!ctx->Done(&ptr)) { |
4072 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4073 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4074 | CHK_(ptr); |
4075 | switch (tag >> 3) { |
4076 | // .tensorflow.CollectionDef.NodeList node_list = 1; |
4077 | case 1: |
4078 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4079 | ptr = ctx->ParseMessage(mutable_node_list(), ptr); |
4080 | CHK_(ptr); |
4081 | } else goto handle_unusual; |
4082 | continue; |
4083 | // .tensorflow.CollectionDef.BytesList bytes_list = 2; |
4084 | case 2: |
4085 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
4086 | ptr = ctx->ParseMessage(mutable_bytes_list(), ptr); |
4087 | CHK_(ptr); |
4088 | } else goto handle_unusual; |
4089 | continue; |
4090 | // .tensorflow.CollectionDef.Int64List int64_list = 3; |
4091 | case 3: |
4092 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
4093 | ptr = ctx->ParseMessage(mutable_int64_list(), ptr); |
4094 | CHK_(ptr); |
4095 | } else goto handle_unusual; |
4096 | continue; |
4097 | // .tensorflow.CollectionDef.FloatList float_list = 4; |
4098 | case 4: |
4099 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
4100 | ptr = ctx->ParseMessage(mutable_float_list(), ptr); |
4101 | CHK_(ptr); |
4102 | } else goto handle_unusual; |
4103 | continue; |
4104 | // .tensorflow.CollectionDef.AnyList any_list = 5; |
4105 | case 5: |
4106 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
4107 | ptr = ctx->ParseMessage(mutable_any_list(), ptr); |
4108 | CHK_(ptr); |
4109 | } else goto handle_unusual; |
4110 | continue; |
4111 | default: { |
4112 | handle_unusual: |
4113 | if ((tag & 7) == 4 || tag == 0) { |
4114 | ctx->SetLastTag(tag); |
4115 | goto success; |
4116 | } |
4117 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4118 | CHK_(ptr != nullptr); |
4119 | continue; |
4120 | } |
4121 | } // switch |
4122 | } // while |
4123 | success: |
4124 | return ptr; |
4125 | failure: |
4126 | ptr = nullptr; |
4127 | goto success; |
4128 | #undef CHK_ |
4129 | } |
4130 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4131 | bool CollectionDef::MergePartialFromCodedStream( |
4132 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4133 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4134 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4135 | // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef) |
4136 | for (;;) { |
4137 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4138 | tag = p.first; |
4139 | if (!p.second) goto handle_unusual; |
4140 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4141 | // .tensorflow.CollectionDef.NodeList node_list = 1; |
4142 | case 1: { |
4143 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
4144 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4145 | input, mutable_node_list())); |
4146 | } else { |
4147 | goto handle_unusual; |
4148 | } |
4149 | break; |
4150 | } |
4151 | |
4152 | // .tensorflow.CollectionDef.BytesList bytes_list = 2; |
4153 | case 2: { |
4154 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
4155 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4156 | input, mutable_bytes_list())); |
4157 | } else { |
4158 | goto handle_unusual; |
4159 | } |
4160 | break; |
4161 | } |
4162 | |
4163 | // .tensorflow.CollectionDef.Int64List int64_list = 3; |
4164 | case 3: { |
4165 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
4166 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4167 | input, mutable_int64_list())); |
4168 | } else { |
4169 | goto handle_unusual; |
4170 | } |
4171 | break; |
4172 | } |
4173 | |
4174 | // .tensorflow.CollectionDef.FloatList float_list = 4; |
4175 | case 4: { |
4176 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
4177 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4178 | input, mutable_float_list())); |
4179 | } else { |
4180 | goto handle_unusual; |
4181 | } |
4182 | break; |
4183 | } |
4184 | |
4185 | // .tensorflow.CollectionDef.AnyList any_list = 5; |
4186 | case 5: { |
4187 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
4188 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
4189 | input, mutable_any_list())); |
4190 | } else { |
4191 | goto handle_unusual; |
4192 | } |
4193 | break; |
4194 | } |
4195 | |
4196 | default: { |
4197 | handle_unusual: |
4198 | if (tag == 0) { |
4199 | goto success; |
4200 | } |
4201 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4202 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4203 | break; |
4204 | } |
4205 | } |
4206 | } |
4207 | success: |
4208 | // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef) |
4209 | return true; |
4210 | failure: |
4211 | // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef) |
4212 | return false; |
4213 | #undef DO_ |
4214 | } |
4215 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4216 | |
4217 | void CollectionDef::SerializeWithCachedSizes( |
4218 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4219 | // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef) |
4220 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4221 | (void) cached_has_bits; |
4222 | |
4223 | // .tensorflow.CollectionDef.NodeList node_list = 1; |
4224 | if (has_node_list()) { |
4225 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4226 | 1, _Internal::node_list(this), output); |
4227 | } |
4228 | |
4229 | // .tensorflow.CollectionDef.BytesList bytes_list = 2; |
4230 | if (has_bytes_list()) { |
4231 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4232 | 2, _Internal::bytes_list(this), output); |
4233 | } |
4234 | |
4235 | // .tensorflow.CollectionDef.Int64List int64_list = 3; |
4236 | if (has_int64_list()) { |
4237 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4238 | 3, _Internal::int64_list(this), output); |
4239 | } |
4240 | |
4241 | // .tensorflow.CollectionDef.FloatList float_list = 4; |
4242 | if (has_float_list()) { |
4243 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4244 | 4, _Internal::float_list(this), output); |
4245 | } |
4246 | |
4247 | // .tensorflow.CollectionDef.AnyList any_list = 5; |
4248 | if (has_any_list()) { |
4249 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
4250 | 5, _Internal::any_list(this), output); |
4251 | } |
4252 | |
4253 | if (_internal_metadata_.have_unknown_fields()) { |
4254 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4255 | _internal_metadata_.unknown_fields(), output); |
4256 | } |
4257 | // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef) |
4258 | } |
4259 | |
4260 | ::PROTOBUF_NAMESPACE_ID::uint8* CollectionDef::InternalSerializeWithCachedSizesToArray( |
4261 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4262 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef) |
4263 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4264 | (void) cached_has_bits; |
4265 | |
4266 | // .tensorflow.CollectionDef.NodeList node_list = 1; |
4267 | if (has_node_list()) { |
4268 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4269 | InternalWriteMessageToArray( |
4270 | 1, _Internal::node_list(this), target); |
4271 | } |
4272 | |
4273 | // .tensorflow.CollectionDef.BytesList bytes_list = 2; |
4274 | if (has_bytes_list()) { |
4275 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4276 | InternalWriteMessageToArray( |
4277 | 2, _Internal::bytes_list(this), target); |
4278 | } |
4279 | |
4280 | // .tensorflow.CollectionDef.Int64List int64_list = 3; |
4281 | if (has_int64_list()) { |
4282 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4283 | InternalWriteMessageToArray( |
4284 | 3, _Internal::int64_list(this), target); |
4285 | } |
4286 | |
4287 | // .tensorflow.CollectionDef.FloatList float_list = 4; |
4288 | if (has_float_list()) { |
4289 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4290 | InternalWriteMessageToArray( |
4291 | 4, _Internal::float_list(this), target); |
4292 | } |
4293 | |
4294 | // .tensorflow.CollectionDef.AnyList any_list = 5; |
4295 | if (has_any_list()) { |
4296 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4297 | InternalWriteMessageToArray( |
4298 | 5, _Internal::any_list(this), target); |
4299 | } |
4300 | |
4301 | if (_internal_metadata_.have_unknown_fields()) { |
4302 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4303 | _internal_metadata_.unknown_fields(), target); |
4304 | } |
4305 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef) |
4306 | return target; |
4307 | } |
4308 | |
4309 | size_t CollectionDef::ByteSizeLong() const { |
4310 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef) |
4311 | size_t total_size = 0; |
4312 | |
4313 | if (_internal_metadata_.have_unknown_fields()) { |
4314 | total_size += |
4315 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4316 | _internal_metadata_.unknown_fields()); |
4317 | } |
4318 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4319 | // Prevent compiler warnings about cached_has_bits being unused |
4320 | (void) cached_has_bits; |
4321 | |
4322 | switch (kind_case()) { |
4323 | // .tensorflow.CollectionDef.NodeList node_list = 1; |
4324 | case kNodeList: { |
4325 | total_size += 1 + |
4326 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4327 | *kind_.node_list_); |
4328 | break; |
4329 | } |
4330 | // .tensorflow.CollectionDef.BytesList bytes_list = 2; |
4331 | case kBytesList: { |
4332 | total_size += 1 + |
4333 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4334 | *kind_.bytes_list_); |
4335 | break; |
4336 | } |
4337 | // .tensorflow.CollectionDef.Int64List int64_list = 3; |
4338 | case kInt64List: { |
4339 | total_size += 1 + |
4340 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4341 | *kind_.int64_list_); |
4342 | break; |
4343 | } |
4344 | // .tensorflow.CollectionDef.FloatList float_list = 4; |
4345 | case kFloatList: { |
4346 | total_size += 1 + |
4347 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4348 | *kind_.float_list_); |
4349 | break; |
4350 | } |
4351 | // .tensorflow.CollectionDef.AnyList any_list = 5; |
4352 | case kAnyList: { |
4353 | total_size += 1 + |
4354 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4355 | *kind_.any_list_); |
4356 | break; |
4357 | } |
4358 | case KIND_NOT_SET: { |
4359 | break; |
4360 | } |
4361 | } |
4362 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4363 | SetCachedSize(cached_size); |
4364 | return total_size; |
4365 | } |
4366 | |
4367 | void CollectionDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4368 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef) |
4369 | GOOGLE_DCHECK_NE(&from, this); |
4370 | const CollectionDef* source = |
4371 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDef>( |
4372 | &from); |
4373 | if (source == nullptr) { |
4374 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef) |
4375 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4376 | } else { |
4377 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef) |
4378 | MergeFrom(*source); |
4379 | } |
4380 | } |
4381 | |
4382 | void CollectionDef::MergeFrom(const CollectionDef& from) { |
4383 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef) |
4384 | GOOGLE_DCHECK_NE(&from, this); |
4385 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4386 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4387 | (void) cached_has_bits; |
4388 | |
4389 | switch (from.kind_case()) { |
4390 | case kNodeList: { |
4391 | mutable_node_list()->::tensorflow::CollectionDef_NodeList::MergeFrom(from.node_list()); |
4392 | break; |
4393 | } |
4394 | case kBytesList: { |
4395 | mutable_bytes_list()->::tensorflow::CollectionDef_BytesList::MergeFrom(from.bytes_list()); |
4396 | break; |
4397 | } |
4398 | case kInt64List: { |
4399 | mutable_int64_list()->::tensorflow::CollectionDef_Int64List::MergeFrom(from.int64_list()); |
4400 | break; |
4401 | } |
4402 | case kFloatList: { |
4403 | mutable_float_list()->::tensorflow::CollectionDef_FloatList::MergeFrom(from.float_list()); |
4404 | break; |
4405 | } |
4406 | case kAnyList: { |
4407 | mutable_any_list()->::tensorflow::CollectionDef_AnyList::MergeFrom(from.any_list()); |
4408 | break; |
4409 | } |
4410 | case KIND_NOT_SET: { |
4411 | break; |
4412 | } |
4413 | } |
4414 | } |
4415 | |
4416 | void CollectionDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4417 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef) |
4418 | if (&from == this) return; |
4419 | Clear(); |
4420 | MergeFrom(from); |
4421 | } |
4422 | |
4423 | void CollectionDef::CopyFrom(const CollectionDef& from) { |
4424 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef) |
4425 | if (&from == this) return; |
4426 | Clear(); |
4427 | MergeFrom(from); |
4428 | } |
4429 | |
4430 | bool CollectionDef::IsInitialized() const { |
4431 | return true; |
4432 | } |
4433 | |
4434 | void CollectionDef::InternalSwap(CollectionDef* other) { |
4435 | using std::swap; |
4436 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4437 | swap(kind_, other->kind_); |
4438 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
4439 | } |
4440 | |
4441 | ::PROTOBUF_NAMESPACE_ID::Metadata CollectionDef::GetMetadata() const { |
4442 | return GetMetadataStatic(); |
4443 | } |
4444 | |
4445 | |
4446 | // =================================================================== |
4447 | |
4448 | void TensorInfo_CooSparse::InitAsDefaultInstance() { |
4449 | } |
4450 | class TensorInfo_CooSparse::_Internal { |
4451 | public: |
4452 | }; |
4453 | |
4454 | TensorInfo_CooSparse::TensorInfo_CooSparse() |
4455 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4456 | SharedCtor(); |
4457 | // @@protoc_insertion_point(constructor:tensorflow.TensorInfo.CooSparse) |
4458 | } |
4459 | TensorInfo_CooSparse::TensorInfo_CooSparse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
4460 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4461 | _internal_metadata_(arena) { |
4462 | SharedCtor(); |
4463 | RegisterArenaDtor(arena); |
4464 | // @@protoc_insertion_point(arena_constructor:tensorflow.TensorInfo.CooSparse) |
4465 | } |
4466 | TensorInfo_CooSparse::TensorInfo_CooSparse(const TensorInfo_CooSparse& from) |
4467 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4468 | _internal_metadata_(nullptr) { |
4469 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4470 | values_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4471 | if (!from.values_tensor_name().empty()) { |
4472 | values_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.values_tensor_name(), |
4473 | GetArenaNoVirtual()); |
4474 | } |
4475 | indices_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4476 | if (!from.indices_tensor_name().empty()) { |
4477 | indices_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.indices_tensor_name(), |
4478 | GetArenaNoVirtual()); |
4479 | } |
4480 | dense_shape_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4481 | if (!from.dense_shape_tensor_name().empty()) { |
4482 | dense_shape_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dense_shape_tensor_name(), |
4483 | GetArenaNoVirtual()); |
4484 | } |
4485 | // @@protoc_insertion_point(copy_constructor:tensorflow.TensorInfo.CooSparse) |
4486 | } |
4487 | |
4488 | void TensorInfo_CooSparse::SharedCtor() { |
4489 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
4490 | values_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4491 | indices_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4492 | dense_shape_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4493 | } |
4494 | |
4495 | TensorInfo_CooSparse::~TensorInfo_CooSparse() { |
4496 | // @@protoc_insertion_point(destructor:tensorflow.TensorInfo.CooSparse) |
4497 | SharedDtor(); |
4498 | } |
4499 | |
4500 | void TensorInfo_CooSparse::SharedDtor() { |
4501 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
4502 | values_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4503 | indices_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4504 | dense_shape_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4505 | } |
4506 | |
4507 | void TensorInfo_CooSparse::ArenaDtor(void* object) { |
4508 | TensorInfo_CooSparse* _this = reinterpret_cast< TensorInfo_CooSparse* >(object); |
4509 | (void)_this; |
4510 | } |
4511 | void TensorInfo_CooSparse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4512 | } |
4513 | void TensorInfo_CooSparse::SetCachedSize(int size) const { |
4514 | _cached_size_.Set(size); |
4515 | } |
4516 | const TensorInfo_CooSparse& TensorInfo_CooSparse::default_instance() { |
4517 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TensorInfo_CooSparse_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
4518 | return *internal_default_instance(); |
4519 | } |
4520 | |
4521 | |
4522 | void TensorInfo_CooSparse::Clear() { |
4523 | // @@protoc_insertion_point(message_clear_start:tensorflow.TensorInfo.CooSparse) |
4524 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4525 | // Prevent compiler warnings about cached_has_bits being unused |
4526 | (void) cached_has_bits; |
4527 | |
4528 | values_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4529 | indices_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4530 | dense_shape_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4531 | _internal_metadata_.Clear(); |
4532 | } |
4533 | |
4534 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4535 | const char* TensorInfo_CooSparse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4536 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4537 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4538 | while (!ctx->Done(&ptr)) { |
4539 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4540 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4541 | CHK_(ptr); |
4542 | switch (tag >> 3) { |
4543 | // string values_tensor_name = 1; |
4544 | case 1: |
4545 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4546 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_values_tensor_name(), ptr, ctx, "tensorflow.TensorInfo.CooSparse.values_tensor_name" ); |
4547 | CHK_(ptr); |
4548 | } else goto handle_unusual; |
4549 | continue; |
4550 | // string indices_tensor_name = 2; |
4551 | case 2: |
4552 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
4553 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_indices_tensor_name(), ptr, ctx, "tensorflow.TensorInfo.CooSparse.indices_tensor_name" ); |
4554 | CHK_(ptr); |
4555 | } else goto handle_unusual; |
4556 | continue; |
4557 | // string dense_shape_tensor_name = 3; |
4558 | case 3: |
4559 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
4560 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dense_shape_tensor_name(), ptr, ctx, "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name" ); |
4561 | CHK_(ptr); |
4562 | } else goto handle_unusual; |
4563 | continue; |
4564 | default: { |
4565 | handle_unusual: |
4566 | if ((tag & 7) == 4 || tag == 0) { |
4567 | ctx->SetLastTag(tag); |
4568 | goto success; |
4569 | } |
4570 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4571 | CHK_(ptr != nullptr); |
4572 | continue; |
4573 | } |
4574 | } // switch |
4575 | } // while |
4576 | success: |
4577 | return ptr; |
4578 | failure: |
4579 | ptr = nullptr; |
4580 | goto success; |
4581 | #undef CHK_ |
4582 | } |
4583 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4584 | bool TensorInfo_CooSparse::MergePartialFromCodedStream( |
4585 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4586 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4587 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4588 | // @@protoc_insertion_point(parse_start:tensorflow.TensorInfo.CooSparse) |
4589 | for (;;) { |
4590 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4591 | tag = p.first; |
4592 | if (!p.second) goto handle_unusual; |
4593 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4594 | // string values_tensor_name = 1; |
4595 | case 1: { |
4596 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
4597 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4598 | input, this->mutable_values_tensor_name())); |
4599 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4600 | this->values_tensor_name().data(), static_cast<int>(this->values_tensor_name().length()), |
4601 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4602 | "tensorflow.TensorInfo.CooSparse.values_tensor_name" )); |
4603 | } else { |
4604 | goto handle_unusual; |
4605 | } |
4606 | break; |
4607 | } |
4608 | |
4609 | // string indices_tensor_name = 2; |
4610 | case 2: { |
4611 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
4612 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4613 | input, this->mutable_indices_tensor_name())); |
4614 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4615 | this->indices_tensor_name().data(), static_cast<int>(this->indices_tensor_name().length()), |
4616 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4617 | "tensorflow.TensorInfo.CooSparse.indices_tensor_name" )); |
4618 | } else { |
4619 | goto handle_unusual; |
4620 | } |
4621 | break; |
4622 | } |
4623 | |
4624 | // string dense_shape_tensor_name = 3; |
4625 | case 3: { |
4626 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
4627 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4628 | input, this->mutable_dense_shape_tensor_name())); |
4629 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4630 | this->dense_shape_tensor_name().data(), static_cast<int>(this->dense_shape_tensor_name().length()), |
4631 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4632 | "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name" )); |
4633 | } else { |
4634 | goto handle_unusual; |
4635 | } |
4636 | break; |
4637 | } |
4638 | |
4639 | default: { |
4640 | handle_unusual: |
4641 | if (tag == 0) { |
4642 | goto success; |
4643 | } |
4644 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4645 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4646 | break; |
4647 | } |
4648 | } |
4649 | } |
4650 | success: |
4651 | // @@protoc_insertion_point(parse_success:tensorflow.TensorInfo.CooSparse) |
4652 | return true; |
4653 | failure: |
4654 | // @@protoc_insertion_point(parse_failure:tensorflow.TensorInfo.CooSparse) |
4655 | return false; |
4656 | #undef DO_ |
4657 | } |
4658 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4659 | |
4660 | void TensorInfo_CooSparse::SerializeWithCachedSizes( |
4661 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4662 | // @@protoc_insertion_point(serialize_start:tensorflow.TensorInfo.CooSparse) |
4663 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4664 | (void) cached_has_bits; |
4665 | |
4666 | // string values_tensor_name = 1; |
4667 | if (this->values_tensor_name().size() > 0) { |
4668 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4669 | this->values_tensor_name().data(), static_cast<int>(this->values_tensor_name().length()), |
4670 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4671 | "tensorflow.TensorInfo.CooSparse.values_tensor_name" ); |
4672 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4673 | 1, this->values_tensor_name(), output); |
4674 | } |
4675 | |
4676 | // string indices_tensor_name = 2; |
4677 | if (this->indices_tensor_name().size() > 0) { |
4678 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4679 | this->indices_tensor_name().data(), static_cast<int>(this->indices_tensor_name().length()), |
4680 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4681 | "tensorflow.TensorInfo.CooSparse.indices_tensor_name" ); |
4682 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4683 | 2, this->indices_tensor_name(), output); |
4684 | } |
4685 | |
4686 | // string dense_shape_tensor_name = 3; |
4687 | if (this->dense_shape_tensor_name().size() > 0) { |
4688 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4689 | this->dense_shape_tensor_name().data(), static_cast<int>(this->dense_shape_tensor_name().length()), |
4690 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4691 | "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name" ); |
4692 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4693 | 3, this->dense_shape_tensor_name(), output); |
4694 | } |
4695 | |
4696 | if (_internal_metadata_.have_unknown_fields()) { |
4697 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4698 | _internal_metadata_.unknown_fields(), output); |
4699 | } |
4700 | // @@protoc_insertion_point(serialize_end:tensorflow.TensorInfo.CooSparse) |
4701 | } |
4702 | |
4703 | ::PROTOBUF_NAMESPACE_ID::uint8* TensorInfo_CooSparse::InternalSerializeWithCachedSizesToArray( |
4704 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4705 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorInfo.CooSparse) |
4706 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4707 | (void) cached_has_bits; |
4708 | |
4709 | // string values_tensor_name = 1; |
4710 | if (this->values_tensor_name().size() > 0) { |
4711 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4712 | this->values_tensor_name().data(), static_cast<int>(this->values_tensor_name().length()), |
4713 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4714 | "tensorflow.TensorInfo.CooSparse.values_tensor_name" ); |
4715 | target = |
4716 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4717 | 1, this->values_tensor_name(), target); |
4718 | } |
4719 | |
4720 | // string indices_tensor_name = 2; |
4721 | if (this->indices_tensor_name().size() > 0) { |
4722 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4723 | this->indices_tensor_name().data(), static_cast<int>(this->indices_tensor_name().length()), |
4724 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4725 | "tensorflow.TensorInfo.CooSparse.indices_tensor_name" ); |
4726 | target = |
4727 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4728 | 2, this->indices_tensor_name(), target); |
4729 | } |
4730 | |
4731 | // string dense_shape_tensor_name = 3; |
4732 | if (this->dense_shape_tensor_name().size() > 0) { |
4733 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4734 | this->dense_shape_tensor_name().data(), static_cast<int>(this->dense_shape_tensor_name().length()), |
4735 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4736 | "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name" ); |
4737 | target = |
4738 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4739 | 3, this->dense_shape_tensor_name(), target); |
4740 | } |
4741 | |
4742 | if (_internal_metadata_.have_unknown_fields()) { |
4743 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4744 | _internal_metadata_.unknown_fields(), target); |
4745 | } |
4746 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorInfo.CooSparse) |
4747 | return target; |
4748 | } |
4749 | |
4750 | size_t TensorInfo_CooSparse::ByteSizeLong() const { |
4751 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorInfo.CooSparse) |
4752 | size_t total_size = 0; |
4753 | |
4754 | if (_internal_metadata_.have_unknown_fields()) { |
4755 | total_size += |
4756 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4757 | _internal_metadata_.unknown_fields()); |
4758 | } |
4759 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4760 | // Prevent compiler warnings about cached_has_bits being unused |
4761 | (void) cached_has_bits; |
4762 | |
4763 | // string values_tensor_name = 1; |
4764 | if (this->values_tensor_name().size() > 0) { |
4765 | total_size += 1 + |
4766 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4767 | this->values_tensor_name()); |
4768 | } |
4769 | |
4770 | // string indices_tensor_name = 2; |
4771 | if (this->indices_tensor_name().size() > 0) { |
4772 | total_size += 1 + |
4773 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4774 | this->indices_tensor_name()); |
4775 | } |
4776 | |
4777 | // string dense_shape_tensor_name = 3; |
4778 | if (this->dense_shape_tensor_name().size() > 0) { |
4779 | total_size += 1 + |
4780 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4781 | this->dense_shape_tensor_name()); |
4782 | } |
4783 | |
4784 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4785 | SetCachedSize(cached_size); |
4786 | return total_size; |
4787 | } |
4788 | |
4789 | void TensorInfo_CooSparse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4790 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorInfo.CooSparse) |
4791 | GOOGLE_DCHECK_NE(&from, this); |
4792 | const TensorInfo_CooSparse* source = |
4793 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TensorInfo_CooSparse>( |
4794 | &from); |
4795 | if (source == nullptr) { |
4796 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorInfo.CooSparse) |
4797 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4798 | } else { |
4799 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorInfo.CooSparse) |
4800 | MergeFrom(*source); |
4801 | } |
4802 | } |
4803 | |
4804 | void TensorInfo_CooSparse::MergeFrom(const TensorInfo_CooSparse& from) { |
4805 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorInfo.CooSparse) |
4806 | GOOGLE_DCHECK_NE(&from, this); |
4807 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4808 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4809 | (void) cached_has_bits; |
4810 | |
4811 | if (from.values_tensor_name().size() > 0) { |
4812 | set_values_tensor_name(from.values_tensor_name()); |
4813 | } |
4814 | if (from.indices_tensor_name().size() > 0) { |
4815 | set_indices_tensor_name(from.indices_tensor_name()); |
4816 | } |
4817 | if (from.dense_shape_tensor_name().size() > 0) { |
4818 | set_dense_shape_tensor_name(from.dense_shape_tensor_name()); |
4819 | } |
4820 | } |
4821 | |
4822 | void TensorInfo_CooSparse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4823 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorInfo.CooSparse) |
4824 | if (&from == this) return; |
4825 | Clear(); |
4826 | MergeFrom(from); |
4827 | } |
4828 | |
4829 | void TensorInfo_CooSparse::CopyFrom(const TensorInfo_CooSparse& from) { |
4830 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorInfo.CooSparse) |
4831 | if (&from == this) return; |
4832 | Clear(); |
4833 | MergeFrom(from); |
4834 | } |
4835 | |
4836 | bool TensorInfo_CooSparse::IsInitialized() const { |
4837 | return true; |
4838 | } |
4839 | |
4840 | void TensorInfo_CooSparse::InternalSwap(TensorInfo_CooSparse* other) { |
4841 | using std::swap; |
4842 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4843 | values_tensor_name_.Swap(&other->values_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4844 | GetArenaNoVirtual()); |
4845 | indices_tensor_name_.Swap(&other->indices_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4846 | GetArenaNoVirtual()); |
4847 | dense_shape_tensor_name_.Swap(&other->dense_shape_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4848 | GetArenaNoVirtual()); |
4849 | } |
4850 | |
4851 | ::PROTOBUF_NAMESPACE_ID::Metadata TensorInfo_CooSparse::GetMetadata() const { |
4852 | return GetMetadataStatic(); |
4853 | } |
4854 | |
4855 | |
4856 | // =================================================================== |
4857 | |
4858 | void TensorInfo_CompositeTensor::InitAsDefaultInstance() { |
4859 | ::tensorflow::_TensorInfo_CompositeTensor_default_instance_._instance.get_mutable()->type_spec_ = const_cast< ::tensorflow::TypeSpecProto*>( |
4860 | ::tensorflow::TypeSpecProto::internal_default_instance()); |
4861 | } |
4862 | class TensorInfo_CompositeTensor::_Internal { |
4863 | public: |
4864 | static const ::tensorflow::TypeSpecProto& type_spec(const TensorInfo_CompositeTensor* msg); |
4865 | }; |
4866 | |
4867 | const ::tensorflow::TypeSpecProto& |
4868 | TensorInfo_CompositeTensor::_Internal::type_spec(const TensorInfo_CompositeTensor* msg) { |
4869 | return *msg->type_spec_; |
4870 | } |
4871 | void TensorInfo_CompositeTensor::unsafe_arena_set_allocated_type_spec( |
4872 | ::tensorflow::TypeSpecProto* type_spec) { |
4873 | if (GetArenaNoVirtual() == nullptr) { |
4874 | delete type_spec_; |
4875 | } |
4876 | type_spec_ = type_spec; |
4877 | if (type_spec) { |
4878 | |
4879 | } else { |
4880 | |
4881 | } |
4882 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.CompositeTensor.type_spec) |
4883 | } |
4884 | void TensorInfo_CompositeTensor::clear_type_spec() { |
4885 | if (GetArenaNoVirtual() == nullptr && type_spec_ != nullptr) { |
4886 | delete type_spec_; |
4887 | } |
4888 | type_spec_ = nullptr; |
4889 | } |
4890 | TensorInfo_CompositeTensor::TensorInfo_CompositeTensor() |
4891 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4892 | SharedCtor(); |
4893 | // @@protoc_insertion_point(constructor:tensorflow.TensorInfo.CompositeTensor) |
4894 | } |
4895 | TensorInfo_CompositeTensor::TensorInfo_CompositeTensor(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
4896 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4897 | _internal_metadata_(arena), |
4898 | components_(arena) { |
4899 | SharedCtor(); |
4900 | RegisterArenaDtor(arena); |
4901 | // @@protoc_insertion_point(arena_constructor:tensorflow.TensorInfo.CompositeTensor) |
4902 | } |
4903 | TensorInfo_CompositeTensor::TensorInfo_CompositeTensor(const TensorInfo_CompositeTensor& from) |
4904 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4905 | _internal_metadata_(nullptr), |
4906 | components_(from.components_) { |
4907 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4908 | if (from.has_type_spec()) { |
4909 | type_spec_ = new ::tensorflow::TypeSpecProto(*from.type_spec_); |
4910 | } else { |
4911 | type_spec_ = nullptr; |
4912 | } |
4913 | // @@protoc_insertion_point(copy_constructor:tensorflow.TensorInfo.CompositeTensor) |
4914 | } |
4915 | |
4916 | void TensorInfo_CompositeTensor::SharedCtor() { |
4917 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
4918 | type_spec_ = nullptr; |
4919 | } |
4920 | |
4921 | TensorInfo_CompositeTensor::~TensorInfo_CompositeTensor() { |
4922 | // @@protoc_insertion_point(destructor:tensorflow.TensorInfo.CompositeTensor) |
4923 | SharedDtor(); |
4924 | } |
4925 | |
4926 | void TensorInfo_CompositeTensor::SharedDtor() { |
4927 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
4928 | if (this != internal_default_instance()) delete type_spec_; |
4929 | } |
4930 | |
4931 | void TensorInfo_CompositeTensor::ArenaDtor(void* object) { |
4932 | TensorInfo_CompositeTensor* _this = reinterpret_cast< TensorInfo_CompositeTensor* >(object); |
4933 | (void)_this; |
4934 | } |
4935 | void TensorInfo_CompositeTensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4936 | } |
4937 | void TensorInfo_CompositeTensor::SetCachedSize(int size) const { |
4938 | _cached_size_.Set(size); |
4939 | } |
4940 | const TensorInfo_CompositeTensor& TensorInfo_CompositeTensor::default_instance() { |
4941 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
4942 | return *internal_default_instance(); |
4943 | } |
4944 | |
4945 | |
4946 | void TensorInfo_CompositeTensor::Clear() { |
4947 | // @@protoc_insertion_point(message_clear_start:tensorflow.TensorInfo.CompositeTensor) |
4948 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4949 | // Prevent compiler warnings about cached_has_bits being unused |
4950 | (void) cached_has_bits; |
4951 | |
4952 | components_.Clear(); |
4953 | if (GetArenaNoVirtual() == nullptr && type_spec_ != nullptr) { |
4954 | delete type_spec_; |
4955 | } |
4956 | type_spec_ = nullptr; |
4957 | _internal_metadata_.Clear(); |
4958 | } |
4959 | |
4960 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4961 | const char* TensorInfo_CompositeTensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4962 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4963 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4964 | while (!ctx->Done(&ptr)) { |
4965 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4966 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4967 | CHK_(ptr); |
4968 | switch (tag >> 3) { |
4969 | // .tensorflow.TypeSpecProto type_spec = 1; |
4970 | case 1: |
4971 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4972 | ptr = ctx->ParseMessage(mutable_type_spec(), ptr); |
4973 | CHK_(ptr); |
4974 | } else goto handle_unusual; |
4975 | continue; |
4976 | // repeated .tensorflow.TensorInfo components = 2; |
4977 | case 2: |
4978 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
4979 | ptr -= 1; |
4980 | do { |
4981 | ptr += 1; |
4982 | ptr = ctx->ParseMessage(add_components(), ptr); |
4983 | CHK_(ptr); |
4984 | if (!ctx->DataAvailable(ptr)) break; |
4985 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
4986 | } else goto handle_unusual; |
4987 | continue; |
4988 | default: { |
4989 | handle_unusual: |
4990 | if ((tag & 7) == 4 || tag == 0) { |
4991 | ctx->SetLastTag(tag); |
4992 | goto success; |
4993 | } |
4994 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4995 | CHK_(ptr != nullptr); |
4996 | continue; |
4997 | } |
4998 | } // switch |
4999 | } // while |
5000 | success: |
5001 | return ptr; |
5002 | failure: |
5003 | ptr = nullptr; |
5004 | goto success; |
5005 | #undef CHK_ |
5006 | } |
5007 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5008 | bool TensorInfo_CompositeTensor::MergePartialFromCodedStream( |
5009 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5010 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5011 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5012 | // @@protoc_insertion_point(parse_start:tensorflow.TensorInfo.CompositeTensor) |
5013 | for (;;) { |
5014 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5015 | tag = p.first; |
5016 | if (!p.second) goto handle_unusual; |
5017 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5018 | // .tensorflow.TypeSpecProto type_spec = 1; |
5019 | case 1: { |
5020 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
5021 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5022 | input, mutable_type_spec())); |
5023 | } else { |
5024 | goto handle_unusual; |
5025 | } |
5026 | break; |
5027 | } |
5028 | |
5029 | // repeated .tensorflow.TensorInfo components = 2; |
5030 | case 2: { |
5031 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
5032 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5033 | input, add_components())); |
5034 | } else { |
5035 | goto handle_unusual; |
5036 | } |
5037 | break; |
5038 | } |
5039 | |
5040 | default: { |
5041 | handle_unusual: |
5042 | if (tag == 0) { |
5043 | goto success; |
5044 | } |
5045 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5046 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5047 | break; |
5048 | } |
5049 | } |
5050 | } |
5051 | success: |
5052 | // @@protoc_insertion_point(parse_success:tensorflow.TensorInfo.CompositeTensor) |
5053 | return true; |
5054 | failure: |
5055 | // @@protoc_insertion_point(parse_failure:tensorflow.TensorInfo.CompositeTensor) |
5056 | return false; |
5057 | #undef DO_ |
5058 | } |
5059 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5060 | |
5061 | void TensorInfo_CompositeTensor::SerializeWithCachedSizes( |
5062 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5063 | // @@protoc_insertion_point(serialize_start:tensorflow.TensorInfo.CompositeTensor) |
5064 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5065 | (void) cached_has_bits; |
5066 | |
5067 | // .tensorflow.TypeSpecProto type_spec = 1; |
5068 | if (this->has_type_spec()) { |
5069 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5070 | 1, _Internal::type_spec(this), output); |
5071 | } |
5072 | |
5073 | // repeated .tensorflow.TensorInfo components = 2; |
5074 | for (unsigned int i = 0, |
5075 | n = static_cast<unsigned int>(this->components_size()); i < n; i++) { |
5076 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5077 | 2, |
5078 | this->components(static_cast<int>(i)), |
5079 | output); |
5080 | } |
5081 | |
5082 | if (_internal_metadata_.have_unknown_fields()) { |
5083 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5084 | _internal_metadata_.unknown_fields(), output); |
5085 | } |
5086 | // @@protoc_insertion_point(serialize_end:tensorflow.TensorInfo.CompositeTensor) |
5087 | } |
5088 | |
5089 | ::PROTOBUF_NAMESPACE_ID::uint8* TensorInfo_CompositeTensor::InternalSerializeWithCachedSizesToArray( |
5090 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5091 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorInfo.CompositeTensor) |
5092 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5093 | (void) cached_has_bits; |
5094 | |
5095 | // .tensorflow.TypeSpecProto type_spec = 1; |
5096 | if (this->has_type_spec()) { |
5097 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5098 | InternalWriteMessageToArray( |
5099 | 1, _Internal::type_spec(this), target); |
5100 | } |
5101 | |
5102 | // repeated .tensorflow.TensorInfo components = 2; |
5103 | for (unsigned int i = 0, |
5104 | n = static_cast<unsigned int>(this->components_size()); i < n; i++) { |
5105 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5106 | InternalWriteMessageToArray( |
5107 | 2, this->components(static_cast<int>(i)), target); |
5108 | } |
5109 | |
5110 | if (_internal_metadata_.have_unknown_fields()) { |
5111 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5112 | _internal_metadata_.unknown_fields(), target); |
5113 | } |
5114 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorInfo.CompositeTensor) |
5115 | return target; |
5116 | } |
5117 | |
5118 | size_t TensorInfo_CompositeTensor::ByteSizeLong() const { |
5119 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorInfo.CompositeTensor) |
5120 | size_t total_size = 0; |
5121 | |
5122 | if (_internal_metadata_.have_unknown_fields()) { |
5123 | total_size += |
5124 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5125 | _internal_metadata_.unknown_fields()); |
5126 | } |
5127 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5128 | // Prevent compiler warnings about cached_has_bits being unused |
5129 | (void) cached_has_bits; |
5130 | |
5131 | // repeated .tensorflow.TensorInfo components = 2; |
5132 | { |
5133 | unsigned int count = static_cast<unsigned int>(this->components_size()); |
5134 | total_size += 1UL * count; |
5135 | for (unsigned int i = 0; i < count; i++) { |
5136 | total_size += |
5137 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5138 | this->components(static_cast<int>(i))); |
5139 | } |
5140 | } |
5141 | |
5142 | // .tensorflow.TypeSpecProto type_spec = 1; |
5143 | if (this->has_type_spec()) { |
5144 | total_size += 1 + |
5145 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5146 | *type_spec_); |
5147 | } |
5148 | |
5149 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5150 | SetCachedSize(cached_size); |
5151 | return total_size; |
5152 | } |
5153 | |
5154 | void TensorInfo_CompositeTensor::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5155 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorInfo.CompositeTensor) |
5156 | GOOGLE_DCHECK_NE(&from, this); |
5157 | const TensorInfo_CompositeTensor* source = |
5158 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TensorInfo_CompositeTensor>( |
5159 | &from); |
5160 | if (source == nullptr) { |
5161 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorInfo.CompositeTensor) |
5162 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5163 | } else { |
5164 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorInfo.CompositeTensor) |
5165 | MergeFrom(*source); |
5166 | } |
5167 | } |
5168 | |
5169 | void TensorInfo_CompositeTensor::MergeFrom(const TensorInfo_CompositeTensor& from) { |
5170 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorInfo.CompositeTensor) |
5171 | GOOGLE_DCHECK_NE(&from, this); |
5172 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5173 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5174 | (void) cached_has_bits; |
5175 | |
5176 | components_.MergeFrom(from.components_); |
5177 | if (from.has_type_spec()) { |
5178 | mutable_type_spec()->::tensorflow::TypeSpecProto::MergeFrom(from.type_spec()); |
5179 | } |
5180 | } |
5181 | |
5182 | void TensorInfo_CompositeTensor::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5183 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorInfo.CompositeTensor) |
5184 | if (&from == this) return; |
5185 | Clear(); |
5186 | MergeFrom(from); |
5187 | } |
5188 | |
5189 | void TensorInfo_CompositeTensor::CopyFrom(const TensorInfo_CompositeTensor& from) { |
5190 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorInfo.CompositeTensor) |
5191 | if (&from == this) return; |
5192 | Clear(); |
5193 | MergeFrom(from); |
5194 | } |
5195 | |
5196 | bool TensorInfo_CompositeTensor::IsInitialized() const { |
5197 | return true; |
5198 | } |
5199 | |
5200 | void TensorInfo_CompositeTensor::InternalSwap(TensorInfo_CompositeTensor* other) { |
5201 | using std::swap; |
5202 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5203 | CastToBase(&components_)->InternalSwap(CastToBase(&other->components_)); |
5204 | swap(type_spec_, other->type_spec_); |
5205 | } |
5206 | |
5207 | ::PROTOBUF_NAMESPACE_ID::Metadata TensorInfo_CompositeTensor::GetMetadata() const { |
5208 | return GetMetadataStatic(); |
5209 | } |
5210 | |
5211 | |
5212 | // =================================================================== |
5213 | |
5214 | void TensorInfo::InitAsDefaultInstance() { |
5215 | ::tensorflow::_TensorInfo_default_instance_.name_.UnsafeSetDefault( |
5216 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5217 | ::tensorflow::_TensorInfo_default_instance_.coo_sparse_ = const_cast< ::tensorflow::TensorInfo_CooSparse*>( |
5218 | ::tensorflow::TensorInfo_CooSparse::internal_default_instance()); |
5219 | ::tensorflow::_TensorInfo_default_instance_.composite_tensor_ = const_cast< ::tensorflow::TensorInfo_CompositeTensor*>( |
5220 | ::tensorflow::TensorInfo_CompositeTensor::internal_default_instance()); |
5221 | ::tensorflow::_TensorInfo_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( |
5222 | ::tensorflow::TensorShapeProto::internal_default_instance()); |
5223 | } |
5224 | class TensorInfo::_Internal { |
5225 | public: |
5226 | static const ::tensorflow::TensorInfo_CooSparse& coo_sparse(const TensorInfo* msg); |
5227 | static const ::tensorflow::TensorInfo_CompositeTensor& composite_tensor(const TensorInfo* msg); |
5228 | static const ::tensorflow::TensorShapeProto& tensor_shape(const TensorInfo* msg); |
5229 | }; |
5230 | |
5231 | const ::tensorflow::TensorInfo_CooSparse& |
5232 | TensorInfo::_Internal::coo_sparse(const TensorInfo* msg) { |
5233 | return *msg->encoding_.coo_sparse_; |
5234 | } |
5235 | const ::tensorflow::TensorInfo_CompositeTensor& |
5236 | TensorInfo::_Internal::composite_tensor(const TensorInfo* msg) { |
5237 | return *msg->encoding_.composite_tensor_; |
5238 | } |
5239 | const ::tensorflow::TensorShapeProto& |
5240 | TensorInfo::_Internal::tensor_shape(const TensorInfo* msg) { |
5241 | return *msg->tensor_shape_; |
5242 | } |
5243 | void TensorInfo::set_allocated_coo_sparse(::tensorflow::TensorInfo_CooSparse* coo_sparse) { |
5244 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
5245 | clear_encoding(); |
5246 | if (coo_sparse) { |
5247 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5248 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(coo_sparse); |
5249 | if (message_arena != submessage_arena) { |
5250 | coo_sparse = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5251 | message_arena, coo_sparse, submessage_arena); |
5252 | } |
5253 | set_has_coo_sparse(); |
5254 | encoding_.coo_sparse_ = coo_sparse; |
5255 | } |
5256 | // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.coo_sparse) |
5257 | } |
5258 | void TensorInfo::set_allocated_composite_tensor(::tensorflow::TensorInfo_CompositeTensor* composite_tensor) { |
5259 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
5260 | clear_encoding(); |
5261 | if (composite_tensor) { |
5262 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5263 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(composite_tensor); |
5264 | if (message_arena != submessage_arena) { |
5265 | composite_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5266 | message_arena, composite_tensor, submessage_arena); |
5267 | } |
5268 | set_has_composite_tensor(); |
5269 | encoding_.composite_tensor_ = composite_tensor; |
5270 | } |
5271 | // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.composite_tensor) |
5272 | } |
5273 | void TensorInfo::unsafe_arena_set_allocated_tensor_shape( |
5274 | ::tensorflow::TensorShapeProto* tensor_shape) { |
5275 | if (GetArenaNoVirtual() == nullptr) { |
5276 | delete tensor_shape_; |
5277 | } |
5278 | tensor_shape_ = tensor_shape; |
5279 | if (tensor_shape) { |
5280 | |
5281 | } else { |
5282 | |
5283 | } |
5284 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.tensor_shape) |
5285 | } |
5286 | void TensorInfo::clear_tensor_shape() { |
5287 | if (GetArenaNoVirtual() == nullptr && tensor_shape_ != nullptr) { |
5288 | delete tensor_shape_; |
5289 | } |
5290 | tensor_shape_ = nullptr; |
5291 | } |
5292 | TensorInfo::TensorInfo() |
5293 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5294 | SharedCtor(); |
5295 | // @@protoc_insertion_point(constructor:tensorflow.TensorInfo) |
5296 | } |
5297 | TensorInfo::TensorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5298 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5299 | _internal_metadata_(arena) { |
5300 | SharedCtor(); |
5301 | RegisterArenaDtor(arena); |
5302 | // @@protoc_insertion_point(arena_constructor:tensorflow.TensorInfo) |
5303 | } |
5304 | TensorInfo::TensorInfo(const TensorInfo& from) |
5305 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5306 | _internal_metadata_(nullptr) { |
5307 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5308 | if (from.has_tensor_shape()) { |
5309 | tensor_shape_ = new ::tensorflow::TensorShapeProto(*from.tensor_shape_); |
5310 | } else { |
5311 | tensor_shape_ = nullptr; |
5312 | } |
5313 | dtype_ = from.dtype_; |
5314 | clear_has_encoding(); |
5315 | switch (from.encoding_case()) { |
5316 | case kName: { |
5317 | set_name(from.name()); |
5318 | break; |
5319 | } |
5320 | case kCooSparse: { |
5321 | mutable_coo_sparse()->::tensorflow::TensorInfo_CooSparse::MergeFrom(from.coo_sparse()); |
5322 | break; |
5323 | } |
5324 | case kCompositeTensor: { |
5325 | mutable_composite_tensor()->::tensorflow::TensorInfo_CompositeTensor::MergeFrom(from.composite_tensor()); |
5326 | break; |
5327 | } |
5328 | case ENCODING_NOT_SET: { |
5329 | break; |
5330 | } |
5331 | } |
5332 | // @@protoc_insertion_point(copy_constructor:tensorflow.TensorInfo) |
5333 | } |
5334 | |
5335 | void TensorInfo::SharedCtor() { |
5336 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
5337 | ::memset(&tensor_shape_, 0, static_cast<size_t>( |
5338 | reinterpret_cast<char*>(&dtype_) - |
5339 | reinterpret_cast<char*>(&tensor_shape_)) + sizeof(dtype_)); |
5340 | clear_has_encoding(); |
5341 | } |
5342 | |
5343 | TensorInfo::~TensorInfo() { |
5344 | // @@protoc_insertion_point(destructor:tensorflow.TensorInfo) |
5345 | SharedDtor(); |
5346 | } |
5347 | |
5348 | void TensorInfo::SharedDtor() { |
5349 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
5350 | if (this != internal_default_instance()) delete tensor_shape_; |
5351 | if (has_encoding()) { |
5352 | clear_encoding(); |
5353 | } |
5354 | } |
5355 | |
5356 | void TensorInfo::ArenaDtor(void* object) { |
5357 | TensorInfo* _this = reinterpret_cast< TensorInfo* >(object); |
5358 | (void)_this; |
5359 | } |
5360 | void TensorInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
5361 | } |
5362 | void TensorInfo::SetCachedSize(int size) const { |
5363 | _cached_size_.Set(size); |
5364 | } |
5365 | const TensorInfo& TensorInfo::default_instance() { |
5366 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TensorInfo_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
5367 | return *internal_default_instance(); |
5368 | } |
5369 | |
5370 | |
5371 | void TensorInfo::clear_encoding() { |
5372 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.TensorInfo) |
5373 | switch (encoding_case()) { |
5374 | case kName: { |
5375 | encoding_.name_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5376 | GetArenaNoVirtual()); |
5377 | break; |
5378 | } |
5379 | case kCooSparse: { |
5380 | if (GetArenaNoVirtual() == nullptr) { |
5381 | delete encoding_.coo_sparse_; |
5382 | } |
5383 | break; |
5384 | } |
5385 | case kCompositeTensor: { |
5386 | if (GetArenaNoVirtual() == nullptr) { |
5387 | delete encoding_.composite_tensor_; |
5388 | } |
5389 | break; |
5390 | } |
5391 | case ENCODING_NOT_SET: { |
5392 | break; |
5393 | } |
5394 | } |
5395 | _oneof_case_[0] = ENCODING_NOT_SET; |
5396 | } |
5397 | |
5398 | |
5399 | void TensorInfo::Clear() { |
5400 | // @@protoc_insertion_point(message_clear_start:tensorflow.TensorInfo) |
5401 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5402 | // Prevent compiler warnings about cached_has_bits being unused |
5403 | (void) cached_has_bits; |
5404 | |
5405 | if (GetArenaNoVirtual() == nullptr && tensor_shape_ != nullptr) { |
5406 | delete tensor_shape_; |
5407 | } |
5408 | tensor_shape_ = nullptr; |
5409 | dtype_ = 0; |
5410 | clear_encoding(); |
5411 | _internal_metadata_.Clear(); |
5412 | } |
5413 | |
5414 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5415 | const char* TensorInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5416 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5417 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
5418 | while (!ctx->Done(&ptr)) { |
5419 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5420 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5421 | CHK_(ptr); |
5422 | switch (tag >> 3) { |
5423 | // string name = 1; |
5424 | case 1: |
5425 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
5426 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.TensorInfo.name" ); |
5427 | CHK_(ptr); |
5428 | } else goto handle_unusual; |
5429 | continue; |
5430 | // .tensorflow.DataType dtype = 2; |
5431 | case 2: |
5432 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
5433 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
5434 | CHK_(ptr); |
5435 | set_dtype(static_cast<::tensorflow::DataType>(val)); |
5436 | } else goto handle_unusual; |
5437 | continue; |
5438 | // .tensorflow.TensorShapeProto tensor_shape = 3; |
5439 | case 3: |
5440 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
5441 | ptr = ctx->ParseMessage(mutable_tensor_shape(), ptr); |
5442 | CHK_(ptr); |
5443 | } else goto handle_unusual; |
5444 | continue; |
5445 | // .tensorflow.TensorInfo.CooSparse coo_sparse = 4; |
5446 | case 4: |
5447 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
5448 | ptr = ctx->ParseMessage(mutable_coo_sparse(), ptr); |
5449 | CHK_(ptr); |
5450 | } else goto handle_unusual; |
5451 | continue; |
5452 | // .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; |
5453 | case 5: |
5454 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
5455 | ptr = ctx->ParseMessage(mutable_composite_tensor(), ptr); |
5456 | CHK_(ptr); |
5457 | } else goto handle_unusual; |
5458 | continue; |
5459 | default: { |
5460 | handle_unusual: |
5461 | if ((tag & 7) == 4 || tag == 0) { |
5462 | ctx->SetLastTag(tag); |
5463 | goto success; |
5464 | } |
5465 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5466 | CHK_(ptr != nullptr); |
5467 | continue; |
5468 | } |
5469 | } // switch |
5470 | } // while |
5471 | success: |
5472 | return ptr; |
5473 | failure: |
5474 | ptr = nullptr; |
5475 | goto success; |
5476 | #undef CHK_ |
5477 | } |
5478 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5479 | bool TensorInfo::MergePartialFromCodedStream( |
5480 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5481 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5482 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5483 | // @@protoc_insertion_point(parse_start:tensorflow.TensorInfo) |
5484 | for (;;) { |
5485 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5486 | tag = p.first; |
5487 | if (!p.second) goto handle_unusual; |
5488 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5489 | // string name = 1; |
5490 | case 1: { |
5491 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
5492 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
5493 | input, this->mutable_name())); |
5494 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5495 | this->name().data(), static_cast<int>(this->name().length()), |
5496 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
5497 | "tensorflow.TensorInfo.name" )); |
5498 | } else { |
5499 | goto handle_unusual; |
5500 | } |
5501 | break; |
5502 | } |
5503 | |
5504 | // .tensorflow.DataType dtype = 2; |
5505 | case 2: { |
5506 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
5507 | int value = 0; |
5508 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
5509 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
5510 | input, &value))); |
5511 | set_dtype(static_cast< ::tensorflow::DataType >(value)); |
5512 | } else { |
5513 | goto handle_unusual; |
5514 | } |
5515 | break; |
5516 | } |
5517 | |
5518 | // .tensorflow.TensorShapeProto tensor_shape = 3; |
5519 | case 3: { |
5520 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
5521 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5522 | input, mutable_tensor_shape())); |
5523 | } else { |
5524 | goto handle_unusual; |
5525 | } |
5526 | break; |
5527 | } |
5528 | |
5529 | // .tensorflow.TensorInfo.CooSparse coo_sparse = 4; |
5530 | case 4: { |
5531 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
5532 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5533 | input, mutable_coo_sparse())); |
5534 | } else { |
5535 | goto handle_unusual; |
5536 | } |
5537 | break; |
5538 | } |
5539 | |
5540 | // .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; |
5541 | case 5: { |
5542 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
5543 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
5544 | input, mutable_composite_tensor())); |
5545 | } else { |
5546 | goto handle_unusual; |
5547 | } |
5548 | break; |
5549 | } |
5550 | |
5551 | default: { |
5552 | handle_unusual: |
5553 | if (tag == 0) { |
5554 | goto success; |
5555 | } |
5556 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5557 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5558 | break; |
5559 | } |
5560 | } |
5561 | } |
5562 | success: |
5563 | // @@protoc_insertion_point(parse_success:tensorflow.TensorInfo) |
5564 | return true; |
5565 | failure: |
5566 | // @@protoc_insertion_point(parse_failure:tensorflow.TensorInfo) |
5567 | return false; |
5568 | #undef DO_ |
5569 | } |
5570 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5571 | |
5572 | void TensorInfo::SerializeWithCachedSizes( |
5573 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5574 | // @@protoc_insertion_point(serialize_start:tensorflow.TensorInfo) |
5575 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5576 | (void) cached_has_bits; |
5577 | |
5578 | // string name = 1; |
5579 | if (has_name()) { |
5580 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5581 | this->name().data(), static_cast<int>(this->name().length()), |
5582 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5583 | "tensorflow.TensorInfo.name" ); |
5584 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5585 | 1, this->name(), output); |
5586 | } |
5587 | |
5588 | // .tensorflow.DataType dtype = 2; |
5589 | if (this->dtype() != 0) { |
5590 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
5591 | 2, this->dtype(), output); |
5592 | } |
5593 | |
5594 | // .tensorflow.TensorShapeProto tensor_shape = 3; |
5595 | if (this->has_tensor_shape()) { |
5596 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5597 | 3, _Internal::tensor_shape(this), output); |
5598 | } |
5599 | |
5600 | // .tensorflow.TensorInfo.CooSparse coo_sparse = 4; |
5601 | if (has_coo_sparse()) { |
5602 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5603 | 4, _Internal::coo_sparse(this), output); |
5604 | } |
5605 | |
5606 | // .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; |
5607 | if (has_composite_tensor()) { |
5608 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
5609 | 5, _Internal::composite_tensor(this), output); |
5610 | } |
5611 | |
5612 | if (_internal_metadata_.have_unknown_fields()) { |
5613 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5614 | _internal_metadata_.unknown_fields(), output); |
5615 | } |
5616 | // @@protoc_insertion_point(serialize_end:tensorflow.TensorInfo) |
5617 | } |
5618 | |
5619 | ::PROTOBUF_NAMESPACE_ID::uint8* TensorInfo::InternalSerializeWithCachedSizesToArray( |
5620 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5621 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorInfo) |
5622 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5623 | (void) cached_has_bits; |
5624 | |
5625 | // string name = 1; |
5626 | if (has_name()) { |
5627 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5628 | this->name().data(), static_cast<int>(this->name().length()), |
5629 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5630 | "tensorflow.TensorInfo.name" ); |
5631 | target = |
5632 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5633 | 1, this->name(), target); |
5634 | } |
5635 | |
5636 | // .tensorflow.DataType dtype = 2; |
5637 | if (this->dtype() != 0) { |
5638 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
5639 | 2, this->dtype(), target); |
5640 | } |
5641 | |
5642 | // .tensorflow.TensorShapeProto tensor_shape = 3; |
5643 | if (this->has_tensor_shape()) { |
5644 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5645 | InternalWriteMessageToArray( |
5646 | 3, _Internal::tensor_shape(this), target); |
5647 | } |
5648 | |
5649 | // .tensorflow.TensorInfo.CooSparse coo_sparse = 4; |
5650 | if (has_coo_sparse()) { |
5651 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5652 | InternalWriteMessageToArray( |
5653 | 4, _Internal::coo_sparse(this), target); |
5654 | } |
5655 | |
5656 | // .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; |
5657 | if (has_composite_tensor()) { |
5658 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5659 | InternalWriteMessageToArray( |
5660 | 5, _Internal::composite_tensor(this), target); |
5661 | } |
5662 | |
5663 | if (_internal_metadata_.have_unknown_fields()) { |
5664 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5665 | _internal_metadata_.unknown_fields(), target); |
5666 | } |
5667 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorInfo) |
5668 | return target; |
5669 | } |
5670 | |
5671 | size_t TensorInfo::ByteSizeLong() const { |
5672 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorInfo) |
5673 | size_t total_size = 0; |
5674 | |
5675 | if (_internal_metadata_.have_unknown_fields()) { |
5676 | total_size += |
5677 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5678 | _internal_metadata_.unknown_fields()); |
5679 | } |
5680 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5681 | // Prevent compiler warnings about cached_has_bits being unused |
5682 | (void) cached_has_bits; |
5683 | |
5684 | // .tensorflow.TensorShapeProto tensor_shape = 3; |
5685 | if (this->has_tensor_shape()) { |
5686 | total_size += 1 + |
5687 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5688 | *tensor_shape_); |
5689 | } |
5690 | |
5691 | // .tensorflow.DataType dtype = 2; |
5692 | if (this->dtype() != 0) { |
5693 | total_size += 1 + |
5694 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->dtype()); |
5695 | } |
5696 | |
5697 | switch (encoding_case()) { |
5698 | // string name = 1; |
5699 | case kName: { |
5700 | total_size += 1 + |
5701 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5702 | this->name()); |
5703 | break; |
5704 | } |
5705 | // .tensorflow.TensorInfo.CooSparse coo_sparse = 4; |
5706 | case kCooSparse: { |
5707 | total_size += 1 + |
5708 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5709 | *encoding_.coo_sparse_); |
5710 | break; |
5711 | } |
5712 | // .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; |
5713 | case kCompositeTensor: { |
5714 | total_size += 1 + |
5715 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5716 | *encoding_.composite_tensor_); |
5717 | break; |
5718 | } |
5719 | case ENCODING_NOT_SET: { |
5720 | break; |
5721 | } |
5722 | } |
5723 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5724 | SetCachedSize(cached_size); |
5725 | return total_size; |
5726 | } |
5727 | |
5728 | void TensorInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5729 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorInfo) |
5730 | GOOGLE_DCHECK_NE(&from, this); |
5731 | const TensorInfo* source = |
5732 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TensorInfo>( |
5733 | &from); |
5734 | if (source == nullptr) { |
5735 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorInfo) |
5736 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5737 | } else { |
5738 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorInfo) |
5739 | MergeFrom(*source); |
5740 | } |
5741 | } |
5742 | |
5743 | void TensorInfo::MergeFrom(const TensorInfo& from) { |
5744 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorInfo) |
5745 | GOOGLE_DCHECK_NE(&from, this); |
5746 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5747 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5748 | (void) cached_has_bits; |
5749 | |
5750 | if (from.has_tensor_shape()) { |
5751 | mutable_tensor_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape()); |
5752 | } |
5753 | if (from.dtype() != 0) { |
5754 | set_dtype(from.dtype()); |
5755 | } |
5756 | switch (from.encoding_case()) { |
5757 | case kName: { |
5758 | set_name(from.name()); |
5759 | break; |
5760 | } |
5761 | case kCooSparse: { |
5762 | mutable_coo_sparse()->::tensorflow::TensorInfo_CooSparse::MergeFrom(from.coo_sparse()); |
5763 | break; |
5764 | } |
5765 | case kCompositeTensor: { |
5766 | mutable_composite_tensor()->::tensorflow::TensorInfo_CompositeTensor::MergeFrom(from.composite_tensor()); |
5767 | break; |
5768 | } |
5769 | case ENCODING_NOT_SET: { |
5770 | break; |
5771 | } |
5772 | } |
5773 | } |
5774 | |
5775 | void TensorInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5776 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorInfo) |
5777 | if (&from == this) return; |
5778 | Clear(); |
5779 | MergeFrom(from); |
5780 | } |
5781 | |
5782 | void TensorInfo::CopyFrom(const TensorInfo& from) { |
5783 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorInfo) |
5784 | if (&from == this) return; |
5785 | Clear(); |
5786 | MergeFrom(from); |
5787 | } |
5788 | |
5789 | bool TensorInfo::IsInitialized() const { |
5790 | return true; |
5791 | } |
5792 | |
5793 | void TensorInfo::InternalSwap(TensorInfo* other) { |
5794 | using std::swap; |
5795 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5796 | swap(tensor_shape_, other->tensor_shape_); |
5797 | swap(dtype_, other->dtype_); |
5798 | swap(encoding_, other->encoding_); |
5799 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
5800 | } |
5801 | |
5802 | ::PROTOBUF_NAMESPACE_ID::Metadata TensorInfo::GetMetadata() const { |
5803 | return GetMetadataStatic(); |
5804 | } |
5805 | |
5806 | |
5807 | // =================================================================== |
5808 | |
5809 | SignatureDef_InputsEntry_DoNotUse::SignatureDef_InputsEntry_DoNotUse() {} |
5810 | SignatureDef_InputsEntry_DoNotUse::SignatureDef_InputsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5811 | : SuperType(arena) {} |
5812 | void SignatureDef_InputsEntry_DoNotUse::MergeFrom(const SignatureDef_InputsEntry_DoNotUse& other) { |
5813 | MergeFromInternal(other); |
5814 | } |
5815 | ::PROTOBUF_NAMESPACE_ID::Metadata SignatureDef_InputsEntry_DoNotUse::GetMetadata() const { |
5816 | return GetMetadataStatic(); |
5817 | } |
5818 | void SignatureDef_InputsEntry_DoNotUse::MergeFrom( |
5819 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
5820 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
5821 | } |
5822 | |
5823 | |
5824 | // =================================================================== |
5825 | |
5826 | SignatureDef_OutputsEntry_DoNotUse::SignatureDef_OutputsEntry_DoNotUse() {} |
5827 | SignatureDef_OutputsEntry_DoNotUse::SignatureDef_OutputsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5828 | : SuperType(arena) {} |
5829 | void SignatureDef_OutputsEntry_DoNotUse::MergeFrom(const SignatureDef_OutputsEntry_DoNotUse& other) { |
5830 | MergeFromInternal(other); |
5831 | } |
5832 | ::PROTOBUF_NAMESPACE_ID::Metadata SignatureDef_OutputsEntry_DoNotUse::GetMetadata() const { |
5833 | return GetMetadataStatic(); |
5834 | } |
5835 | void SignatureDef_OutputsEntry_DoNotUse::MergeFrom( |
5836 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
5837 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
5838 | } |
5839 | |
5840 | |
5841 | // =================================================================== |
5842 | |
5843 | void SignatureDef::InitAsDefaultInstance() { |
5844 | } |
5845 | class SignatureDef::_Internal { |
5846 | public: |
5847 | }; |
5848 | |
5849 | SignatureDef::SignatureDef() |
5850 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5851 | SharedCtor(); |
5852 | // @@protoc_insertion_point(constructor:tensorflow.SignatureDef) |
5853 | } |
5854 | SignatureDef::SignatureDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5855 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5856 | _internal_metadata_(arena), |
5857 | inputs_(arena), |
5858 | outputs_(arena) { |
5859 | SharedCtor(); |
5860 | RegisterArenaDtor(arena); |
5861 | // @@protoc_insertion_point(arena_constructor:tensorflow.SignatureDef) |
5862 | } |
5863 | SignatureDef::SignatureDef(const SignatureDef& from) |
5864 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5865 | _internal_metadata_(nullptr) { |
5866 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5867 | inputs_.MergeFrom(from.inputs_); |
5868 | outputs_.MergeFrom(from.outputs_); |
5869 | method_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5870 | if (!from.method_name().empty()) { |
5871 | method_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.method_name(), |
5872 | GetArenaNoVirtual()); |
5873 | } |
5874 | // @@protoc_insertion_point(copy_constructor:tensorflow.SignatureDef) |
5875 | } |
5876 | |
5877 | void SignatureDef::SharedCtor() { |
5878 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
5879 | method_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5880 | } |
5881 | |
5882 | SignatureDef::~SignatureDef() { |
5883 | // @@protoc_insertion_point(destructor:tensorflow.SignatureDef) |
5884 | SharedDtor(); |
5885 | } |
5886 | |
5887 | void SignatureDef::SharedDtor() { |
5888 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
5889 | method_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5890 | } |
5891 | |
5892 | void SignatureDef::ArenaDtor(void* object) { |
5893 | SignatureDef* _this = reinterpret_cast< SignatureDef* >(object); |
5894 | (void)_this; |
5895 | } |
5896 | void SignatureDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
5897 | } |
5898 | void SignatureDef::SetCachedSize(int size) const { |
5899 | _cached_size_.Set(size); |
5900 | } |
5901 | const SignatureDef& SignatureDef::default_instance() { |
5902 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignatureDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
5903 | return *internal_default_instance(); |
5904 | } |
5905 | |
5906 | |
5907 | void SignatureDef::Clear() { |
5908 | // @@protoc_insertion_point(message_clear_start:tensorflow.SignatureDef) |
5909 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5910 | // Prevent compiler warnings about cached_has_bits being unused |
5911 | (void) cached_has_bits; |
5912 | |
5913 | inputs_.Clear(); |
5914 | outputs_.Clear(); |
5915 | method_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5916 | _internal_metadata_.Clear(); |
5917 | } |
5918 | |
5919 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5920 | const char* SignatureDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5921 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5922 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
5923 | while (!ctx->Done(&ptr)) { |
5924 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5925 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5926 | CHK_(ptr); |
5927 | switch (tag >> 3) { |
5928 | // map<string, .tensorflow.TensorInfo> inputs = 1; |
5929 | case 1: |
5930 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
5931 | ptr -= 1; |
5932 | do { |
5933 | ptr += 1; |
5934 | ptr = ctx->ParseMessage(&inputs_, ptr); |
5935 | CHK_(ptr); |
5936 | if (!ctx->DataAvailable(ptr)) break; |
5937 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
5938 | } else goto handle_unusual; |
5939 | continue; |
5940 | // map<string, .tensorflow.TensorInfo> outputs = 2; |
5941 | case 2: |
5942 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
5943 | ptr -= 1; |
5944 | do { |
5945 | ptr += 1; |
5946 | ptr = ctx->ParseMessage(&outputs_, ptr); |
5947 | CHK_(ptr); |
5948 | if (!ctx->DataAvailable(ptr)) break; |
5949 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
5950 | } else goto handle_unusual; |
5951 | continue; |
5952 | // string method_name = 3; |
5953 | case 3: |
5954 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
5955 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_method_name(), ptr, ctx, "tensorflow.SignatureDef.method_name" ); |
5956 | CHK_(ptr); |
5957 | } else goto handle_unusual; |
5958 | continue; |
5959 | default: { |
5960 | handle_unusual: |
5961 | if ((tag & 7) == 4 || tag == 0) { |
5962 | ctx->SetLastTag(tag); |
5963 | goto success; |
5964 | } |
5965 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5966 | CHK_(ptr != nullptr); |
5967 | continue; |
5968 | } |
5969 | } // switch |
5970 | } // while |
5971 | success: |
5972 | return ptr; |
5973 | failure: |
5974 | ptr = nullptr; |
5975 | goto success; |
5976 | #undef CHK_ |
5977 | } |
5978 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5979 | bool SignatureDef::MergePartialFromCodedStream( |
5980 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5981 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5982 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5983 | // @@protoc_insertion_point(parse_start:tensorflow.SignatureDef) |
5984 | for (;;) { |
5985 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5986 | tag = p.first; |
5987 | if (!p.second) goto handle_unusual; |
5988 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5989 | // map<string, .tensorflow.TensorInfo> inputs = 1; |
5990 | case 1: { |
5991 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
5992 | SignatureDef_InputsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
5993 | SignatureDef_InputsEntry_DoNotUse, |
5994 | std::string, ::tensorflow::TensorInfo, |
5995 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
5996 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
5997 | 0 >, |
5998 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo > > parser(&inputs_); |
5999 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
6000 | input, &parser)); |
6001 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6002 | parser.key().data(), static_cast<int>(parser.key().length()), |
6003 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6004 | "tensorflow.SignatureDef.InputsEntry.key" )); |
6005 | } else { |
6006 | goto handle_unusual; |
6007 | } |
6008 | break; |
6009 | } |
6010 | |
6011 | // map<string, .tensorflow.TensorInfo> outputs = 2; |
6012 | case 2: { |
6013 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6014 | SignatureDef_OutputsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
6015 | SignatureDef_OutputsEntry_DoNotUse, |
6016 | std::string, ::tensorflow::TensorInfo, |
6017 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
6018 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
6019 | 0 >, |
6020 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo > > parser(&outputs_); |
6021 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
6022 | input, &parser)); |
6023 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6024 | parser.key().data(), static_cast<int>(parser.key().length()), |
6025 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6026 | "tensorflow.SignatureDef.OutputsEntry.key" )); |
6027 | } else { |
6028 | goto handle_unusual; |
6029 | } |
6030 | break; |
6031 | } |
6032 | |
6033 | // string method_name = 3; |
6034 | case 3: { |
6035 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
6036 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6037 | input, this->mutable_method_name())); |
6038 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6039 | this->method_name().data(), static_cast<int>(this->method_name().length()), |
6040 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6041 | "tensorflow.SignatureDef.method_name" )); |
6042 | } else { |
6043 | goto handle_unusual; |
6044 | } |
6045 | break; |
6046 | } |
6047 | |
6048 | default: { |
6049 | handle_unusual: |
6050 | if (tag == 0) { |
6051 | goto success; |
6052 | } |
6053 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6054 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6055 | break; |
6056 | } |
6057 | } |
6058 | } |
6059 | success: |
6060 | // @@protoc_insertion_point(parse_success:tensorflow.SignatureDef) |
6061 | return true; |
6062 | failure: |
6063 | // @@protoc_insertion_point(parse_failure:tensorflow.SignatureDef) |
6064 | return false; |
6065 | #undef DO_ |
6066 | } |
6067 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6068 | |
6069 | void SignatureDef::SerializeWithCachedSizes( |
6070 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6071 | // @@protoc_insertion_point(serialize_start:tensorflow.SignatureDef) |
6072 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6073 | (void) cached_has_bits; |
6074 | |
6075 | // map<string, .tensorflow.TensorInfo> inputs = 1; |
6076 | if (!this->inputs().empty()) { |
6077 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_pointer |
6078 | ConstPtr; |
6079 | typedef ConstPtr SortItem; |
6080 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6081 | struct Utf8Check { |
6082 | static void Check(ConstPtr p) { |
6083 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6084 | p->first.data(), static_cast<int>(p->first.length()), |
6085 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6086 | "tensorflow.SignatureDef.InputsEntry.key" ); |
6087 | } |
6088 | }; |
6089 | |
6090 | if (output->IsSerializationDeterministic() && |
6091 | this->inputs().size() > 1) { |
6092 | ::std::unique_ptr<SortItem[]> items( |
6093 | new SortItem[this->inputs().size()]); |
6094 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::size_type size_type; |
6095 | size_type n = 0; |
6096 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6097 | it = this->inputs().begin(); |
6098 | it != this->inputs().end(); ++it, ++n) { |
6099 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6100 | } |
6101 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6102 | for (size_type i = 0; i < n; i++) { |
6103 | SignatureDef_InputsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
6104 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6105 | } |
6106 | } else { |
6107 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6108 | it = this->inputs().begin(); |
6109 | it != this->inputs().end(); ++it) { |
6110 | SignatureDef_InputsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output); |
6111 | Utf8Check::Check(&(*it)); |
6112 | } |
6113 | } |
6114 | } |
6115 | |
6116 | // map<string, .tensorflow.TensorInfo> outputs = 2; |
6117 | if (!this->outputs().empty()) { |
6118 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_pointer |
6119 | ConstPtr; |
6120 | typedef ConstPtr SortItem; |
6121 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6122 | struct Utf8Check { |
6123 | static void Check(ConstPtr p) { |
6124 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6125 | p->first.data(), static_cast<int>(p->first.length()), |
6126 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6127 | "tensorflow.SignatureDef.OutputsEntry.key" ); |
6128 | } |
6129 | }; |
6130 | |
6131 | if (output->IsSerializationDeterministic() && |
6132 | this->outputs().size() > 1) { |
6133 | ::std::unique_ptr<SortItem[]> items( |
6134 | new SortItem[this->outputs().size()]); |
6135 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::size_type size_type; |
6136 | size_type n = 0; |
6137 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6138 | it = this->outputs().begin(); |
6139 | it != this->outputs().end(); ++it, ++n) { |
6140 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6141 | } |
6142 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6143 | for (size_type i = 0; i < n; i++) { |
6144 | SignatureDef_OutputsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
6145 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6146 | } |
6147 | } else { |
6148 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6149 | it = this->outputs().begin(); |
6150 | it != this->outputs().end(); ++it) { |
6151 | SignatureDef_OutputsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, it->first, it->second, output); |
6152 | Utf8Check::Check(&(*it)); |
6153 | } |
6154 | } |
6155 | } |
6156 | |
6157 | // string method_name = 3; |
6158 | if (this->method_name().size() > 0) { |
6159 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6160 | this->method_name().data(), static_cast<int>(this->method_name().length()), |
6161 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6162 | "tensorflow.SignatureDef.method_name" ); |
6163 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6164 | 3, this->method_name(), output); |
6165 | } |
6166 | |
6167 | if (_internal_metadata_.have_unknown_fields()) { |
6168 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6169 | _internal_metadata_.unknown_fields(), output); |
6170 | } |
6171 | // @@protoc_insertion_point(serialize_end:tensorflow.SignatureDef) |
6172 | } |
6173 | |
6174 | ::PROTOBUF_NAMESPACE_ID::uint8* SignatureDef::InternalSerializeWithCachedSizesToArray( |
6175 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6176 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.SignatureDef) |
6177 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6178 | (void) cached_has_bits; |
6179 | |
6180 | // map<string, .tensorflow.TensorInfo> inputs = 1; |
6181 | if (!this->inputs().empty()) { |
6182 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_pointer |
6183 | ConstPtr; |
6184 | typedef ConstPtr SortItem; |
6185 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6186 | struct Utf8Check { |
6187 | static void Check(ConstPtr p) { |
6188 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6189 | p->first.data(), static_cast<int>(p->first.length()), |
6190 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6191 | "tensorflow.SignatureDef.InputsEntry.key" ); |
6192 | } |
6193 | }; |
6194 | |
6195 | if (false && |
6196 | this->inputs().size() > 1) { |
6197 | ::std::unique_ptr<SortItem[]> items( |
6198 | new SortItem[this->inputs().size()]); |
6199 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::size_type size_type; |
6200 | size_type n = 0; |
6201 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6202 | it = this->inputs().begin(); |
6203 | it != this->inputs().end(); ++it, ++n) { |
6204 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6205 | } |
6206 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6207 | for (size_type i = 0; i < n; i++) { |
6208 | target = SignatureDef_InputsEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
6209 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6210 | } |
6211 | } else { |
6212 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6213 | it = this->inputs().begin(); |
6214 | it != this->inputs().end(); ++it) { |
6215 | target = SignatureDef_InputsEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target); |
6216 | Utf8Check::Check(&(*it)); |
6217 | } |
6218 | } |
6219 | } |
6220 | |
6221 | // map<string, .tensorflow.TensorInfo> outputs = 2; |
6222 | if (!this->outputs().empty()) { |
6223 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_pointer |
6224 | ConstPtr; |
6225 | typedef ConstPtr SortItem; |
6226 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6227 | struct Utf8Check { |
6228 | static void Check(ConstPtr p) { |
6229 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6230 | p->first.data(), static_cast<int>(p->first.length()), |
6231 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6232 | "tensorflow.SignatureDef.OutputsEntry.key" ); |
6233 | } |
6234 | }; |
6235 | |
6236 | if (false && |
6237 | this->outputs().size() > 1) { |
6238 | ::std::unique_ptr<SortItem[]> items( |
6239 | new SortItem[this->outputs().size()]); |
6240 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::size_type size_type; |
6241 | size_type n = 0; |
6242 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6243 | it = this->outputs().begin(); |
6244 | it != this->outputs().end(); ++it, ++n) { |
6245 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6246 | } |
6247 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6248 | for (size_type i = 0; i < n; i++) { |
6249 | target = SignatureDef_OutputsEntry_DoNotUse::Funcs::SerializeToArray(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
6250 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6251 | } |
6252 | } else { |
6253 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6254 | it = this->outputs().begin(); |
6255 | it != this->outputs().end(); ++it) { |
6256 | target = SignatureDef_OutputsEntry_DoNotUse::Funcs::SerializeToArray(2, it->first, it->second, target); |
6257 | Utf8Check::Check(&(*it)); |
6258 | } |
6259 | } |
6260 | } |
6261 | |
6262 | // string method_name = 3; |
6263 | if (this->method_name().size() > 0) { |
6264 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6265 | this->method_name().data(), static_cast<int>(this->method_name().length()), |
6266 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6267 | "tensorflow.SignatureDef.method_name" ); |
6268 | target = |
6269 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6270 | 3, this->method_name(), target); |
6271 | } |
6272 | |
6273 | if (_internal_metadata_.have_unknown_fields()) { |
6274 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6275 | _internal_metadata_.unknown_fields(), target); |
6276 | } |
6277 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.SignatureDef) |
6278 | return target; |
6279 | } |
6280 | |
6281 | size_t SignatureDef::ByteSizeLong() const { |
6282 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.SignatureDef) |
6283 | size_t total_size = 0; |
6284 | |
6285 | if (_internal_metadata_.have_unknown_fields()) { |
6286 | total_size += |
6287 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6288 | _internal_metadata_.unknown_fields()); |
6289 | } |
6290 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6291 | // Prevent compiler warnings about cached_has_bits being unused |
6292 | (void) cached_has_bits; |
6293 | |
6294 | // map<string, .tensorflow.TensorInfo> inputs = 1; |
6295 | total_size += 1 * |
6296 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->inputs_size()); |
6297 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6298 | it = this->inputs().begin(); |
6299 | it != this->inputs().end(); ++it) { |
6300 | total_size += SignatureDef_InputsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
6301 | } |
6302 | |
6303 | // map<string, .tensorflow.TensorInfo> outputs = 2; |
6304 | total_size += 1 * |
6305 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->outputs_size()); |
6306 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::TensorInfo >::const_iterator |
6307 | it = this->outputs().begin(); |
6308 | it != this->outputs().end(); ++it) { |
6309 | total_size += SignatureDef_OutputsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
6310 | } |
6311 | |
6312 | // string method_name = 3; |
6313 | if (this->method_name().size() > 0) { |
6314 | total_size += 1 + |
6315 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6316 | this->method_name()); |
6317 | } |
6318 | |
6319 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6320 | SetCachedSize(cached_size); |
6321 | return total_size; |
6322 | } |
6323 | |
6324 | void SignatureDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6325 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.SignatureDef) |
6326 | GOOGLE_DCHECK_NE(&from, this); |
6327 | const SignatureDef* source = |
6328 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SignatureDef>( |
6329 | &from); |
6330 | if (source == nullptr) { |
6331 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.SignatureDef) |
6332 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6333 | } else { |
6334 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.SignatureDef) |
6335 | MergeFrom(*source); |
6336 | } |
6337 | } |
6338 | |
6339 | void SignatureDef::MergeFrom(const SignatureDef& from) { |
6340 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.SignatureDef) |
6341 | GOOGLE_DCHECK_NE(&from, this); |
6342 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6343 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6344 | (void) cached_has_bits; |
6345 | |
6346 | inputs_.MergeFrom(from.inputs_); |
6347 | outputs_.MergeFrom(from.outputs_); |
6348 | if (from.method_name().size() > 0) { |
6349 | set_method_name(from.method_name()); |
6350 | } |
6351 | } |
6352 | |
6353 | void SignatureDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6354 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.SignatureDef) |
6355 | if (&from == this) return; |
6356 | Clear(); |
6357 | MergeFrom(from); |
6358 | } |
6359 | |
6360 | void SignatureDef::CopyFrom(const SignatureDef& from) { |
6361 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.SignatureDef) |
6362 | if (&from == this) return; |
6363 | Clear(); |
6364 | MergeFrom(from); |
6365 | } |
6366 | |
6367 | bool SignatureDef::IsInitialized() const { |
6368 | return true; |
6369 | } |
6370 | |
6371 | void SignatureDef::InternalSwap(SignatureDef* other) { |
6372 | using std::swap; |
6373 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6374 | inputs_.Swap(&other->inputs_); |
6375 | outputs_.Swap(&other->outputs_); |
6376 | method_name_.Swap(&other->method_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6377 | GetArenaNoVirtual()); |
6378 | } |
6379 | |
6380 | ::PROTOBUF_NAMESPACE_ID::Metadata SignatureDef::GetMetadata() const { |
6381 | return GetMetadataStatic(); |
6382 | } |
6383 | |
6384 | |
6385 | // =================================================================== |
6386 | |
6387 | void AssetFileDef::InitAsDefaultInstance() { |
6388 | ::tensorflow::_AssetFileDef_default_instance_._instance.get_mutable()->tensor_info_ = const_cast< ::tensorflow::TensorInfo*>( |
6389 | ::tensorflow::TensorInfo::internal_default_instance()); |
6390 | } |
6391 | class AssetFileDef::_Internal { |
6392 | public: |
6393 | static const ::tensorflow::TensorInfo& tensor_info(const AssetFileDef* msg); |
6394 | }; |
6395 | |
6396 | const ::tensorflow::TensorInfo& |
6397 | AssetFileDef::_Internal::tensor_info(const AssetFileDef* msg) { |
6398 | return *msg->tensor_info_; |
6399 | } |
6400 | void AssetFileDef::unsafe_arena_set_allocated_tensor_info( |
6401 | ::tensorflow::TensorInfo* tensor_info) { |
6402 | if (GetArenaNoVirtual() == nullptr) { |
6403 | delete tensor_info_; |
6404 | } |
6405 | tensor_info_ = tensor_info; |
6406 | if (tensor_info) { |
6407 | |
6408 | } else { |
6409 | |
6410 | } |
6411 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AssetFileDef.tensor_info) |
6412 | } |
6413 | AssetFileDef::AssetFileDef() |
6414 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6415 | SharedCtor(); |
6416 | // @@protoc_insertion_point(constructor:tensorflow.AssetFileDef) |
6417 | } |
6418 | AssetFileDef::AssetFileDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
6419 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6420 | _internal_metadata_(arena) { |
6421 | SharedCtor(); |
6422 | RegisterArenaDtor(arena); |
6423 | // @@protoc_insertion_point(arena_constructor:tensorflow.AssetFileDef) |
6424 | } |
6425 | AssetFileDef::AssetFileDef(const AssetFileDef& from) |
6426 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6427 | _internal_metadata_(nullptr) { |
6428 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6429 | filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6430 | if (!from.filename().empty()) { |
6431 | filename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.filename(), |
6432 | GetArenaNoVirtual()); |
6433 | } |
6434 | if (from.has_tensor_info()) { |
6435 | tensor_info_ = new ::tensorflow::TensorInfo(*from.tensor_info_); |
6436 | } else { |
6437 | tensor_info_ = nullptr; |
6438 | } |
6439 | // @@protoc_insertion_point(copy_constructor:tensorflow.AssetFileDef) |
6440 | } |
6441 | |
6442 | void AssetFileDef::SharedCtor() { |
6443 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
6444 | filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6445 | tensor_info_ = nullptr; |
6446 | } |
6447 | |
6448 | AssetFileDef::~AssetFileDef() { |
6449 | // @@protoc_insertion_point(destructor:tensorflow.AssetFileDef) |
6450 | SharedDtor(); |
6451 | } |
6452 | |
6453 | void AssetFileDef::SharedDtor() { |
6454 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
6455 | filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
6456 | if (this != internal_default_instance()) delete tensor_info_; |
6457 | } |
6458 | |
6459 | void AssetFileDef::ArenaDtor(void* object) { |
6460 | AssetFileDef* _this = reinterpret_cast< AssetFileDef* >(object); |
6461 | (void)_this; |
6462 | } |
6463 | void AssetFileDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
6464 | } |
6465 | void AssetFileDef::SetCachedSize(int size) const { |
6466 | _cached_size_.Set(size); |
6467 | } |
6468 | const AssetFileDef& AssetFileDef::default_instance() { |
6469 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetFileDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base); |
6470 | return *internal_default_instance(); |
6471 | } |
6472 | |
6473 | |
6474 | void AssetFileDef::Clear() { |
6475 | // @@protoc_insertion_point(message_clear_start:tensorflow.AssetFileDef) |
6476 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6477 | // Prevent compiler warnings about cached_has_bits being unused |
6478 | (void) cached_has_bits; |
6479 | |
6480 | filename_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
6481 | if (GetArenaNoVirtual() == nullptr && tensor_info_ != nullptr) { |
6482 | delete tensor_info_; |
6483 | } |
6484 | tensor_info_ = nullptr; |
6485 | _internal_metadata_.Clear(); |
6486 | } |
6487 | |
6488 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6489 | const char* AssetFileDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6490 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6491 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
6492 | while (!ctx->Done(&ptr)) { |
6493 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6494 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6495 | CHK_(ptr); |
6496 | switch (tag >> 3) { |
6497 | // .tensorflow.TensorInfo tensor_info = 1; |
6498 | case 1: |
6499 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
6500 | ptr = ctx->ParseMessage(mutable_tensor_info(), ptr); |
6501 | CHK_(ptr); |
6502 | } else goto handle_unusual; |
6503 | continue; |
6504 | // string filename = 2; |
6505 | case 2: |
6506 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
6507 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_filename(), ptr, ctx, "tensorflow.AssetFileDef.filename" ); |
6508 | CHK_(ptr); |
6509 | } else goto handle_unusual; |
6510 | continue; |
6511 | default: { |
6512 | handle_unusual: |
6513 | if ((tag & 7) == 4 || tag == 0) { |
6514 | ctx->SetLastTag(tag); |
6515 | goto success; |
6516 | } |
6517 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6518 | CHK_(ptr != nullptr); |
6519 | continue; |
6520 | } |
6521 | } // switch |
6522 | } // while |
6523 | success: |
6524 | return ptr; |
6525 | failure: |
6526 | ptr = nullptr; |
6527 | goto success; |
6528 | #undef CHK_ |
6529 | } |
6530 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6531 | bool AssetFileDef::MergePartialFromCodedStream( |
6532 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6533 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6534 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6535 | // @@protoc_insertion_point(parse_start:tensorflow.AssetFileDef) |
6536 | for (;;) { |
6537 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6538 | tag = p.first; |
6539 | if (!p.second) goto handle_unusual; |
6540 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6541 | // .tensorflow.TensorInfo tensor_info = 1; |
6542 | case 1: { |
6543 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
6544 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6545 | input, mutable_tensor_info())); |
6546 | } else { |
6547 | goto handle_unusual; |
6548 | } |
6549 | break; |
6550 | } |
6551 | |
6552 | // string filename = 2; |
6553 | case 2: { |
6554 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6555 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6556 | input, this->mutable_filename())); |
6557 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6558 | this->filename().data(), static_cast<int>(this->filename().length()), |
6559 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6560 | "tensorflow.AssetFileDef.filename" )); |
6561 | } else { |
6562 | goto handle_unusual; |
6563 | } |
6564 | break; |
6565 | } |
6566 | |
6567 | default: { |
6568 | handle_unusual: |
6569 | if (tag == 0) { |
6570 | goto success; |
6571 | } |
6572 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6573 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6574 | break; |
6575 | } |
6576 | } |
6577 | } |
6578 | success: |
6579 | // @@protoc_insertion_point(parse_success:tensorflow.AssetFileDef) |
6580 | return true; |
6581 | failure: |
6582 | // @@protoc_insertion_point(parse_failure:tensorflow.AssetFileDef) |
6583 | return false; |
6584 | #undef DO_ |
6585 | } |
6586 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6587 | |
6588 | void AssetFileDef::SerializeWithCachedSizes( |
6589 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6590 | // @@protoc_insertion_point(serialize_start:tensorflow.AssetFileDef) |
6591 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6592 | (void) cached_has_bits; |
6593 | |
6594 | // .tensorflow.TensorInfo tensor_info = 1; |
6595 | if (this->has_tensor_info()) { |
6596 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6597 | 1, _Internal::tensor_info(this), output); |
6598 | } |
6599 | |
6600 | // string filename = 2; |
6601 | if (this->filename().size() > 0) { |
6602 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6603 | this->filename().data(), static_cast<int>(this->filename().length()), |
6604 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6605 | "tensorflow.AssetFileDef.filename" ); |
6606 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6607 | 2, this->filename(), output); |
6608 | } |
6609 | |
6610 | if (_internal_metadata_.have_unknown_fields()) { |
6611 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6612 | _internal_metadata_.unknown_fields(), output); |
6613 | } |
6614 | // @@protoc_insertion_point(serialize_end:tensorflow.AssetFileDef) |
6615 | } |
6616 | |
6617 | ::PROTOBUF_NAMESPACE_ID::uint8* AssetFileDef::InternalSerializeWithCachedSizesToArray( |
6618 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6619 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.AssetFileDef) |
6620 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6621 | (void) cached_has_bits; |
6622 | |
6623 | // .tensorflow.TensorInfo tensor_info = 1; |
6624 | if (this->has_tensor_info()) { |
6625 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6626 | InternalWriteMessageToArray( |
6627 | 1, _Internal::tensor_info(this), target); |
6628 | } |
6629 | |
6630 | // string filename = 2; |
6631 | if (this->filename().size() > 0) { |
6632 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6633 | this->filename().data(), static_cast<int>(this->filename().length()), |
6634 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6635 | "tensorflow.AssetFileDef.filename" ); |
6636 | target = |
6637 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6638 | 2, this->filename(), target); |
6639 | } |
6640 | |
6641 | if (_internal_metadata_.have_unknown_fields()) { |
6642 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6643 | _internal_metadata_.unknown_fields(), target); |
6644 | } |
6645 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.AssetFileDef) |
6646 | return target; |
6647 | } |
6648 | |
6649 | size_t AssetFileDef::ByteSizeLong() const { |
6650 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.AssetFileDef) |
6651 | size_t total_size = 0; |
6652 | |
6653 | if (_internal_metadata_.have_unknown_fields()) { |
6654 | total_size += |
6655 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6656 | _internal_metadata_.unknown_fields()); |
6657 | } |
6658 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6659 | // Prevent compiler warnings about cached_has_bits being unused |
6660 | (void) cached_has_bits; |
6661 | |
6662 | // string filename = 2; |
6663 | if (this->filename().size() > 0) { |
6664 | total_size += 1 + |
6665 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6666 | this->filename()); |
6667 | } |
6668 | |
6669 | // .tensorflow.TensorInfo tensor_info = 1; |
6670 | if (this->has_tensor_info()) { |
6671 | total_size += 1 + |
6672 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6673 | *tensor_info_); |
6674 | } |
6675 | |
6676 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6677 | SetCachedSize(cached_size); |
6678 | return total_size; |
6679 | } |
6680 | |
6681 | void AssetFileDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6682 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.AssetFileDef) |
6683 | GOOGLE_DCHECK_NE(&from, this); |
6684 | const AssetFileDef* source = |
6685 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AssetFileDef>( |
6686 | &from); |
6687 | if (source == nullptr) { |
6688 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.AssetFileDef) |
6689 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6690 | } else { |
6691 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.AssetFileDef) |
6692 | MergeFrom(*source); |
6693 | } |
6694 | } |
6695 | |
6696 | void AssetFileDef::MergeFrom(const AssetFileDef& from) { |
6697 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.AssetFileDef) |
6698 | GOOGLE_DCHECK_NE(&from, this); |
6699 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6700 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6701 | (void) cached_has_bits; |
6702 | |
6703 | if (from.filename().size() > 0) { |
6704 | set_filename(from.filename()); |
6705 | } |
6706 | if (from.has_tensor_info()) { |
6707 | mutable_tensor_info()->::tensorflow::TensorInfo::MergeFrom(from.tensor_info()); |
6708 | } |
6709 | } |
6710 | |
6711 | void AssetFileDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6712 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.AssetFileDef) |
6713 | if (&from == this) return; |
6714 | Clear(); |
6715 | MergeFrom(from); |
6716 | } |
6717 | |
6718 | void AssetFileDef::CopyFrom(const AssetFileDef& from) { |
6719 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.AssetFileDef) |
6720 | if (&from == this) return; |
6721 | Clear(); |
6722 | MergeFrom(from); |
6723 | } |
6724 | |
6725 | bool AssetFileDef::IsInitialized() const { |
6726 | return true; |
6727 | } |
6728 | |
6729 | void AssetFileDef::InternalSwap(AssetFileDef* other) { |
6730 | using std::swap; |
6731 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6732 | filename_.Swap(&other->filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6733 | GetArenaNoVirtual()); |
6734 | swap(tensor_info_, other->tensor_info_); |
6735 | } |
6736 | |
6737 | ::PROTOBUF_NAMESPACE_ID::Metadata AssetFileDef::GetMetadata() const { |
6738 | return GetMetadataStatic(); |
6739 | } |
6740 | |
6741 | |
6742 | // @@protoc_insertion_point(namespace_scope) |
6743 | } // namespace tensorflow |
6744 | PROTOBUF_NAMESPACE_OPEN |
6745 | template<> PROTOBUF_NOINLINE ::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse >(Arena* arena) { |
6746 | return Arena::CreateMessageInternal< ::tensorflow::MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_DoNotUse >(arena); |
6747 | } |
6748 | template<> PROTOBUF_NOINLINE ::tensorflow::MetaGraphDef_MetaInfoDef* Arena::CreateMaybeMessage< ::tensorflow::MetaGraphDef_MetaInfoDef >(Arena* arena) { |
6749 | return Arena::CreateMessageInternal< ::tensorflow::MetaGraphDef_MetaInfoDef >(arena); |
6750 | } |
6751 | template<> PROTOBUF_NOINLINE ::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse >(Arena* arena) { |
6752 | return Arena::CreateMessageInternal< ::tensorflow::MetaGraphDef_CollectionDefEntry_DoNotUse >(arena); |
6753 | } |
6754 | template<> PROTOBUF_NOINLINE ::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse >(Arena* arena) { |
6755 | return Arena::CreateMessageInternal< ::tensorflow::MetaGraphDef_SignatureDefEntry_DoNotUse >(arena); |
6756 | } |
6757 | template<> PROTOBUF_NOINLINE ::tensorflow::MetaGraphDef* Arena::CreateMaybeMessage< ::tensorflow::MetaGraphDef >(Arena* arena) { |
6758 | return Arena::CreateMessageInternal< ::tensorflow::MetaGraphDef >(arena); |
6759 | } |
6760 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef_NodeList* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef_NodeList >(Arena* arena) { |
6761 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef_NodeList >(arena); |
6762 | } |
6763 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef_BytesList* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef_BytesList >(Arena* arena) { |
6764 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef_BytesList >(arena); |
6765 | } |
6766 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef_Int64List* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef_Int64List >(Arena* arena) { |
6767 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef_Int64List >(arena); |
6768 | } |
6769 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef_FloatList* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef_FloatList >(Arena* arena) { |
6770 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef_FloatList >(arena); |
6771 | } |
6772 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef_AnyList* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef_AnyList >(Arena* arena) { |
6773 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef_AnyList >(arena); |
6774 | } |
6775 | template<> PROTOBUF_NOINLINE ::tensorflow::CollectionDef* Arena::CreateMaybeMessage< ::tensorflow::CollectionDef >(Arena* arena) { |
6776 | return Arena::CreateMessageInternal< ::tensorflow::CollectionDef >(arena); |
6777 | } |
6778 | template<> PROTOBUF_NOINLINE ::tensorflow::TensorInfo_CooSparse* Arena::CreateMaybeMessage< ::tensorflow::TensorInfo_CooSparse >(Arena* arena) { |
6779 | return Arena::CreateMessageInternal< ::tensorflow::TensorInfo_CooSparse >(arena); |
6780 | } |
6781 | template<> PROTOBUF_NOINLINE ::tensorflow::TensorInfo_CompositeTensor* Arena::CreateMaybeMessage< ::tensorflow::TensorInfo_CompositeTensor >(Arena* arena) { |
6782 | return Arena::CreateMessageInternal< ::tensorflow::TensorInfo_CompositeTensor >(arena); |
6783 | } |
6784 | template<> PROTOBUF_NOINLINE ::tensorflow::TensorInfo* Arena::CreateMaybeMessage< ::tensorflow::TensorInfo >(Arena* arena) { |
6785 | return Arena::CreateMessageInternal< ::tensorflow::TensorInfo >(arena); |
6786 | } |
6787 | template<> PROTOBUF_NOINLINE ::tensorflow::SignatureDef_InputsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::SignatureDef_InputsEntry_DoNotUse >(Arena* arena) { |
6788 | return Arena::CreateMessageInternal< ::tensorflow::SignatureDef_InputsEntry_DoNotUse >(arena); |
6789 | } |
6790 | template<> PROTOBUF_NOINLINE ::tensorflow::SignatureDef_OutputsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::SignatureDef_OutputsEntry_DoNotUse >(Arena* arena) { |
6791 | return Arena::CreateMessageInternal< ::tensorflow::SignatureDef_OutputsEntry_DoNotUse >(arena); |
6792 | } |
6793 | template<> PROTOBUF_NOINLINE ::tensorflow::SignatureDef* Arena::CreateMaybeMessage< ::tensorflow::SignatureDef >(Arena* arena) { |
6794 | return Arena::CreateMessageInternal< ::tensorflow::SignatureDef >(arena); |
6795 | } |
6796 | template<> PROTOBUF_NOINLINE ::tensorflow::AssetFileDef* Arena::CreateMaybeMessage< ::tensorflow::AssetFileDef >(Arena* arena) { |
6797 | return Arena::CreateMessageInternal< ::tensorflow::AssetFileDef >(arena); |
6798 | } |
6799 | PROTOBUF_NAMESPACE_CLOSE |
6800 | |
6801 | // @@protoc_insertion_point(global_scope) |
6802 | #include <google/protobuf/port_undef.inc> |
6803 | |