tesseract  5.0.0-alpha-619-ge9db
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::stringspec () const
 
void set_spec (const ::std::string &value)
 
void set_spec (const char *value)
 
void set_spec (const char *value, size_t size)
 
::std::stringmutable_spec ()
 
::std::stringrelease_spec ()
 
void set_allocated_spec (::std::string *spec)
 
void clear_image_input ()
 
const ::std::stringimage_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::stringmutable_image_input ()
 
::std::stringrelease_image_input ()
 
void set_allocated_image_input (::std::string *image_input)
 
void clear_image_widths ()
 
const ::std::stringimage_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::stringmutable_image_widths ()
 
::std::stringrelease_image_widths ()
 
void set_allocated_image_widths (::std::string *image_widths)
 
void clear_image_heights ()
 
const ::std::stringimage_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::stringmutable_image_heights ()
 
::std::stringrelease_image_heights ()
 
void set_allocated_image_heights (::std::string *image_heights)
 
void clear_output_layer ()
 
const ::std::stringoutput_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::stringmutable_output_layer ()
 
::std::stringrelease_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
 
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 63 of file tfnetwork.pb.h.

Constructor & Destructor Documentation

◆ TFNetworkModel() [1/2]

tesseract::TFNetworkModel::TFNetworkModel ( )

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

163  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
164  ::google::protobuf::internal::InitSCC(
166  SharedCtor();
167  // @@protoc_insertion_point(constructor:tesseract.TFNetworkModel)
168 }

◆ ~TFNetworkModel()

tesseract::TFNetworkModel::~TFNetworkModel ( )
virtual

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

215  {
216  // @@protoc_insertion_point(destructor:tesseract.TFNetworkModel)
217  SharedDtor();
218 }

◆ TFNetworkModel() [2/2]

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

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

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

Member Function Documentation

◆ batch_size()

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

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

467  {
468  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.batch_size)
469  return batch_size_;
470 }

◆ ByteSizeLong()

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

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

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

◆ Clear()

void tesseract::TFNetworkModel::Clear ( )
final

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

243  {
244 // @@protoc_insertion_point(message_clear_start:tesseract.TFNetworkModel)
245  ::google::protobuf::uint32 cached_has_bits = 0;
246  // Prevent compiler warnings about cached_has_bits being unused
247  (void) cached_has_bits;
248 
249  spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
250  image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251  image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
252  image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253  output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254  if (GetArenaNoVirtual() == NULL && graph_ != NULL) {
255  delete graph_;
256  }
257  graph_ = NULL;
258  ::memset(&global_step_, 0, static_cast<size_t>(
259  reinterpret_cast<char*>(&using_ctc_) -
260  reinterpret_cast<char*>(&global_step_)) + sizeof(using_ctc_));
261  _internal_metadata_.Clear();
262 }

◆ clear_batch_size()

void tesseract::TFNetworkModel::clear_batch_size ( )
inline

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

464  {
465  batch_size_ = 0;
466 }

◆ clear_depth()

void tesseract::TFNetworkModel::clear_depth ( )
inline

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

422  {
423  depth_ = 0;
424 }

◆ clear_global_step()

void tesseract::TFNetworkModel::clear_global_step ( )
inline

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

355  {
356  global_step_ = GOOGLE_LONGLONG(0);
357 }

◆ clear_graph()

void tesseract::TFNetworkModel::clear_graph ( )

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

140  {
141  if (GetArenaNoVirtual() == NULL && graph_ != NULL) {
142  delete graph_;
143  }
144  graph_ = NULL;
145 }

◆ clear_image_heights()

void tesseract::TFNetworkModel::clear_image_heights ( )
inline

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

612  {
613  image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
614 }

◆ clear_image_input()

void tesseract::TFNetworkModel::clear_image_input ( )
inline

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

506  {
507  image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
508 }

◆ clear_image_widths()

void tesseract::TFNetworkModel::clear_image_widths ( )
inline

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

559  {
560  image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
561 }

◆ clear_num_classes()

void tesseract::TFNetworkModel::clear_num_classes ( )
inline

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

478  {
479  num_classes_ = 0;
480 }

◆ clear_output_layer()

void tesseract::TFNetworkModel::clear_output_layer ( )
inline

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

665  {
666  output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667 }

◆ clear_spec()

void tesseract::TFNetworkModel::clear_spec ( )
inline

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

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

