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/arena.h>
23#include <google/protobuf/arenastring.h>
24#include <google/protobuf/extension_set.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/io/coded_stream.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/metadata.h>
31#include <google/protobuf/repeated_field.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[];
51class TFNetworkModelDefaultTypeInternal;
65 :
public ::google::protobuf::
81 *
this = ::std::move(from);
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94 static const ::google::protobuf::Descriptor *
descriptor();
111 return CreateMaybeMessage<TFNetworkModel>(NULL);
115 return CreateMaybeMessage<TFNetworkModel>(arena);
117 void CopyFrom(const ::google::protobuf::Message &from)
final;
118 void MergeFrom(const ::google::protobuf::Message &from)
final;
128 bool deterministic, ::
google::protobuf::uint8 *target)
const final;
130 return _cached_size_.Get();
136 void SetCachedSize(
int size)
const final;
140 inline ::google::protobuf::Arena *GetArenaNoVirtual()
const {
143 inline void *MaybeArenaPtr()
const {
230 const ::tensorflow::GraphDef &_internal_graph()
const;
233 const ::tensorflow::GraphDef &
graph()
const;
247 ::google::protobuf::int32
depth()
const;
253 ::google::protobuf::int32
x_size()
const;
259 ::google::protobuf::int32
y_size()
const;
282 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
283 ::google::protobuf::internal::ArenaStringPtr spec_;
284 ::google::protobuf::internal::ArenaStringPtr image_input_;
285 ::google::protobuf::internal::ArenaStringPtr image_widths_;
286 ::google::protobuf::internal::ArenaStringPtr image_heights_;
287 ::google::protobuf::internal::ArenaStringPtr output_layer_;
288 ::tensorflow::GraphDef *graph_;
289 ::google::protobuf::int64 global_step_;
290 ::google::protobuf::int32 depth_;
291 ::google::protobuf::int32 x_size_;
292 ::google::protobuf::int32 y_size_;
293 ::google::protobuf::int32 batch_size_;
294 ::google::protobuf::int32 num_classes_;
296 mutable ::google::protobuf::internal::CachedSize _cached_size_;
297 friend struct ::protobuf_tfnetwork_2eproto::TableStruct;
304# pragma GCC diagnostic push
305# pragma GCC diagnostic ignored "-Wstrict-aliasing"
313inline const ::tensorflow::GraphDef &TFNetworkModel::_internal_graph()
const {
317 const ::tensorflow::GraphDef *
p = graph_;
319 return p != NULL ? *
p
320 : *
reinterpret_cast<const ::tensorflow::GraphDef *
>(
321 &::tensorflow::_GraphDef_default_instance_);
326 ::tensorflow::GraphDef *temp = graph_;
331 if (graph_ == NULL) {
332 auto *
p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
339 ::google::protobuf::Arena *message_arena = GetArenaNoVirtual();
340 if (message_arena == NULL) {
341 delete reinterpret_cast<::google::protobuf::MessageLite *
>(graph_);
344 ::google::protobuf::Arena *submessage_arena =
345 reinterpret_cast<::google::protobuf::MessageLite *
>(
graph)->GetArena();
346 if (message_arena != submessage_arena) {
347 graph = ::google::protobuf::internal::GetOwnedMessage(message_arena,
graph, submessage_arena);
358 global_step_ = GOOGLE_LONGLONG(0);
365 global_step_ =
value;
371 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 return spec_.GetNoArena();
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
383 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
389 GOOGLE_DCHECK(
value != NULL);
391 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
392 ::std::string(
value));
396 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
397 ::std::string(
reinterpret_cast<const char *
>(
value), size));
402 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
413 spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
spec);
478 num_classes_ =
value;
497 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
501 return image_input_.GetNoArena();
504 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
509 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
515 GOOGLE_DCHECK(
value != NULL);
517 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
518 ::std::string(
value));
522 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
523 ::std::string(
reinterpret_cast<const char *
>(
value), size));
528 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
533 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
539 image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
546 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
550 return image_widths_.GetNoArena();
553 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
558 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
564 GOOGLE_DCHECK(
value != NULL);
566 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
567 ::std::string(
value));
571 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
572 ::std::string(
reinterpret_cast<const char *
>(
value), size));
577 return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
582 return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
588 image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
595 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
599 return image_heights_.GetNoArena();
602 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
607 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
613 GOOGLE_DCHECK(
value != NULL);
615 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
616 ::std::string(
value));
620 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
621 ::std::string(
reinterpret_cast<const char *
>(
value), size));
626 return image_heights_.MutableNoArena(
627 &::google::protobuf::internal::GetEmptyStringAlreadyInited());
632 return image_heights_.ReleaseNoArena(
633 &::google::protobuf::internal::GetEmptyStringAlreadyInited());
639 image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
646 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
650 return output_layer_.GetNoArena();
653 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
658 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
664 GOOGLE_DCHECK(
value != NULL);
666 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
667 ::std::string(
value));
671 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
672 ::std::string(
reinterpret_cast<const char *
>(
value), size));
677 return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
682 return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
688 output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
694# pragma GCC diagnostic pop
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
static const ::google::protobuf::internal::ParseTable schema[1]
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::ParseTableField entries[]
static const ::google::protobuf::internal::SerializationTable serialization_table[]
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
static const ::google::protobuf::Descriptor * descriptor()
static const int kYSizeFieldNumber
bool IsInitialized() const final
static const TFNetworkModel * internal_default_instance()
const ::std::string & image_heights() const
void set_spec(const ::std::string &value)
const ::std::string & output_layer() const
void set_x_size(::google::protobuf::int32 value)
static const int kUsingCtcFieldNumber
::google::protobuf::Metadata GetMetadata() const final
static const int kBatchSizeFieldNumber
static void InitAsDefaultInstance()
::std::string * mutable_spec()
::tensorflow::GraphDef * mutable_graph()
void set_image_input(const ::std::string &value)
void set_y_size(::google::protobuf::int32 value)
static const int kOutputLayerFieldNumber
void set_output_layer(const ::std::string &value)
static constexpr int kIndexInFileMessages
static const int kImageHeightsFieldNumber
TFNetworkModel * New(::google::protobuf::Arena *arena) const final
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
int GetCachedSize() const final
void Swap(TFNetworkModel *other)
void set_using_ctc(bool value)
void set_allocated_image_heights(::std::string *image_heights)
::std::string * mutable_output_layer()
::std::string * release_image_input()
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
const ::tensorflow::GraphDef & graph() const
void set_allocated_spec(::std::string *spec)
::google::protobuf::int64 global_step() const
void set_image_heights(const ::std::string &value)
::google::protobuf::int32 x_size() const
void clear_output_layer()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::std::string & image_input() const
static const int kXSizeFieldNumber
::std::string * release_spec()
static const int kGraphFieldNumber
static const int kDepthFieldNumber
static const TFNetworkModel & default_instance()
void set_allocated_image_widths(::std::string *image_widths)
void clear_image_widths()
TFNetworkModel * New() const final
void set_num_classes(::google::protobuf::int32 value)
void CopyFrom(const ::google::protobuf::Message &from) final
static const int kNumClassesFieldNumber
::google::protobuf::int32 num_classes() const
::std::string * release_output_layer()
void set_allocated_image_input(::std::string *image_input)
void set_allocated_graph(::tensorflow::GraphDef *graph)
void set_depth(::google::protobuf::int32 value)
void set_allocated_output_layer(::std::string *output_layer)
::google::protobuf::int32 depth() const
static const int kImageWidthsFieldNumber
static const int kGlobalStepFieldNumber
::std::string * release_image_widths()
const ::std::string & image_widths() const
void set_global_step(::google::protobuf::int64 value)
::std::string * mutable_image_widths()
::tensorflow::GraphDef * release_graph()
void MergeFrom(const ::google::protobuf::Message &from) final
::std::string * release_image_heights()
static const int kSpecFieldNumber
TFNetworkModel & operator=(const TFNetworkModel &from)
::std::string * mutable_image_heights()
const ::std::string & spec() const
::google::protobuf::int32 batch_size() const
static const int kImageInputFieldNumber
size_t ByteSizeLong() const final
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void clear_image_heights()
virtual ~TFNetworkModel()
void set_image_widths(const ::std::string &value)
::google::protobuf::int32 y_size() const
::std::string * mutable_image_input()
void set_batch_size(::google::protobuf::int32 value)