tesseract v5.3.3.20231005
tesseract::TFNetworkModel Class Reference

#include <tfnetwork.pb.h>

Inheritance diagram for tesseract::TFNetworkModel:

Public Member Functions

 TFNetworkModel ()
 
virtual ~TFNetworkModel ()
 
 TFNetworkModel (const TFNetworkModel &from)
 
TFNetworkModeloperator= (const TFNetworkModel &from)
 
void Swap (TFNetworkModel *other)
 
TFNetworkModelNew () const final
 
TFNetworkModelNew (::google::protobuf::Arena *arena) const final
 
void CopyFrom (const ::google::protobuf::Message &from) final
 
void MergeFrom (const ::google::protobuf::Message &from) final
 
void CopyFrom (const TFNetworkModel &from)
 
void MergeFrom (const TFNetworkModel &from)
 
void Clear () final
 
bool IsInitialized () const final
 
size_t ByteSizeLong () const final
 
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input) final
 
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const final
 
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray (bool deterministic, ::google::protobuf::uint8 *target) const final
 
int GetCachedSize () const final
 
::google::protobuf::Metadata GetMetadata () const final
 
void clear_spec ()
 
const ::std::string & spec () const
 
void set_spec (const ::std::string &value)
 
void set_spec (const char *value)
 
void set_spec (const char *value, size_t size)
 
::std::string * mutable_spec ()
 
::std::string * release_spec ()
 
void set_allocated_spec (::std::string *spec)
 
void clear_image_input ()
 
const ::std::string & image_input () const
 
void set_image_input (const ::std::string &value)
 
void set_image_input (const char *value)
 
void set_image_input (const char *value, size_t size)
 
::std::string * mutable_image_input ()
 
::std::string * release_image_input ()
 
void set_allocated_image_input (::std::string *image_input)
 
void clear_image_widths ()
 
const ::std::string & image_widths () const
 
void set_image_widths (const ::std::string &value)
 
void set_image_widths (const char *value)
 
void set_image_widths (const char *value, size_t size)
 
::std::string * mutable_image_widths ()
 
::std::string * release_image_widths ()
 
void set_allocated_image_widths (::std::string *image_widths)
 
void clear_image_heights ()
 
const ::std::string & image_heights () const
 
void set_image_heights (const ::std::string &value)
 
void set_image_heights (const char *value)
 
void set_image_heights (const char *value, size_t size)
 
::std::string * mutable_image_heights ()
 
::std::string * release_image_heights ()
 
void set_allocated_image_heights (::std::string *image_heights)
 
void clear_output_layer ()
 
const ::std::string & output_layer () const
 
void set_output_layer (const ::std::string &value)
 
void set_output_layer (const char *value)
 
void set_output_layer (const char *value, size_t size)
 
::std::string * mutable_output_layer ()
 
::std::string * release_output_layer ()
 
void set_allocated_output_layer (::std::string *output_layer)
 
bool has_graph () const
 
void clear_graph ()
 
const ::tensorflow::GraphDef & graph () const
 
::tensorflow::GraphDef * release_graph ()
 
::tensorflow::GraphDef * mutable_graph ()
 
void set_allocated_graph (::tensorflow::GraphDef *graph)
 
void clear_global_step ()
 
::google::protobuf::int64 global_step () const
 
void set_global_step (::google::protobuf::int64 value)
 
void clear_depth ()
 
::google::protobuf::int32 depth () const
 
void set_depth (::google::protobuf::int32 value)
 
void clear_x_size ()
 
::google::protobuf::int32 x_size () const
 
void set_x_size (::google::protobuf::int32 value)
 
void clear_y_size ()
 
::google::protobuf::int32 y_size () const
 
void set_y_size (::google::protobuf::int32 value)
 
void clear_batch_size ()
 
::google::protobuf::int32 batch_size () const
 
void set_batch_size (::google::protobuf::int32 value)
 
void clear_num_classes ()
 
::google::protobuf::int32 num_classes () const
 
void set_num_classes (::google::protobuf::int32 value)
 
void clear_using_ctc ()
 
bool using_ctc () const
 
void set_using_ctc (bool value)
 

Static Public Member Functions

static const ::google::protobuf::Descriptor * descriptor ()
 
static const TFNetworkModeldefault_instance ()
 
static void InitAsDefaultInstance ()
 
static const TFNetworkModelinternal_default_instance ()
 

Static Public Attributes

static constexpr int kIndexInFileMessages = 0
 
static const int kSpecFieldNumber = 3
 
static const int kImageInputFieldNumber = 11
 
static const int kImageWidthsFieldNumber = 12
 
static const int kImageHeightsFieldNumber = 13
 
static const int kOutputLayerFieldNumber = 14
 
static const int kGraphFieldNumber = 1
 
static const int kGlobalStepFieldNumber = 2
 
static const int kDepthFieldNumber = 4
 
static const int kXSizeFieldNumber = 5
 
static const int kYSizeFieldNumber = 6
 
static const int kBatchSizeFieldNumber = 8
 
static const int kNumClassesFieldNumber = 9
 
static const int kUsingCtcFieldNumber = 10
 

Friends

struct ::protobuf_tfnetwork_2eproto::TableStruct
 
void swap (TFNetworkModel &a, TFNetworkModel &b)
 

Detailed Description

Definition at line 64 of file tfnetwork.pb.h.

Constructor & Destructor Documentation

◆ TFNetworkModel() [1/2]

tesseract::TFNetworkModel::TFNetworkModel ( )

Definition at line 167 of file tfnetwork.pb.cc.

167 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
168 ::google::protobuf::internal::InitSCC(&protobuf_tfnetwork_2eproto::scc_info_TFNetworkModel.base);
169 SharedCtor();
170 // @@protoc_insertion_point(constructor:tesseract.TFNetworkModel)
171}
::google::protobuf::internal::SCCInfo< 1 > scc_info_TFNetworkModel
Definition: tfnetwork.pb.cc:45

◆ ~TFNetworkModel()

tesseract::TFNetworkModel::~TFNetworkModel ( )
virtual

Definition at line 224 of file tfnetwork.pb.cc.

224 {
225 // @@protoc_insertion_point(destructor:tesseract.TFNetworkModel)
226 SharedDtor();
227}

◆ TFNetworkModel() [2/2]

tesseract::TFNetworkModel::TFNetworkModel ( const TFNetworkModel from)

Definition at line 172 of file tfnetwork.pb.cc.