◆ clear_using_ctc()

void tesseract::TFNetworkModel::clear_using_ctc ( )
inline

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

492  {
493  using_ctc_ = false;
494 }

◆ clear_x_size()

void tesseract::TFNetworkModel::clear_x_size ( )
inline

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

436  {
437  x_size_ = 0;
438 }

◆ clear_y_size()

void tesseract::TFNetworkModel::clear_y_size ( )
inline

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

450  {
451  y_size_ = 0;
452 }

◆ CopyFrom() [1/2]

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

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

871  {
872 // @@protoc_insertion_point(generalized_copy_from_start:tesseract.TFNetworkModel)
873  if (&from == this) return;
874  Clear();
875  MergeFrom(from);
876 }

◆ CopyFrom() [2/2]

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

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

878  {
879 // @@protoc_insertion_point(class_specific_copy_from_start:tesseract.TFNetworkModel)
880  if (&from == this) return;
881  Clear();
882  MergeFrom(from);
883 }

◆ default_instance()

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

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

237  {
238  ::google::protobuf::internal::InitSCC(&protobuf_tfnetwork_2eproto::scc_info_TFNetworkModel.base);
239  return *internal_default_instance();
240 }

◆ depth()

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

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

425  {
426  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.depth)
427  return depth_;
428 }

◆ descriptor()

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

◆ GetCachedSize()

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

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

128 { return _cached_size_.Get(); }

◆ GetMetadata()

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

◆ global_step()

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

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

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

◆ graph()

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

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

312  {
313  const ::tensorflow::GraphDef* p = graph_;
314  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.graph)
315  return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::GraphDef*>(
316  &::tensorflow::_GraphDef_default_instance_);
317 }

◆ has_graph()

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

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

306  {
307  return this != internal_default_instance() && graph_ != NULL;
308 }

◆ image_heights()

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

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

615  {
616  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_heights)
617  return image_heights_.GetNoArena();
618 }

◆ image_input()

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

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

509  {
510  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_input)
511  return image_input_.GetNoArena();
512 }

◆ image_widths()

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

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

562  {
563  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_widths)
564  return image_widths_.GetNoArena();
565 }

◆ InitAsDefaultInstance()

void tesseract::TFNetworkModel::InitAsDefaultInstance ( )
static

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

136  {
137  ::tesseract::_TFNetworkModel_default_instance_._instance.get_mutable()->graph_ = const_cast< ::tensorflow::GraphDef*>(
138  ::tensorflow::GraphDef::internal_default_instance());
139 }

◆ internal_default_instance()

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

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

93  {
94  return reinterpret_cast<const TFNetworkModel*>(
96  }

◆ InternalSerializeWithCachedSizesToArray()

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

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

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

◆ IsInitialized()

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

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

885  {
886  return true;
887 }

◆ MergeFrom() [1/2]

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

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

803  {
804 // @@protoc_insertion_point(generalized_merge_from_start:tesseract.TFNetworkModel)
805  GOOGLE_DCHECK_NE(&from, this);
806  const TFNetworkModel* source =
807  ::google::protobuf::internal::DynamicCastToGenerated<const TFNetworkModel>(
808  &from);
809  if (source == NULL) {
810  // @@protoc_insertion_point(generalized_merge_from_cast_fail:tesseract.TFNetworkModel)
811  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
812  } else {
813  // @@protoc_insertion_point(generalized_merge_from_cast_success:tesseract.TFNetworkModel)
814  MergeFrom(*source);
815  }
816 }

◆ MergeFrom() [2/2]

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

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

818  {
819 // @@protoc_insertion_point(class_specific_merge_from_start:tesseract.TFNetworkModel)
820  GOOGLE_DCHECK_NE(&from, this);
821  _internal_metadata_.MergeFrom(from._internal_metadata_);
822  ::google::protobuf::uint32 cached_has_bits = 0;
823  (void) cached_has_bits;
824 
825  if (from.spec().size() > 0) {
826 
827  spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_);
828  }
829  if (from.image_input().size() > 0) {
830 
831  image_input_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_input_);
832  }
833  if (from.image_widths().size() > 0) {
834 
835  image_widths_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_widths_);
836  }
837  if (from.image_heights().size() > 0) {
838 
839  image_heights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_heights_);
840  }
841  if (from.output_layer().size() > 0) {
842 
843  output_layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_layer_);
844  }
845  if (from.has_graph()) {
846  mutable_graph()->::tensorflow::GraphDef::MergeFrom(from.graph());
847  }
848  if (from.global_step() != 0) {
849  set_global_step(from.global_step());
850  }
851  if (from.depth() != 0) {
852  set_depth(from.depth());
853  }
854  if (from.x_size() != 0) {
855  set_x_size(from.x_size());
856  }
857  if (from.y_size() != 0) {
858  set_y_size(from.y_size());
859  }
860  if (from.batch_size() != 0) {
861  set_batch_size(from.batch_size());
862  }
863  if (from.num_classes() != 0) {
864  set_num_classes(from.num_classes());
865  }
866  if (from.using_ctc() != 0) {
867  set_using_ctc(from.using_ctc());
868  }
869 }

