4 #ifndef PROTOBUF_INCLUDED_tfnetwork_2eproto
5 #define PROTOBUF_INCLUDED_tfnetwork_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "tensorflow/core/framework/graph.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_tfnetwork_2eproto
40 static const ::google::protobuf::internal::ParseTableField
entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
42 static const ::google::protobuf::internal::ParseTable
schema[1];
45 static const ::google::protobuf::uint32
offsets[];
77 *
this = ::std::move(from);
81 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82 if (
this != &from) InternalSwap(&from);
89 static const ::google::protobuf::Descriptor*
descriptor();
94 return reinterpret_cast<const TFNetworkModel*>(
108 return CreateMaybeMessage<TFNetworkModel>(NULL);
112 return CreateMaybeMessage<TFNetworkModel>(arena);
114 void CopyFrom(const ::google::protobuf::Message& from)
final;
115 void MergeFrom(const ::google::protobuf::Message& from)
final;
123 ::
google::protobuf::io::CodedInputStream* input) final;
125 ::
google::protobuf::io::CodedOutputStream* output) const final;
127 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 void SetCachedSize(
int size)
const final;
136 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
139 inline void* MaybeArenaPtr()
const {
144 ::google::protobuf::Metadata
GetMetadata() const final;
153 const ::std::
string&
spec() const;
154 void set_spec(const ::std::
string& value);
159 void set_spec(
const char* value,
size_t size);
225 const ::tensorflow::GraphDef& _internal_graph()
const;
227 const ::tensorflow::GraphDef&
graph()
const;
241 ::google::protobuf::int32
depth()
const;
242 void set_depth(::google::protobuf::int32 value);
247 ::google::protobuf::int32
x_size()
const;
248 void set_x_size(::google::protobuf::int32 value);
253 ::google::protobuf::int32
y_size()
const;
254 void set_y_size(::google::protobuf::int32 value);
277 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
278 ::google::protobuf::internal::ArenaStringPtr spec_;
279 ::google::protobuf::internal::ArenaStringPtr image_input_;
280 ::google::protobuf::internal::ArenaStringPtr image_widths_;
281 ::google::protobuf::internal::ArenaStringPtr image_heights_;
282 ::google::protobuf::internal::ArenaStringPtr output_layer_;
283 ::tensorflow::GraphDef* graph_;
284 ::google::protobuf::int64 global_step_;
285 ::google::protobuf::int32 depth_;
286 ::google::protobuf::int32 x_size_;
287 ::google::protobuf::int32 y_size_;
288 ::google::protobuf::int32 batch_size_;
289 ::google::protobuf::int32 num_classes_;
291 mutable ::google::protobuf::internal::CachedSize _cached_size_;
292 friend struct ::protobuf_tfnetwork_2eproto::TableStruct;
300 #pragma GCC diagnostic push
301 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
309 inline const ::tensorflow::GraphDef& TFNetworkModel::_internal_graph()
const {
313 const ::tensorflow::GraphDef* p = graph_;
315 return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::GraphDef*>(
316 &::tensorflow::_GraphDef_default_instance_);
321 ::tensorflow::GraphDef* temp = graph_;
327 if (graph_ == NULL) {
328 auto* p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
335 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
336 if (message_arena == NULL) {
337 delete reinterpret_cast< ::google::protobuf::MessageLite*>(graph_);
340 ::google::protobuf::Arena* submessage_arena =
341 reinterpret_cast<::google::protobuf::MessageLite*>(
graph)->GetArena();
342 if (message_arena != submessage_arena) {
343 graph = ::google::protobuf::internal::GetOwnedMessage(
344 message_arena,
graph, submessage_arena);
356 global_step_ = GOOGLE_LONGLONG(0);
364 global_step_ = value;
370 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
374 return spec_.GetNoArena();
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
385 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
390 GOOGLE_DCHECK(value != NULL);
392 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
397 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
398 ::
std::string(reinterpret_cast<const char*>(value), size));
404 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
409 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
spec);
487 num_classes_ = value;
507 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
511 return image_input_.GetNoArena();
515 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
521 image_input_.SetNoArena(
522 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
527 GOOGLE_DCHECK(value != NULL);
529 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
534 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
535 ::
std::string(reinterpret_cast<const char*>(value), size));
541 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
546 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
554 image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_input);
560 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564 return image_widths_.GetNoArena();
568 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
574 image_widths_.SetNoArena(
575 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
580 GOOGLE_DCHECK(value != NULL);
582 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
587 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
588 ::
std::string(reinterpret_cast<const char*>(value), size));
594 return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
599 return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607 image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_widths);
613 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
617 return image_heights_.GetNoArena();
621 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
627 image_heights_.SetNoArena(
628 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
633 GOOGLE_DCHECK(value != NULL);
635 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
640 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641 ::
std::string(reinterpret_cast<const char*>(value), size));
647 return image_heights_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
652 return image_heights_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660 image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_heights);
666 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
670 return output_layer_.GetNoArena();
674 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
680 output_layer_.SetNoArena(
681 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
686 GOOGLE_DCHECK(value != NULL);
688 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
693 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
694 ::
std::string(reinterpret_cast<const char*>(value), size));
700 return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705 return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713 output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
output_layer);
718 #pragma GCC diagnostic pop
727 #endif // PROTOBUF_INCLUDED_tfnetwork_2eproto