173 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
174 _internal_metadata_.MergeFrom(from._internal_metadata_);
175 spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
176 if (from.spec().size() > 0) {
177 spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
178 from.spec_);
179 }
180 image_input_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
181 if (from.image_input().size() > 0) {
182 image_input_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
183 from.image_input_);
184 }
185 image_widths_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
186 if (from.image_widths().size() > 0) {
187 image_widths_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
188 from.image_widths_);
189 }
190 image_heights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
191 if (from.image_heights().size() > 0) {
192 image_heights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
193 from.image_heights_);
194 }
195 output_layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
196 if (from.output_layer().size() > 0) {
197 output_layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
198 from.output_layer_);
199 }
200 if (from.has_graph()) {
201 graph_ = new ::tensorflow::GraphDef(*from.graph_);
202 } else {
203 graph_ = NULL;
204 }
205 ::memcpy(&global_step_, &from.global_step_,
206 static_cast<size_t>(reinterpret_cast<char *>(&using_ctc_) -
207 reinterpret_cast<char *>(&global_step_)) +
208 sizeof(using_ctc_));
209 // @@protoc_insertion_point(copy_constructor:tesseract.TFNetworkModel)
210}

Member Function Documentation

◆ batch_size()

google::protobuf::int32 tesseract::TFNetworkModel::batch_size ( ) const
inline

Definition at line 460 of file tfnetwork.pb.h.

460 {
461 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.batch_size)
462 return batch_size_;
463}

◆ ByteSizeLong()

size_t tesseract::TFNetworkModel::ByteSizeLong ( ) const
final

Definition at line 709 of file tfnetwork.pb.cc.

709 {
710 // @@protoc_insertion_point(message_byte_size_start:tesseract.TFNetworkModel)
711 size_t total_size = 0;
712
713 if ((_internal_metadata_.have_unknown_fields() &&
714 ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
715 total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
716 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()
717 ? _internal_metadata_.unknown_fields()
718 : _internal_metadata_.default_instance()));
719 }
720 // string spec = 3;
721 if (this->spec().size() > 0) {
722 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->spec());
723 }
724
725 // string image_input = 11;
726 if (this->image_input().size() > 0) {
727 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->image_input());
728 }
729
730 // string image_widths = 12;
731 if (this->image_widths().size() > 0) {
732 total_size +=
733 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->image_widths());
734 }
735
736 // string image_heights = 13;
737 if (this->image_heights().size() > 0) {
738 total_size +=
739 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->image_heights());
740 }
741
742 // string output_layer = 14;
743 if (this->output_layer().size() > 0) {
744 total_size +=
745 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->output_layer());
746 }
747
748 // .tensorflow.GraphDef graph = 1;
749 if (this->has_graph()) {
750 total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*graph_);
751 }
752
753 // int64 global_step = 2;
754 if (this->global_step() != 0) {
755 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size(this->global_step());
756 }
757
758 // int32 depth = 4;
759 if (this->depth() != 0) {
760 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(this->depth());
761 }
762
763 // int32 x_size = 5;
764 if (this->x_size() != 0) {
765 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(this->x_size());
766 }
767
768 // int32 y_size = 6;
769 if (this->y_size() != 0) {
770 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(this->y_size());
771 }
772
773 // int32 batch_size = 8;
774 if (this->batch_size() != 0) {
775 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(this->batch_size());
776 }
777
778 // int32 num_classes = 9;
779 if (this->num_classes() != 0) {
780 total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(this->num_classes());
781 }
782
783 // bool using_ctc = 10;
784 if (this->using_ctc() != 0) {
785 total_size += 1 + 1;
786 }
787
788 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
789 SetCachedSize(cached_size);
790 return total_size;
791}
const ::std::string & image_heights() const
Definition: tfnetwork.pb.h:597
const ::std::string & output_layer() const
Definition: tfnetwork.pb.h:648
::google::protobuf::int64 global_step() const
Definition: tfnetwork.pb.h:360
::google::protobuf::int32 x_size() const
Definition: tfnetwork.pb.h:434
const ::std::string & image_input() const
Definition: tfnetwork.pb.h:499
::google::protobuf::int32 num_classes() const
Definition: tfnetwork.pb.h:473
::google::protobuf::int32 depth() const
Definition: tfnetwork.pb.h:421
const ::std::string & image_widths() const
Definition: tfnetwork.pb.h:548
const ::std::string & spec() const
Definition: tfnetwork.pb.h:373
::google::protobuf::int32 batch_size() const
Definition: tfnetwork.pb.h:460
::google::protobuf::int32 y_size() const
Definition: tfnetwork.pb.h:447

◆ Clear()

void tesseract::TFNetworkModel::Clear ( )
final

Definition at line 252 of file tfnetwork.pb.cc.

252 {
253 // @@protoc_insertion_point(message_clear_start:tesseract.TFNetworkModel)
254 ::google::protobuf::uint32 cached_has_bits = 0;
255 // Prevent compiler warnings about cached_has_bits being unused
256 (void)cached_has_bits;
257
258 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
261 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
262 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263 if (GetArenaNoVirtual() == NULL && graph_ != NULL) {
264 delete graph_;
265 }
266 graph_ = NULL;
267 ::memset(&global_step_, 0,
268 static_cast<size_t>(reinterpret_cast<char *>(&using_ctc_) -
269 reinterpret_cast<char *>(&global_step_)) +
270 sizeof(using_ctc_));
271 _internal_metadata_.Clear();
272}

◆ clear_batch_size()

void tesseract::TFNetworkModel::clear_batch_size ( )
inline

Definition at line 457 of file tfnetwork.pb.h.

457 {
458 batch_size_ = 0;
459}

◆ clear_depth()

void tesseract::TFNetworkModel::clear_depth ( )
inline

Definition at line 418 of file tfnetwork.pb.h.

418 {
419 depth_ = 0;
420}

◆ clear_global_step()

void tesseract::TFNetworkModel::clear_global_step ( )
inline

Definition at line 357 of file tfnetwork.pb.h.

357 {
358 global_step_ = GOOGLE_LONGLONG(0);
359}

◆ clear_graph()

void tesseract::TFNetworkModel::clear_graph ( )

Definition at line 145 of file tfnetwork.pb.cc.

145 {
146 if (GetArenaNoVirtual() == NULL && graph_ != NULL) {
147 delete graph_;
148 }
149 graph_ = NULL;
150}

◆ clear_image_heights()

void tesseract::TFNetworkModel::clear_image_heights ( )
inline

Definition at line 594 of file tfnetwork.pb.h.