◆ MergePartialFromCodedStream()

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

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

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

◆ mutable_graph()

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

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

325  {
326 
327  if (graph_ == NULL) {
328  auto* p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
329  graph_ = p;
330  }
331  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.graph)
332  return graph_;
333 }

◆ mutable_image_heights()

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

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

644  {
645 
646  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_heights)
647  return image_heights_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
648 }

◆ mutable_image_input()

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

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

538  {
539 
540  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_input)
541  return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
542 }

◆ mutable_image_widths()

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

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

591  {
592 
593  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_widths)
594  return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
595 }

◆ mutable_output_layer()

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

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

697  {
698 
699  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.output_layer)
700  return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
701 }

◆ mutable_spec()

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

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

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

◆ New() [1/2]

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

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

107  {
108  return CreateMaybeMessage<TFNetworkModel>(NULL);
109  }

◆ New() [2/2]

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

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

111  {
112  return CreateMaybeMessage<TFNetworkModel>(arena);
113  }

◆ num_classes()

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

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

481  {
482  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.num_classes)
483  return num_classes_;
484 }

◆ operator=()

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

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

70  {
71  CopyFrom(from);
72  return *this;
73  }

◆ output_layer()

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

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

668  {
669  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.output_layer)
670  return output_layer_.GetNoArena();
671 }

◆ release_graph()

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

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

318  {
319  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.graph)
320 
321  ::tensorflow::GraphDef* temp = graph_;
322  graph_ = NULL;
323  return temp;
324 }

◆ release_image_heights()

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

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

649  {
650  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_heights)
651 
652  return image_heights_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
653 }

◆ release_image_input()

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

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

543  {
544  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_input)
545 
546  return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547 }

◆ release_image_widths()

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

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

596  {
597  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_widths)
598 
599  return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
600 }

◆ release_output_layer()

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

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

702  {
703  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.output_layer)
704 
705  return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
706 }

◆ release_spec()

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

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

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

◆ SerializeWithCachedSizes()

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

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

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

◆ set_allocated_graph()

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

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

334  {
335  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
336  if (message_arena == NULL) {
337  delete reinterpret_cast< ::google::protobuf::MessageLite*>(graph_);
338  }
339  if (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);
345  }
346 
347  } else {
348 
349  }
350  graph_ = graph;
351  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.graph)
352 }

◆ set_allocated_image_heights()

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

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

654  {
655  if (image_heights != NULL) {
656 
657  } else {
658 
659  }
660  image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_heights);
661  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_heights)
662 }

◆ set_allocated_image_input()

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

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

548  {
549  if (image_input != NULL) {
550 
551  } else {
552 
553  }
554  image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_input);
555  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_input)
556 }

◆ set_allocated_image_widths()

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

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

601  {
602  if (image_widths != NULL) {
603 
604  } else {
605 
606  }
607  image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_widths);
608  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_widths)
609 }

◆ set_allocated_output_layer()

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

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

707  {
708  if (output_layer != NULL) {
709 
710  } else {
711 
712  }
713  output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_layer);
714  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.output_layer)
715 }

◆ set_allocated_spec()

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

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

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

◆ set_batch_size()

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

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

471  {
472 
473  batch_size_ = value;
474  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.batch_size)
475 }

◆ set_depth()

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

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

429  {
430 
431  depth_ = value;
432  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.depth)
433 }

◆ set_global_step()

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

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

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

◆ set_image_heights() [1/3]

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

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

619  {
620 
621  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
622  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_heights)
623 }

◆ set_image_heights() [2/3]

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

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

632  {
633  GOOGLE_DCHECK(value != NULL);
634 
635  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
636  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_heights)
637 }

