1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/saved_model.proto |
3 | |
4 | #include "tensorflow/core/protobuf/saved_model.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto; |
19 | namespace tensorflow { |
20 | class SavedModelDefaultTypeInternal { |
21 | public: |
22 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SavedModel> _instance; |
23 | } _SavedModel_default_instance_; |
24 | } // namespace tensorflow |
25 | static void InitDefaultsscc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto() { |
26 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
27 | |
28 | { |
29 | void* ptr = &::tensorflow::_SavedModel_default_instance_; |
30 | new (ptr) ::tensorflow::SavedModel(); |
31 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
32 | } |
33 | ::tensorflow::SavedModel::InitAsDefaultInstance(); |
34 | } |
35 | |
36 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto = |
37 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto}, { |
38 | &scc_info_MetaGraphDef_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto.base,}}; |
39 | |
40 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto[1]; |
41 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto = nullptr; |
42 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto = nullptr; |
43 | |
44 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
45 | ~0u, // no _has_bits_ |
46 | PROTOBUF_FIELD_OFFSET(::tensorflow::SavedModel, _internal_metadata_), |
47 | ~0u, // no _extensions_ |
48 | ~0u, // no _oneof_case_ |
49 | ~0u, // no _weak_field_map_ |
50 | PROTOBUF_FIELD_OFFSET(::tensorflow::SavedModel, saved_model_schema_version_), |
51 | PROTOBUF_FIELD_OFFSET(::tensorflow::SavedModel, meta_graphs_), |
52 | }; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
54 | { 0, -1, sizeof(::tensorflow::SavedModel)}, |
55 | }; |
56 | |
57 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
58 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_SavedModel_default_instance_), |
59 | }; |
60 | |
61 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
62 | "\n*tensorflow/core/protobuf/saved_model.p" |
63 | "roto\022\ntensorflow\032)tensorflow/core/protob" |
64 | "uf/meta_graph.proto\"_\n\nSavedModel\022\"\n\032sav" |
65 | "ed_model_schema_version\030\001 \001(\003\022-\n\013meta_gr" |
66 | "aphs\030\002 \003(\0132\030.tensorflow.MetaGraphDefB\210\001\n" |
67 | "\030org.tensorflow.frameworkB\020SavedModelPro" |
68 | "tosP\001ZUgithub.com/tensorflow/tensorflow/" |
69 | "tensorflow/go/core/protobuf/for_core_pro" |
70 | "tos_go_proto\370\001\001b\006proto3" |
71 | ; |
72 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_deps[1] = { |
73 | &::descriptor_table_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto, |
74 | }; |
75 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_sccs[1] = { |
76 | &scc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto.base, |
77 | }; |
78 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_once; |
79 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_initialized = false; |
80 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto = { |
81 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto, "tensorflow/core/protobuf/saved_model.proto" , 343, |
82 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto_deps, 1, 1, |
83 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto::offsets, |
84 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto, 1, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto, |
85 | }; |
86 | |
87 | // Force running AddDescriptors() at dynamic initialization time. |
88 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto), true); |
89 | namespace tensorflow { |
90 | |
91 | // =================================================================== |
92 | |
93 | void SavedModel::InitAsDefaultInstance() { |
94 | } |
95 | class SavedModel::_Internal { |
96 | public: |
97 | }; |
98 | |
99 | void SavedModel::clear_meta_graphs() { |
100 | meta_graphs_.Clear(); |
101 | } |
102 | SavedModel::SavedModel() |
103 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
104 | SharedCtor(); |
105 | // @@protoc_insertion_point(constructor:tensorflow.SavedModel) |
106 | } |
107 | SavedModel::SavedModel(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
108 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
109 | _internal_metadata_(arena), |
110 | meta_graphs_(arena) { |
111 | SharedCtor(); |
112 | RegisterArenaDtor(arena); |
113 | // @@protoc_insertion_point(arena_constructor:tensorflow.SavedModel) |
114 | } |
115 | SavedModel::SavedModel(const SavedModel& from) |
116 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
117 | _internal_metadata_(nullptr), |
118 | meta_graphs_(from.meta_graphs_) { |
119 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
120 | saved_model_schema_version_ = from.saved_model_schema_version_; |
121 | // @@protoc_insertion_point(copy_constructor:tensorflow.SavedModel) |
122 | } |
123 | |
124 | void SavedModel::SharedCtor() { |
125 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto.base); |
126 | saved_model_schema_version_ = PROTOBUF_LONGLONG(0); |
127 | } |
128 | |
129 | SavedModel::~SavedModel() { |
130 | // @@protoc_insertion_point(destructor:tensorflow.SavedModel) |
131 | SharedDtor(); |
132 | } |
133 | |
134 | void SavedModel::SharedDtor() { |
135 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
136 | } |
137 | |
138 | void SavedModel::ArenaDtor(void* object) { |
139 | SavedModel* _this = reinterpret_cast< SavedModel* >(object); |
140 | (void)_this; |
141 | } |
142 | void SavedModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
143 | } |
144 | void SavedModel::SetCachedSize(int size) const { |
145 | _cached_size_.Set(size); |
146 | } |
147 | const SavedModel& SavedModel::default_instance() { |
148 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SavedModel_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto.base); |
149 | return *internal_default_instance(); |
150 | } |
151 | |
152 | |
153 | void SavedModel::Clear() { |
154 | // @@protoc_insertion_point(message_clear_start:tensorflow.SavedModel) |
155 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
156 | // Prevent compiler warnings about cached_has_bits being unused |
157 | (void) cached_has_bits; |
158 | |
159 | meta_graphs_.Clear(); |
160 | saved_model_schema_version_ = PROTOBUF_LONGLONG(0); |
161 | _internal_metadata_.Clear(); |
162 | } |
163 | |
164 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
165 | const char* SavedModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
166 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
167 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
168 | while (!ctx->Done(&ptr)) { |
169 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
170 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
171 | CHK_(ptr); |
172 | switch (tag >> 3) { |
173 | // int64 saved_model_schema_version = 1; |
174 | case 1: |
175 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
176 | saved_model_schema_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
177 | CHK_(ptr); |
178 | } else goto handle_unusual; |
179 | continue; |
180 | // repeated .tensorflow.MetaGraphDef meta_graphs = 2; |
181 | case 2: |
182 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
183 | ptr -= 1; |
184 | do { |
185 | ptr += 1; |
186 | ptr = ctx->ParseMessage(add_meta_graphs(), ptr); |
187 | CHK_(ptr); |
188 | if (!ctx->DataAvailable(ptr)) break; |
189 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
190 | } else goto handle_unusual; |
191 | continue; |
192 | default: { |
193 | handle_unusual: |
194 | if ((tag & 7) == 4 || tag == 0) { |
195 | ctx->SetLastTag(tag); |
196 | goto success; |
197 | } |
198 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
199 | CHK_(ptr != nullptr); |
200 | continue; |
201 | } |
202 | } // switch |
203 | } // while |
204 | success: |
205 | return ptr; |
206 | failure: |
207 | ptr = nullptr; |
208 | goto success; |
209 | #undef CHK_ |
210 | } |
211 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
212 | bool SavedModel::MergePartialFromCodedStream( |
213 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
214 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
215 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
216 | // @@protoc_insertion_point(parse_start:tensorflow.SavedModel) |
217 | for (;;) { |
218 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
219 | tag = p.first; |
220 | if (!p.second) goto handle_unusual; |
221 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
222 | // int64 saved_model_schema_version = 1; |
223 | case 1: { |
224 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
225 | |
226 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
227 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
228 | input, &saved_model_schema_version_))); |
229 | } else { |
230 | goto handle_unusual; |
231 | } |
232 | break; |
233 | } |
234 | |
235 | // repeated .tensorflow.MetaGraphDef meta_graphs = 2; |
236 | case 2: { |
237 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
238 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
239 | input, add_meta_graphs())); |
240 | } else { |
241 | goto handle_unusual; |
242 | } |
243 | break; |
244 | } |
245 | |
246 | default: { |
247 | handle_unusual: |
248 | if (tag == 0) { |
249 | goto success; |
250 | } |
251 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
252 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
253 | break; |
254 | } |
255 | } |
256 | } |
257 | success: |
258 | // @@protoc_insertion_point(parse_success:tensorflow.SavedModel) |
259 | return true; |
260 | failure: |
261 | // @@protoc_insertion_point(parse_failure:tensorflow.SavedModel) |
262 | return false; |
263 | #undef DO_ |
264 | } |
265 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
266 | |
267 | void SavedModel::SerializeWithCachedSizes( |
268 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
269 | // @@protoc_insertion_point(serialize_start:tensorflow.SavedModel) |
270 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
271 | (void) cached_has_bits; |
272 | |
273 | // int64 saved_model_schema_version = 1; |
274 | if (this->saved_model_schema_version() != 0) { |
275 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->saved_model_schema_version(), output); |
276 | } |
277 | |
278 | // repeated .tensorflow.MetaGraphDef meta_graphs = 2; |
279 | for (unsigned int i = 0, |
280 | n = static_cast<unsigned int>(this->meta_graphs_size()); i < n; i++) { |
281 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
282 | 2, |
283 | this->meta_graphs(static_cast<int>(i)), |
284 | output); |
285 | } |
286 | |
287 | if (_internal_metadata_.have_unknown_fields()) { |
288 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
289 | _internal_metadata_.unknown_fields(), output); |
290 | } |
291 | // @@protoc_insertion_point(serialize_end:tensorflow.SavedModel) |
292 | } |
293 | |
294 | ::PROTOBUF_NAMESPACE_ID::uint8* SavedModel::InternalSerializeWithCachedSizesToArray( |
295 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
296 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.SavedModel) |
297 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
298 | (void) cached_has_bits; |
299 | |
300 | // int64 saved_model_schema_version = 1; |
301 | if (this->saved_model_schema_version() != 0) { |
302 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->saved_model_schema_version(), target); |
303 | } |
304 | |
305 | // repeated .tensorflow.MetaGraphDef meta_graphs = 2; |
306 | for (unsigned int i = 0, |
307 | n = static_cast<unsigned int>(this->meta_graphs_size()); i < n; i++) { |
308 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
309 | InternalWriteMessageToArray( |
310 | 2, this->meta_graphs(static_cast<int>(i)), target); |
311 | } |
312 | |
313 | if (_internal_metadata_.have_unknown_fields()) { |
314 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
315 | _internal_metadata_.unknown_fields(), target); |
316 | } |
317 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.SavedModel) |
318 | return target; |
319 | } |
320 | |
321 | size_t SavedModel::ByteSizeLong() const { |
322 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.SavedModel) |
323 | size_t total_size = 0; |
324 | |
325 | if (_internal_metadata_.have_unknown_fields()) { |
326 | total_size += |
327 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
328 | _internal_metadata_.unknown_fields()); |
329 | } |
330 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
331 | // Prevent compiler warnings about cached_has_bits being unused |
332 | (void) cached_has_bits; |
333 | |
334 | // repeated .tensorflow.MetaGraphDef meta_graphs = 2; |
335 | { |
336 | unsigned int count = static_cast<unsigned int>(this->meta_graphs_size()); |
337 | total_size += 1UL * count; |
338 | for (unsigned int i = 0; i < count; i++) { |
339 | total_size += |
340 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
341 | this->meta_graphs(static_cast<int>(i))); |
342 | } |
343 | } |
344 | |
345 | // int64 saved_model_schema_version = 1; |
346 | if (this->saved_model_schema_version() != 0) { |
347 | total_size += 1 + |
348 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
349 | this->saved_model_schema_version()); |
350 | } |
351 | |
352 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
353 | SetCachedSize(cached_size); |
354 | return total_size; |
355 | } |
356 | |
357 | void SavedModel::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
358 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.SavedModel) |
359 | GOOGLE_DCHECK_NE(&from, this); |
360 | const SavedModel* source = |
361 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SavedModel>( |
362 | &from); |
363 | if (source == nullptr) { |
364 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.SavedModel) |
365 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
366 | } else { |
367 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.SavedModel) |
368 | MergeFrom(*source); |
369 | } |
370 | } |
371 | |
372 | void SavedModel::MergeFrom(const SavedModel& from) { |
373 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.SavedModel) |
374 | GOOGLE_DCHECK_NE(&from, this); |
375 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
376 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
377 | (void) cached_has_bits; |
378 | |
379 | meta_graphs_.MergeFrom(from.meta_graphs_); |
380 | if (from.saved_model_schema_version() != 0) { |
381 | set_saved_model_schema_version(from.saved_model_schema_version()); |
382 | } |
383 | } |
384 | |
385 | void SavedModel::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
386 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.SavedModel) |
387 | if (&from == this) return; |
388 | Clear(); |
389 | MergeFrom(from); |
390 | } |
391 | |
392 | void SavedModel::CopyFrom(const SavedModel& from) { |
393 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.SavedModel) |
394 | if (&from == this) return; |
395 | Clear(); |
396 | MergeFrom(from); |
397 | } |
398 | |
399 | bool SavedModel::IsInitialized() const { |
400 | return true; |
401 | } |
402 | |
403 | void SavedModel::InternalSwap(SavedModel* other) { |
404 | using std::swap; |
405 | _internal_metadata_.Swap(&other->_internal_metadata_); |
406 | CastToBase(&meta_graphs_)->InternalSwap(CastToBase(&other->meta_graphs_)); |
407 | swap(saved_model_schema_version_, other->saved_model_schema_version_); |
408 | } |
409 | |
410 | ::PROTOBUF_NAMESPACE_ID::Metadata SavedModel::GetMetadata() const { |
411 | return GetMetadataStatic(); |
412 | } |
413 | |
414 | |
415 | // @@protoc_insertion_point(namespace_scope) |
416 | } // namespace tensorflow |
417 | PROTOBUF_NAMESPACE_OPEN |
418 | template<> PROTOBUF_NOINLINE ::tensorflow::SavedModel* Arena::CreateMaybeMessage< ::tensorflow::SavedModel >(Arena* arena) { |
419 | return Arena::CreateMessageInternal< ::tensorflow::SavedModel >(arena); |
420 | } |
421 | PROTOBUF_NAMESPACE_CLOSE |
422 | |
423 | // @@protoc_insertion_point(global_scope) |
424 | #include <google/protobuf/port_undef.inc> |
425 | |