594 {
595 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
596}

◆ clear_image_input()

void tesseract::TFNetworkModel::clear_image_input ( )
inline

Definition at line 496 of file tfnetwork.pb.h.

496 {
497 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
498}

◆ clear_image_widths()

void tesseract::TFNetworkModel::clear_image_widths ( )
inline

Definition at line 545 of file tfnetwork.pb.h.

545 {
546 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547}

◆ clear_num_classes()

void tesseract::TFNetworkModel::clear_num_classes ( )
inline

Definition at line 470 of file tfnetwork.pb.h.

470 {
471 num_classes_ = 0;
472}

◆ clear_output_layer()

void tesseract::TFNetworkModel::clear_output_layer ( )
inline

Definition at line 645 of file tfnetwork.pb.h.

645 {
646 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
647}

◆ clear_spec()

void tesseract::TFNetworkModel::clear_spec ( )
inline

Definition at line 370 of file tfnetwork.pb.h.

370 {
371 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372}

◆ clear_using_ctc()

void tesseract::TFNetworkModel::clear_using_ctc ( )
inline

Definition at line 483 of file tfnetwork.pb.h.

483 {
484 using_ctc_ = false;
485}

◆ clear_x_size()

void tesseract::TFNetworkModel::clear_x_size ( )
inline

Definition at line 431 of file tfnetwork.pb.h.

431 {
432 x_size_ = 0;
433}

◆ clear_y_size()

void tesseract::TFNetworkModel::clear_y_size ( )
inline

Definition at line 444 of file tfnetwork.pb.h.

444 {
445 y_size_ = 0;
446}

◆ CopyFrom() [1/2]

void tesseract::TFNetworkModel::CopyFrom ( const ::google::protobuf::Message &  from)
final

Definition at line 860 of file tfnetwork.pb.cc.

860 {
861 // @@protoc_insertion_point(generalized_copy_from_start:tesseract.TFNetworkModel)
862 if (&from == this)
863 return;
864 Clear();
865 MergeFrom(from);
866}
void MergeFrom(const ::google::protobuf::Message &from) final

◆ CopyFrom() [2/2]

void tesseract::TFNetworkModel::CopyFrom ( const TFNetworkModel from)

Definition at line 868 of file tfnetwork.pb.cc.

868 {
869 // @@protoc_insertion_point(class_specific_copy_from_start:tesseract.TFNetworkModel)
870 if (&from == this)
871 return;
872 Clear();
873 MergeFrom(from);
874}

◆ default_instance()

const TFNetworkModel & tesseract::TFNetworkModel::default_instance ( )
static

Definition at line 247 of file tfnetwork.pb.cc.

247 {
248 ::google::protobuf::internal::InitSCC(&protobuf_tfnetwork_2eproto::scc_info_TFNetworkModel.base);
250}
static const TFNetworkModel * internal_default_instance()
Definition: tfnetwork.pb.h:98

◆ depth()

google::protobuf::int32 tesseract::TFNetworkModel::depth ( ) const
inline

Definition at line 421 of file tfnetwork.pb.h.

421 {
422 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.depth)
423 return depth_;
424}

◆ descriptor()

const ::google::protobuf::Descriptor * tesseract::TFNetworkModel::descriptor ( )
static

◆ GetCachedSize()

int tesseract::TFNetworkModel::GetCachedSize ( ) const
inlinefinal

Definition at line 129 of file tfnetwork.pb.h.

129 {
130 return _cached_size_.Get();
131 }

◆ GetMetadata()

google::protobuf::Metadata tesseract::TFNetworkModel::GetMetadata ( ) const
final

◆ global_step()

google::protobuf::int64 tesseract::TFNetworkModel::global_step ( ) const
inline

Definition at line 360 of file tfnetwork.pb.h.

360 {
361 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.global_step)
362 return global_step_;
363}

◆ graph()

const ::tensorflow::GraphDef & tesseract::TFNetworkModel::graph ( ) const
inline

Definition at line 316 of file tfnetwork.pb.h.

316 {
317 const ::tensorflow::GraphDef *p = graph_;
318 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.graph)
319 return p != NULL ? *p
320 : *reinterpret_cast<const ::tensorflow::GraphDef *>(
321 &::tensorflow::_GraphDef_default_instance_);
322}
const char * p

◆ has_graph()

bool tesseract::TFNetworkModel::has_graph ( ) const
inline

Definition at line 310 of file tfnetwork.pb.h.

310 {
311 return this != internal_default_instance() && graph_ != NULL;
312}

◆ image_heights()

const ::std::string & tesseract::TFNetworkModel::image_heights ( ) const
inline

Definition at line 597 of file tfnetwork.pb.h.

597 {
598 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_heights)
599 return image_heights_.GetNoArena();
600}

◆ image_input()

const ::std::string & tesseract::TFNetworkModel::image_input ( ) const
inline

Definition at line 499 of file tfnetwork.pb.h.

499 {
500 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_input)
501 return image_input_.GetNoArena();
502}

◆ image_widths()

const ::std::string & tesseract::TFNetworkModel::image_widths ( ) const
inline

Definition at line 548 of file tfnetwork.pb.h.

548 {
549 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_widths)
550 return image_widths_.GetNoArena();
551}

◆ InitAsDefaultInstance()

void tesseract::TFNetworkModel::InitAsDefaultInstance ( )
static

Definition at line 141 of file tfnetwork.pb.cc.

141 {
143 const_cast<::tensorflow::GraphDef *>(::tensorflow::GraphDef::internal_default_instance());
144}
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
Definition: tfnetwork.pb.h:52
::google::protobuf::internal::ExplicitlyConstructed< TFNetworkModel > _instance
Definition: tfnetwork.pb.cc:30

◆ internal_default_instance()

static const TFNetworkModel * tesseract::TFNetworkModel::internal_default_instance ( )
inlinestatic

Definition at line 98 of file tfnetwork.pb.h.

98 {
99 return reinterpret_cast<const TFNetworkModel *>(&_TFNetworkModel_default_instance_);
100 }

◆ InternalSerializeWithCachedSizesToArray()

google::protobuf::uint8 * tesseract::TFNetworkModel::InternalSerializeWithCachedSizesToArray ( bool  deterministic,
::google::protobuf::uint8 *  target 
) const
final

Definition at line 593 of file tfnetwork.pb.cc.