◆ set_image_heights() [3/3]

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

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

638  {
639 
640  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641  ::std::string(reinterpret_cast<const char*>(value), size));
642  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_heights)
643 }

◆ set_image_input() [1/3]

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

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

513  {
514 
515  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
516  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_input)
517 }

◆ set_image_input() [2/3]

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

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

526  {
527  GOOGLE_DCHECK(value != NULL);
528 
529  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
530  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_input)
531 }

◆ set_image_input() [3/3]

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

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

532  {
533 
534  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
535  ::std::string(reinterpret_cast<const char*>(value), size));
536  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_input)
537 }

◆ set_image_widths() [1/3]

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

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

566  {
567 
568  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
569  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_widths)
570 }

◆ set_image_widths() [2/3]

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

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

579  {
580  GOOGLE_DCHECK(value != NULL);
581 
582  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
583  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_widths)
584 }

◆ set_image_widths() [3/3]

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

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

585  {
586 
587  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
588  ::std::string(reinterpret_cast<const char*>(value), size));
589  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_widths)
590 }

◆ set_num_classes()

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

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

485  {
486 
487  num_classes_ = value;
488  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.num_classes)
489 }

◆ set_output_layer() [1/3]

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

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

672  {
673 
674  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
675  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.output_layer)
676 }

◆ set_output_layer() [2/3]

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

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

685  {
686  GOOGLE_DCHECK(value != NULL);
687 
688  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
689  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.output_layer)
690 }

◆ set_output_layer() [3/3]

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

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

691  {
692 
693  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
694  ::std::string(reinterpret_cast<const char*>(value), size));
695  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.output_layer)
696 }

◆ set_spec() [1/3]

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

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

376  {
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 389 of file tfnetwork.pb.h.

389  {
390  GOOGLE_DCHECK(value != NULL);
391 
392  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::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 
397  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
398  ::std::string(reinterpret_cast<const char*>(value), size));
399  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.spec)
400 }

◆ set_using_ctc()

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

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

499  {
500 
501  using_ctc_ = value;
502  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.using_ctc)
503 }

◆ set_x_size()

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

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

443  {
444 
445  x_size_ = value;
446  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.x_size)
447 }

◆ set_y_size()

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

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

457  {
458 
459  y_size_ = value;
460  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.y_size)
461 }

◆ spec()

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

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

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

◆ Swap()

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

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

889  {
890  if (other == this) return;
891  InternalSwap(other);
892 }

◆ using_ctc()

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

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

495  {
496  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.using_ctc)
497  return using_ctc_;
498 }

◆ x_size()

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

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

439  {
440  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.x_size)
441  return x_size_;
442 }

◆ y_size()

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

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

453  {
454  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.y_size)
455  return y_size_;
456 }

Friends And Related Function Documentation

◆ ::protobuf_tfnetwork_2eproto::TableStruct

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

◆ swap

void swap ( TFNetworkModel a,
TFNetworkModel b 
)
friend

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

101  {
102  a.Swap(&b);
103  }

Member Data Documentation

◆ kBatchSizeFieldNumber

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

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

◆ kDepthFieldNumber

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

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

◆ kGlobalStepFieldNumber

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

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

◆ kGraphFieldNumber

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

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

◆ kImageHeightsFieldNumber

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

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

◆ kImageInputFieldNumber

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

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

◆ kImageWidthsFieldNumber

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

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

◆ kIndexInFileMessages

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

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

◆ kNumClassesFieldNumber

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

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

◆ kOutputLayerFieldNumber

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

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

◆ kSpecFieldNumber

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

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

◆ kUsingCtcFieldNumber

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

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

◆ kXSizeFieldNumber

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

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

◆ kYSizeFieldNumber

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

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