594 {
595 (void)deterministic; // Unused
596 // @@protoc_insertion_point(serialize_to_array_start:tesseract.TFNetworkModel)
597 ::google::protobuf::uint32 cached_has_bits = 0;
598 (void)cached_has_bits;
599
600 // .tensorflow.GraphDef graph = 1;
601 if (this->has_graph()) {
602 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageToArray(
603 1, this->_internal_graph(), deterministic, target);
604 }
605
606 // int64 global_step = 2;
607 if (this->global_step() != 0) {
608 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->global_step(),
609 target);
610 }
611
612 // string spec = 3;
613 if (this->spec().size() > 0) {
614 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
615 this->spec().data(), static_cast<int>(this->spec().length()),
616 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tesseract.TFNetworkModel.spec");
617 target =
618 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(3, this->spec(), target);
619 }
620
621 // int32 depth = 4;
622 if (this->depth() != 0) {
623 target =
624 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->depth(), target);
625 }
626
627 // int32 x_size = 5;
628 if (this->x_size() != 0) {
629 target =
630 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->x_size(), target);
631 }
632
633 // int32 y_size = 6;
634 if (this->y_size() != 0) {
635 target =
636 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->y_size(), target);
637 }
638
639 // int32 batch_size = 8;
640 if (this->batch_size() != 0) {
641 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->batch_size(),
642 target);
643 }
644
645 // int32 num_classes = 9;
646 if (this->num_classes() != 0) {
647 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->num_classes(),
648 target);
649 }
650
651 // bool using_ctc = 10;
652 if (this->using_ctc() != 0) {
653 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->using_ctc(),
654 target);
655 }
656
657 // string image_input = 11;
658 if (this->image_input().size() > 0) {
659 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
660 this->image_input().data(), static_cast<int>(this->image_input().length()),
661 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
662 "tesseract.TFNetworkModel.image_input");
663 target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
664 11, this->image_input(), target);
665 }
666
667 // string image_widths = 12;
668 if (this->image_widths().size() > 0) {
669 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
670 this->image_widths().data(), static_cast<int>(this->image_widths().length()),
671 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
672 "tesseract.TFNetworkModel.image_widths");
673 target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
674 12, this->image_widths(), target);
675 }
676
677 // string image_heights = 13;
678 if (this->image_heights().size() > 0) {
679 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
680 this->image_heights().data(), static_cast<int>(this->image_heights().length()),
681 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
682 "tesseract.TFNetworkModel.image_heights");
683 target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
684 13, this->image_heights(), target);
685 }
686
687 // string output_layer = 14;
688 if (this->output_layer().size() > 0) {
689 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
690 this->output_layer().data(), static_cast<int>(this->output_layer().length()),
691 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
692 "tesseract.TFNetworkModel.output_layer");
693 target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
694 14, this->output_layer(), target);
695 }
696
697 if ((_internal_metadata_.have_unknown_fields() &&
698 ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
699 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
700 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()
701 ? _internal_metadata_.unknown_fields()
702 : _internal_metadata_.default_instance()),
703 target);
704 }
705 // @@protoc_insertion_point(serialize_to_array_end:tesseract.TFNetworkModel)
706 return target;
707}

◆ IsInitialized()

bool tesseract::TFNetworkModel::IsInitialized ( ) const
final

Definition at line 876 of file tfnetwork.pb.cc.

876 {
877 return true;
878}

◆ MergeFrom() [1/2]

void tesseract::TFNetworkModel::MergeFrom ( const ::google::protobuf::Message &  from)
final

Definition at line 793 of file tfnetwork.pb.cc.

793 {
794 // @@protoc_insertion_point(generalized_merge_from_start:tesseract.TFNetworkModel)
795 GOOGLE_DCHECK_NE(&from, this);
796 const TFNetworkModel *source =
797 ::google::protobuf::internal::DynamicCastToGenerated<const TFNetworkModel>(&from);
798 if (source == NULL) {
799 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tesseract.TFNetworkModel)
800 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
801 } else {
802 // @@protoc_insertion_point(generalized_merge_from_cast_success:tesseract.TFNetworkModel)
803 MergeFrom(*source);
804 }
805}

◆ MergeFrom() [2/2]

void tesseract::TFNetworkModel::MergeFrom ( const TFNetworkModel from)

Definition at line 807 of file tfnetwork.pb.cc.

807 {
808 // @@protoc_insertion_point(class_specific_merge_from_start:tesseract.TFNetworkModel)
809 GOOGLE_DCHECK_NE(&from, this);
810 _internal_metadata_.MergeFrom(from._internal_metadata_);
811 ::google::protobuf::uint32 cached_has_bits = 0;
812 (void)cached_has_bits;
813
814 if (from.spec().size() > 0) {
815 spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
816 from.spec_);
817 }
818 if (from.image_input().size() > 0) {
819 image_input_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
820 from.image_input_);
821 }
822 if (from.image_widths().size() > 0) {
823 image_widths_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
824 from.image_widths_);
825 }
826 if (from.image_heights().size() > 0) {
827 image_heights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
828 from.image_heights_);
829 }
830 if (from.output_layer().size() > 0) {
831 output_layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
832 from.output_layer_);
833 }
834 if (from.has_graph()) {
835 mutable_graph()->::tensorflow::GraphDef::MergeFrom(from.graph());
836 }
837 if (from.global_step() != 0) {
838 set_global_step(from.global_step());
839 }
840 if (from.depth() != 0) {
841 set_depth(from.depth());
842 }
843 if (from.x_size() != 0) {
844 set_x_size(from.x_size());
845 }
846 if (from.y_size() != 0) {
847 set_y_size(from.y_size());
848 }
849 if (from.batch_size() != 0) {
850 set_batch_size(from.batch_size());
851 }
852 if (from.num_classes() != 0) {
853 set_num_classes(from.num_classes());
854 }
855 if (from.using_ctc() != 0) {
856 set_using_ctc(from.using_ctc());
857 }
858}
void set_x_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:438
::tensorflow::GraphDef * mutable_graph()
Definition: tfnetwork.pb.h:330
void set_y_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:451
void set_using_ctc(bool value)
Definition: tfnetwork.pb.h:490
void set_num_classes(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:477
void set_depth(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:425
void set_global_step(::google::protobuf::int64 value)
Definition: tfnetwork.pb.h:364
void set_batch_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:464

◆ MergePartialFromCodedStream()

bool tesseract::TFNetworkModel::MergePartialFromCodedStream ( ::google::protobuf::io::CodedInputStream *  input)
final

Definition at line 274 of file tfnetwork.pb.cc.

274 {
275#define DO_(EXPRESSION) \
276 if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) \
277 goto failure
278 ::google::protobuf::uint32 tag;
279 // @@protoc_insertion_point(parse_start:tesseract.TFNetworkModel)
280 for (;;) {
281 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
282 tag = p.first;
283 if (!p.second)
284 goto handle_unusual;
285 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
286 // .tensorflow.GraphDef graph = 1;
287 case 1: {
288 if (static_cast<::google::protobuf::uint8>(tag) ==
289 static_cast<::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
290 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, mutable_graph()));
291 } else {
292 goto handle_unusual;
293 }
294 break;
295 }
296
297 // int64 global_step = 2;
298 case 2: {
299 if (static_cast<::google::protobuf::uint8>(tag) ==
300 static_cast<::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
301 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
302 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
303 input, &global_step_)));
304 } else {
305 goto handle_unusual;
306 }
307 break;
308 }
309
310 // string spec = 3;
311 case 3: {
312 if (static_cast<::google::protobuf::uint8>(tag) ==
313 static_cast<::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
314 DO_(::google::protobuf::internal::WireFormatLite::ReadString(input,
315 this->mutable_spec()));
316 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
317 this->spec().data(), static_cast<int>(this->spec().length()),
318 ::google::protobuf::internal::WireFormatLite::PARSE,
319 "tesseract.TFNetworkModel.spec"));
320 } else {
321 goto handle_unusual;
322 }
323 break;
324 }
325
326 // int32 depth = 4;
327 case 4: {
328 if (static_cast<::google::protobuf::uint8>(tag) ==
329 static_cast<::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
330 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
331 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
332 input, &depth_)));
333 } else {
334 goto handle_unusual;
335 }
336 break;
337 }
338
339 // int32 x_size = 5;
340 case 5: {
341 if (static_cast<::google::protobuf::uint8>(tag) ==
342 static_cast<::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
343 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
344 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
345 input, &x_size_)));
346 } else {
347 goto handle_unusual;
348 }
349 break;
350 }
351
352 // int32 y_size = 6;
353 case 6: {
354 if (static_cast<::google::protobuf::uint8>(tag) ==
355 static_cast<::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
356 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
357 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
358 input, &y_size_)));
359 } else {
360 goto handle_unusual;
361 }
362 break;
363 }
364
365 // int32 batch_size = 8;
366 case 8: {
367 if (static_cast<::google::protobuf::uint8>(tag) ==
368 static_cast<::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
369 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
370 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
371 input, &batch_size_)));
372 } else {
373 goto handle_unusual;
374 }
375 break;
376 }
377
378 // int32 num_classes = 9;
379 case 9: {
380 if (static_cast<::google::protobuf::uint8>(tag) ==
381 static_cast<::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
382 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
383 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
384 input, &num_classes_)));
385 } else {
386 goto handle_unusual;
387 }
388 break;
389 }
390
391 // bool using_ctc = 10;
392 case 10: {
393 if (static_cast<::google::protobuf::uint8>(tag) ==
394 static_cast<::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
395 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
396 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(input, &using_ctc_)));
397 } else {
398 goto handle_unusual;
399 }
400 break;
401 }
402
403 // string image_input = 11;
404 case 11: {
405 if (static_cast<::google::protobuf::uint8>(tag) ==
406 static_cast<::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
407 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
408 input, this->mutable_image_input()));
409 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
410 this->image_input().data(), static_cast<int>(this->image_input().length()),
411 ::google::protobuf::internal::WireFormatLite::PARSE,
412 "tesseract.TFNetworkModel.image_input"));
413 } else {
414 goto handle_unusual;
415 }
416 break;
417 }
418
419 // string image_widths = 12;
420 case 12: {
421 if (static_cast<::google::protobuf::uint8>(tag) ==
422 static_cast<::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
423 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
424 input, this->mutable_image_widths()));
425 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
426 this->image_widths().data(), static_cast<int>(this->image_widths().length()),
427 ::google::protobuf::internal::WireFormatLite::PARSE,
428 "tesseract.TFNetworkModel.image_widths"));
429 } else {
430 goto handle_unusual;
431 }
432 break;
433 }
434
435 // string image_heights = 13;
436 case 13: {
437 if (static_cast<::google::protobuf::uint8>(tag) ==
438 static_cast<::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
439 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
440 input, this->mutable_image_heights()));
441 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
442 this->image_heights().data(), static_cast<int>(this->image_heights().length()),
443 ::google::protobuf::internal::WireFormatLite::PARSE,
444 "tesseract.TFNetworkModel.image_heights"));
445 } else {
446 goto handle_unusual;
447 }
448 break;
449 }
450
451 // string output_layer = 14;
452 case 14: {
453 if (static_cast<::google::protobuf::uint8>(tag) ==
454 static_cast<::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
455 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
456 input, this->mutable_output_layer()));
457 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
458 this->output_layer().data(), static_cast<int>(this->output_layer().length()),
459 ::google::protobuf::internal::WireFormatLite::PARSE,
460 "tesseract.TFNetworkModel.output_layer"));
461 } else {
462 goto handle_unusual;
463 }
464 break;
465 }
466
467 default: {
468 handle_unusual:
469 if (tag == 0) {
470 goto success;
471 }
472 DO_(::google::protobuf::internal::WireFormat::SkipField(
473 input, tag, _internal_metadata_.mutable_unknown_fields()));
474 break;
475 }
476 }
477 }
478success:
479 // @@protoc_insertion_point(parse_success:tesseract.TFNetworkModel)
480 return true;
481failure:
482 // @@protoc_insertion_point(parse_failure:tesseract.TFNetworkModel)
483 return false;
484#undef DO_
485}
#define DO_(EXPRESSION)
::std::string * mutable_spec()
Definition: tfnetwork.pb.h:400
::std::string * mutable_output_layer()
Definition: tfnetwork.pb.h:675
::std::string * mutable_image_widths()
Definition: tfnetwork.pb.h:575
::std::string * mutable_image_heights()
Definition: tfnetwork.pb.h:624
::std::string * mutable_image_input()
Definition: tfnetwork.pb.h:526

◆ mutable_graph()

tensorflow::GraphDef * tesseract::TFNetworkModel::mutable_graph ( )
inline

Definition at line 330 of file tfnetwork.pb.h.

330 {
331 if (graph_ == NULL) {
332 auto *p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
333 graph_ = p;
334 }
335 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.graph)
336 return graph_;
337}

◆ mutable_image_heights()

std::string * tesseract::TFNetworkModel::mutable_image_heights ( )
inline