The documentation for this class was generated from the following files:
string
std::string string
Definition: equationdetect_test.cc:21
tesseract::TFNetworkModel::mutable_output_layer
::std::string * mutable_output_layer()
Definition: tfnetwork.pb.h:697
tesseract::TFNetworkModel::batch_size
::google::protobuf::int32 batch_size() const
Definition: tfnetwork.pb.h:467
tesseract::TFNetworkModel::y_size
::google::protobuf::int32 y_size() const
Definition: tfnetwork.pb.h:453
tesseract::TFNetworkModel::mutable_image_heights
::std::string * mutable_image_heights()
Definition: tfnetwork.pb.h:644
tesseract::TFNetworkModel::output_layer
const ::std::string & output_layer() const
Definition: tfnetwork.pb.h:668
protobuf_tfnetwork_2eproto::scc_info_TFNetworkModel
::google::protobuf::internal::SCCInfo< 1 > scc_info_TFNetworkModel
Definition: tfnetwork.pb.cc:44
tesseract::TFNetworkModel::set_depth
void set_depth(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:429
tesseract::TFNetworkModel::has_graph
bool has_graph() const
Definition: tfnetwork.pb.h:306
tesseract::TFNetworkModel::image_widths
const ::std::string & image_widths() const
Definition: tfnetwork.pb.h:562
tesseract::TFNetworkModel::graph
const ::tensorflow::GraphDef & graph() const
Definition: tfnetwork.pb.h:312
tesseract::TFNetworkModel::x_size
::google::protobuf::int32 x_size() const
Definition: tfnetwork.pb.h:439
tesseract::TFNetworkModel::set_using_ctc
void set_using_ctc(bool value)
Definition: tfnetwork.pb.h:499
protobuf_tfnetwork_2eproto::protobuf_AssignDescriptorsOnce
void protobuf_AssignDescriptorsOnce()
Definition: tfnetwork.pb.cc:89
tesseract::TFNetworkModel::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
Definition: tfnetwork.pb.cc:803
DO_
#define DO_(EXPRESSION)
tesseract::TFNetworkModel::global_step
::google::protobuf::int64 global_step() const
Definition: tfnetwork.pb.h:358
tesseract::TFNetworkModelDefaultTypeInternal::_instance
::google::protobuf::internal::ExplicitlyConstructed< TFNetworkModel > _instance
Definition: tfnetwork.pb.cc:29
tesseract::TFNetworkModel::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
Definition: tfnetwork.pb.cc:871
tesseract::TFNetworkModel::Clear
void Clear() final
Definition: tfnetwork.pb.cc:243
tesseract::TFNetworkModel::set_num_classes
void set_num_classes(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:485
tesseract::TFNetworkModel::mutable_graph
::tensorflow::GraphDef * mutable_graph()
Definition: tfnetwork.pb.h:325
tesseract::TFNetworkModel::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: tfnetwork.pb.h:97
tesseract::_TFNetworkModel_default_instance_
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
Definition: tfnetwork.pb.h:51
tesseract::TFNetworkModel::set_global_step
void set_global_step(::google::protobuf::int64 value)
Definition: tfnetwork.pb.h:362
tesseract::TFNetworkModel::image_heights
const ::std::string & image_heights() const
Definition: tfnetwork.pb.h:615
tesseract::TFNetworkModel::mutable_image_input
::std::string * mutable_image_input()
Definition: tfnetwork.pb.h:538
tesseract::TFNetworkModel::mutable_spec
::std::string * mutable_spec()
Definition: tfnetwork.pb.h:401
tesseract::TFNetworkModel::spec
const ::std::string & spec() const
Definition: tfnetwork.pb.h:372
tesseract::TFNetworkModel::TFNetworkModel
TFNetworkModel()
Definition: tfnetwork.pb.cc:162
tesseract::TFNetworkModel::using_ctc
bool using_ctc() const
Definition: tfnetwork.pb.h:495
tesseract::TFNetworkModel::set_x_size
void set_x_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:443
tesseract::TFNetworkModel::mutable_image_widths
::std::string * mutable_image_widths()
Definition: tfnetwork.pb.h:591
tesseract::TFNetworkModel::image_input
const ::std::string & image_input() const
Definition: tfnetwork.pb.h:509
tesseract::TFNetworkModel::num_classes
::google::protobuf::int32 num_classes() const
Definition: tfnetwork.pb.h:481
tesseract::TFNetworkModel::depth
::google::protobuf::int32 depth() const
Definition: tfnetwork.pb.h:425
protobuf_tfnetwork_2eproto::file_level_metadata
::google::protobuf::Metadata file_level_metadata[1]
Definition: tfnetwork.pb.cc:52
tesseract::TFNetworkModel::set_batch_size
void set_batch_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:471
tesseract::TFNetworkModel::internal_default_instance
static const TFNetworkModel * internal_default_instance()
Definition: tfnetwork.pb.h:93
tesseract::TFNetworkModel::set_y_size
void set_y_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:457