Definition at line 624 of file tfnetwork.pb.h.

624 {
625 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_heights)
626 return image_heights_.MutableNoArena(
627 &::google::protobuf::internal::GetEmptyStringAlreadyInited());
628}

◆ mutable_image_input()

std::string * tesseract::TFNetworkModel::mutable_image_input ( )
inline

Definition at line 526 of file tfnetwork.pb.h.

526 {
527 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_input)
528 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
529}

◆ mutable_image_widths()

std::string * tesseract::TFNetworkModel::mutable_image_widths ( )
inline

Definition at line 575 of file tfnetwork.pb.h.

575 {
576 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_widths)
577 return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
578}

◆ mutable_output_layer()

std::string * tesseract::TFNetworkModel::mutable_output_layer ( )
inline

Definition at line 675 of file tfnetwork.pb.h.

675 {
676 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.output_layer)
677 return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
678}

◆ mutable_spec()

std::string * tesseract::TFNetworkModel::mutable_spec ( )
inline

Definition at line 400 of file tfnetwork.pb.h.

400 {
401 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.spec)
402 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403}

◆ New() [1/2]

TFNetworkModel * tesseract::TFNetworkModel::New ( ) const
inlinefinal

Definition at line 110 of file tfnetwork.pb.h.

110 {
111 return CreateMaybeMessage<TFNetworkModel>(NULL);
112 }

◆ New() [2/2]

TFNetworkModel * tesseract::TFNetworkModel::New ( ::google::protobuf::Arena *  arena) const
inlinefinal

Definition at line 114 of file tfnetwork.pb.h.

114 {
115 return CreateMaybeMessage<TFNetworkModel>(arena);
116 }

◆ num_classes()

google::protobuf::int32 tesseract::TFNetworkModel::num_classes ( ) const
inline

Definition at line 473 of file tfnetwork.pb.h.

473 {
474 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.num_classes)
475 return num_classes_;
476}

◆ operator=()

TFNetworkModel & tesseract::TFNetworkModel::operator= ( const TFNetworkModel from)
inline

Definition at line 75 of file tfnetwork.pb.h.

75 {
76 CopyFrom(from);
77 return *this;
78 }
void CopyFrom(const ::google::protobuf::Message &from) final

◆ output_layer()

const ::std::string & tesseract::TFNetworkModel::output_layer ( ) const
inline

Definition at line 648 of file tfnetwork.pb.h.

648 {
649 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.output_layer)
650 return output_layer_.GetNoArena();
651}

◆ release_graph()

tensorflow::GraphDef * tesseract::TFNetworkModel::release_graph ( )
inline

Definition at line 323 of file tfnetwork.pb.h.

323 {
324 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.graph)
325
326 ::tensorflow::GraphDef *temp = graph_;
327 graph_ = NULL;
328 return temp;
329}

◆ release_image_heights()

std::string * tesseract::TFNetworkModel::release_image_heights ( )
inline

Definition at line 629 of file tfnetwork.pb.h.

629 {
630 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_heights)
631
632 return image_heights_.ReleaseNoArena(
633 &::google::protobuf::internal::GetEmptyStringAlreadyInited());
634}

◆ release_image_input()

std::string * tesseract::TFNetworkModel::release_image_input ( )
inline

Definition at line 530 of file tfnetwork.pb.h.

530 {
531 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_input)
532
533 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534}

◆ release_image_widths()

std::string * tesseract::TFNetworkModel::release_image_widths ( )
inline

Definition at line 579 of file tfnetwork.pb.h.

579 {
580 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_widths)
581
582 return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
583}

◆ release_output_layer()

std::string * tesseract::TFNetworkModel::release_output_layer ( )
inline

Definition at line 679 of file tfnetwork.pb.h.

679 {
680 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.output_layer)
681
682 return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
683}

◆ release_spec()

std::string * tesseract::TFNetworkModel::release_spec ( )
inline

Definition at line 404 of file tfnetwork.pb.h.

404 {
405 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.spec)
406
407 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408}

◆ SerializeWithCachedSizes()

void tesseract::TFNetworkModel::SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream *  output) const
final

Definition at line 487 of file tfnetwork.pb.cc.

488 {
489 // @@protoc_insertion_point(serialize_start:tesseract.TFNetworkModel)
490 ::google::protobuf::uint32 cached_has_bits = 0;
491 (void)cached_has_bits;
492
493 // .tensorflow.GraphDef graph = 1;
494 if (this->has_graph()) {
495 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
496 1, this->_internal_graph(), output);
497 }
498
499 // int64 global_step = 2;
500 if (this->global_step() != 0) {
501 ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->global_step(), output);
502 }
503
504 // string spec = 3;
505 if (this->spec().size() > 0) {
506 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
507 this->spec().data(), static_cast<int>(this->spec().length()),
508 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tesseract.TFNetworkModel.spec");
509 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(3, this->spec(), output);
510 }
511
512 // int32 depth = 4;
513 if (this->depth() != 0) {
514 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->depth(), output);
515 }
516
517 // int32 x_size = 5;
518 if (this->x_size() != 0) {
519 ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->x_size(), output);
520 }
521
522 // int32 y_size = 6;
523 if (this->y_size() != 0) {
524 ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->y_size(), output);
525 }
526
527 // int32 batch_size = 8;
528 if (this->batch_size() != 0) {
529 ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->batch_size(), output);
530 }
531
532 // int32 num_classes = 9;
533 if (this->num_classes() != 0) {
534 ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->num_classes(), output);
535 }
536
537 // bool using_ctc = 10;
538 if (this->using_ctc() != 0) {
539 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->using_ctc(), output);
540 }
541
542 // string image_input = 11;
543 if (this->image_input().size() > 0) {
544 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
545 this->image_input().data(), static_cast<int>(this->image_input().length()),
546 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
547 "tesseract.TFNetworkModel.image_input");
548 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(11, this->image_input(),
549 output);
550 }
551
552 // string image_widths = 12;
553 if (this->image_widths().size() > 0) {
554 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
555 this->image_widths().data(), static_cast<int>(this->image_widths().length()),
556 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
557 "tesseract.TFNetworkModel.image_widths");
558 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(12, this->image_widths(),
559 output);
560 }
561
562 // string image_heights = 13;
563 if (this->image_heights().size() > 0) {
564 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
565 this->image_heights().data(), static_cast<int>(this->image_heights().length()),
566 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
567 "tesseract.TFNetworkModel.image_heights");
568 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(13, this->image_heights(),
569 output);
570 }
571
572 // string output_layer = 14;
573 if (this->output_layer().size() > 0) {
574 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
575 this->output_layer().data(), static_cast<int>(this->output_layer().length()),
576 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
577 "tesseract.TFNetworkModel.output_layer");
578 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(14, this->output_layer(),
579 output);
580 }
581
582 if ((_internal_metadata_.have_unknown_fields() &&
583 ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
584 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
585 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()
586 ? _internal_metadata_.unknown_fields()
587 : _internal_metadata_.default_instance()),
588 output);
589 }
590 // @@protoc_insertion_point(serialize_end:tesseract.TFNetworkModel)
591}

◆ set_allocated_graph()

void tesseract::TFNetworkModel::set_allocated_graph ( ::tensorflow::GraphDef *  graph)
inline

Definition at line 338 of file tfnetwork.pb.h.

338 {
339 ::google::protobuf::Arena *message_arena = GetArenaNoVirtual();
340 if (message_arena == NULL) {
341 delete reinterpret_cast<::google::protobuf::MessageLite *>(graph_);
342 }
343 if (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);
348 }
349
350 } else {
351 }
352 graph_ = graph;
353 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.graph)
354}
const ::tensorflow::GraphDef & graph() const
Definition: tfnetwork.pb.h:316

◆ set_allocated_image_heights()

void tesseract::TFNetworkModel::set_allocated_image_heights ( ::std::string *  image_heights)
inline

Definition at line 635 of file tfnetwork.pb.h.

635 {
636 if (image_heights != NULL) {
637 } else {
638 }
639 image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_heights)
642}

◆ set_allocated_image_input()

void tesseract::TFNetworkModel::set_allocated_image_input ( ::std::string *  image_input)
inline

Definition at line 535 of file tfnetwork.pb.h.

535 {
536 if (image_input != NULL) {
537 } else {
538 }
539 image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
541 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_input)
542}

◆ set_allocated_image_widths()

void tesseract::TFNetworkModel::set_allocated_image_widths ( ::std::string *  image_widths)
inline

Definition at line 584 of file tfnetwork.pb.h.

584 {
585 if (image_widths != NULL) {
586 } else {
587 }
588 image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
590 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_widths)
591}

◆ set_allocated_output_layer()

void tesseract::TFNetworkModel::set_allocated_output_layer ( ::std::string *  output_layer)
inline

Definition at line 684 of file tfnetwork.pb.h.

684 {
685 if (output_layer != NULL) {
686 } else {
687 }
688 output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
690 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.output_layer)
691}

◆ set_allocated_spec()

void tesseract::TFNetworkModel::set_allocated_spec ( ::std::string *  spec)
inline

Definition at line 409 of file tfnetwork.pb.h.

409 {
410 if (spec != NULL) {
411 } else {
412 }
413 spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec);
414 // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.spec)
415}

◆ set_batch_size()

void tesseract::TFNetworkModel::set_batch_size ( ::google::protobuf::int32  value)
inline

Definition at line 464 of file tfnetwork.pb.h.

464 {
465 batch_size_ = value;
466 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.batch_size)
467}
int value

◆ set_depth()

void tesseract::TFNetworkModel::set_depth ( ::google::protobuf::int32  value)
inline

Definition at line 425 of file tfnetwork.pb.h.

425 {
426 depth_ = value;
427 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.depth)
428}

◆ set_global_step()

void tesseract::TFNetworkModel::set_global_step ( ::google::protobuf::int64  value)
inline

Definition at line 364 of file tfnetwork.pb.h.

364 {
365 global_step_ = value;
366 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.global_step)
367}

◆ set_image_heights() [1/3]

void tesseract::TFNetworkModel::set_image_heights ( const ::std::string &  value)
inline

Definition at line 601 of file tfnetwork.pb.h.

601 {
602 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
603 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_heights)
604}

◆ set_image_heights() [2/3]

void tesseract::TFNetworkModel::set_image_heights ( const char *  value)
inline

Definition at line 612 of file tfnetwork.pb.h.

612 {
613 GOOGLE_DCHECK(value != NULL);
614
615 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
616 ::std::string(value));
617 // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_heights)
618}

◆ set_image_heights() [3/3]

void tesseract::TFNetworkModel::set_image_heights ( const char *  value,
size_t  size 
)
inline

Definition at line 619 of file tfnetwork.pb.h.

619 {
620 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
621 ::std::string(reinterpret_cast<const char *>(value), size));
622 // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_heights)
623}

◆ set_image_input() [1/3]

void tesseract::TFNetworkModel::set_image_input ( const ::std::string &  value)
inline

Definition at line 503 of file tfnetwork.pb.h.

503 {
504 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
505 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_input)
506}

◆ set_image_input() [2/3]

void tesseract::TFNetworkModel::set_image_input ( const char *  value)
inline

Definition at line 514 of file tfnetwork.pb.h.

514 {
515 GOOGLE_DCHECK(value != NULL);
516
517 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
518 ::std::string(value));
519 // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_input)
520}

◆ set_image_input() [3/3]

void tesseract::TFNetworkModel::set_image_input ( const char *  value,
size_t  size 
)
inline

Definition at line 521 of file tfnetwork.pb.h.

521 {
522 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
523 ::std::string(reinterpret_cast<const char *>(value), size));
524 // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_input)
525}

◆ set_image_widths() [1/3]

void tesseract::TFNetworkModel::set_image_widths ( const ::std::string &  value)
inline

Definition at line 552 of file tfnetwork.pb.h.

552 {
553 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
554 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_widths)
555}

◆ set_image_widths() [2/3]

void tesseract::TFNetworkModel::set_image_widths ( const char *  value)
inline

Definition at line 563 of file tfnetwork.pb.h.

563 {
564 GOOGLE_DCHECK(value != NULL);
565
566 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
567 ::std::string(value));
568 // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_widths)
569}

◆ set_image_widths() [3/3]

void tesseract::TFNetworkModel::set_image_widths ( const char *  value,
size_t  size 
)
inline

Definition at line 570 of file tfnetwork.pb.h.

570 {
571 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
572 ::std::string(reinterpret_cast<const char *>(value), size));
573 // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_widths)
574}

◆ set_num_classes()

void tesseract::TFNetworkModel::set_num_classes ( ::google::protobuf::int32  value)
inline

Definition at line 477 of file tfnetwork.pb.h.

477 {
478 num_classes_ = value;
479 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.num_classes)
480}

◆ set_output_layer() [1/3]

void tesseract::TFNetworkModel::set_output_layer ( const ::std::string &  value)
inline

Definition at line 652 of file tfnetwork.pb.h.

652 {
653 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
654 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.output_layer)
655}

◆ set_output_layer() [2/3]

void tesseract::TFNetworkModel::set_output_layer ( const char *  value)
inline

Definition at line 663 of file tfnetwork.pb.h.

663 {
664 GOOGLE_DCHECK(value != NULL);
665
666 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
667 ::std::string(value));
668 // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.output_layer)
669}

◆ set_output_layer() [3/3]

void tesseract::TFNetworkModel::set_output_layer ( const char *  value,
size_t  size 
)
inline

Definition at line 670 of file tfnetwork.pb.h.

670 {
671 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
672 ::std::string(reinterpret_cast<const char *>(value), size));
673 // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.output_layer)
674}

◆ set_spec() [1/3]

void tesseract::TFNetworkModel::set_spec ( const ::std::string &  value)
inline

Definition at line 377 of file tfnetwork.pb.h.

377 {
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
379 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.spec)
380}

◆ set_spec() [2/3]

void tesseract::TFNetworkModel::set_spec ( const char *  value)
inline

Definition at line 388 of file tfnetwork.pb.h.

388 {
389 GOOGLE_DCHECK(value != NULL);
390
391 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
392 ::std::string(value));
393 // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.spec)
394}

◆ set_spec() [3/3]

void tesseract::TFNetworkModel::set_spec ( const char *  value,
size_t  size 
)
inline

Definition at line 395 of file tfnetwork.pb.h.

395 {
396 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
397 ::std::string(reinterpret_cast<const char *>(value), size));
398 // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.spec)
399}

◆ set_using_ctc()

void tesseract::TFNetworkModel::set_using_ctc ( bool  value)
inline

Definition at line 490 of file tfnetwork.pb.h.

490 {
491 using_ctc_ = value;
492 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.using_ctc)
493}

◆ set_x_size()

void tesseract::TFNetworkModel::set_x_size ( ::google::protobuf::int32  value)
inline

Definition at line 438 of file tfnetwork.pb.h.

438 {
439 x_size_ = value;
440 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.x_size)
441}

◆ set_y_size()

void tesseract::TFNetworkModel::set_y_size ( ::google::protobuf::int32  value)
inline

Definition at line 451 of file tfnetwork.pb.h.

451 {
452 y_size_ = value;
453 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.y_size)
454}

◆ spec()

const ::std::string & tesseract::TFNetworkModel::spec ( ) const
inline

Definition at line 373 of file tfnetwork.pb.h.

373 {
374 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.spec)
375 return spec_.GetNoArena();
376}

◆ Swap()

void tesseract::TFNetworkModel::Swap ( TFNetworkModel other)

Definition at line 880 of file tfnetwork.pb.cc.

880 {
881 if (other == this)
882 return;
883 InternalSwap(other);
884}

◆ using_ctc()

bool tesseract::TFNetworkModel::using_ctc ( ) const
inline

Definition at line 486 of file tfnetwork.pb.h.

486 {
487 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.using_ctc)
488 return using_ctc_;
489}

◆ x_size()

google::protobuf::int32 tesseract::TFNetworkModel::x_size ( ) const
inline

Definition at line 434 of file tfnetwork.pb.h.

434 {
435 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.x_size)
436 return x_size_;
437}

◆ y_size()

google::protobuf::int32 tesseract::TFNetworkModel::y_size ( ) const
inline

Definition at line 447 of file tfnetwork.pb.h.

447 {
448 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.y_size)
449 return y_size_;
450}

Friends And Related Function Documentation

◆ ::protobuf_tfnetwork_2eproto::TableStruct

Definition at line 297 of file tfnetwork.pb.h.

◆ swap

void swap ( TFNetworkModel a,
TFNetworkModel b 
)
friend

Definition at line 104 of file tfnetwork.pb.h.

104 {
105 a.Swap(&b);
106 }

Member Data Documentation

◆ kBatchSizeFieldNumber

const int tesseract::TFNetworkModel::kBatchSizeFieldNumber = 8
static

Definition at line 264 of file tfnetwork.pb.h.

◆ kDepthFieldNumber

const int tesseract::TFNetworkModel::kDepthFieldNumber = 4
static

Definition at line 246 of file tfnetwork.pb.h.

◆ kGlobalStepFieldNumber

const int tesseract::TFNetworkModel::kGlobalStepFieldNumber = 2
static

Definition at line 240 of file tfnetwork.pb.h.

◆ kGraphFieldNumber

const int tesseract::TFNetworkModel::kGraphFieldNumber = 1
static

Definition at line 227 of file tfnetwork.pb.h.

◆ kImageHeightsFieldNumber

const int tesseract::TFNetworkModel::kImageHeightsFieldNumber = 13
static

Definition at line 198 of file tfnetwork.pb.h.

◆ kImageInputFieldNumber

const int tesseract::TFNetworkModel::kImageInputFieldNumber = 11
static

Definition at line 170 of file tfnetwork.pb.h.

◆ kImageWidthsFieldNumber

const int tesseract::TFNetworkModel::kImageWidthsFieldNumber = 12
static

Definition at line 184 of file tfnetwork.pb.h.

◆ kIndexInFileMessages

constexpr int tesseract::TFNetworkModel::kIndexInFileMessages = 0
staticconstexpr

Definition at line 101 of file tfnetwork.pb.h.

◆ kNumClassesFieldNumber

const int tesseract::TFNetworkModel::kNumClassesFieldNumber = 9
static

Definition at line 270 of file tfnetwork.pb.h.

◆ kOutputLayerFieldNumber

const int tesseract::TFNetworkModel::kOutputLayerFieldNumber = 14
static

Definition at line 212 of file tfnetwork.pb.h.

◆ kSpecFieldNumber

const int tesseract::TFNetworkModel::kSpecFieldNumber = 3
static

Definition at line 156 of file tfnetwork.pb.h.

◆ kUsingCtcFieldNumber

const int tesseract::TFNetworkModel::kUsingCtcFieldNumber = 10
static

Definition at line 276 of file tfnetwork.pb.h.

◆ kXSizeFieldNumber

const int tesseract::TFNetworkModel::kXSizeFieldNumber = 5
static

Definition at line 252 of file tfnetwork.pb.h.

◆ kYSizeFieldNumber

const int tesseract::TFNetworkModel::kYSizeFieldNumber = 6
static

Definition at line 258 of file tfnetwork.pb.h.


The documentation for this class was generated from the following files: