tesseract  5.0.0-alpha-619-ge9db
tfnetwork.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tfnetwork.proto
3 
4 #include "tfnetwork.pb.h"
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/stubs/port.h>
10 #include <google/protobuf/io/coded_stream.h>
11 #include <google/protobuf/wire_format_lite_inl.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // This is a temporary google only hack
17 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18 #include "third_party/protobuf/version.h"
19 #endif
20 // @@protoc_insertion_point(includes)
21 
23 extern PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_GraphDef;
24 } // namespace protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto
25 namespace tesseract {
27  public:
28  ::google::protobuf::internal::ExplicitlyConstructed<TFNetworkModel>
31 } // namespace tesseract
33 static void InitDefaultsTFNetworkModel() {
34  GOOGLE_PROTOBUF_VERIFY_VERSION;
35 
36  {
38  new (ptr) ::tesseract::TFNetworkModel();
39  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
40  }
42 }
43 
44 ::google::protobuf::internal::SCCInfo<1> scc_info_TFNetworkModel =
45  {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTFNetworkModel}, {
47 
48 void InitDefaults() {
49  ::google::protobuf::internal::InitSCC(&scc_info_TFNetworkModel.base);
50 }
51 
52 ::google::protobuf::Metadata file_level_metadata[1];
53 
54 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
55  ~0u, // no _has_bits_
56  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, _internal_metadata_),
57  ~0u, // no _extensions_
58  ~0u, // no _oneof_case_
59  ~0u, // no _weak_field_map_
60  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, graph_),
61  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, global_step_),
62  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, spec_),
63  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, depth_),
64  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, x_size_),
65  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, y_size_),
66  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, batch_size_),
67  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, num_classes_),
68  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, using_ctc_),
69  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, image_input_),
70  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, image_widths_),
71  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, image_heights_),
72  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tesseract::TFNetworkModel, output_layer_),
73 };
74 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
75  { 0, -1, sizeof(::tesseract::TFNetworkModel)},
76 };
77 
78 static ::google::protobuf::Message const * const file_default_instances[] = {
79  reinterpret_cast<const ::google::protobuf::Message*>(&::tesseract::_TFNetworkModel_default_instance_),
80 };
81 
84  AssignDescriptors(
85  "tfnetwork.proto", schemas, file_default_instances, TableStruct::offsets,
86  file_level_metadata, NULL, NULL);
87 }
88 
90  static ::google::protobuf::internal::once_flag once;
91  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
92 }
93 
94 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
97  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
98 }
99 
101  InitDefaults();
102  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
103  "\n\017tfnetwork.proto\022\ttesseract\032%tensorflow"
104  "/core/framework/graph.proto\"\233\002\n\016TFNetwor"
105  "kModel\022#\n\005graph\030\001 \001(\0132\024.tensorflow.Graph"
106  "Def\022\023\n\013global_step\030\002 \001(\003\022\014\n\004spec\030\003 \001(\t\022\r"
107  "\n\005depth\030\004 \001(\005\022\016\n\006x_size\030\005 \001(\005\022\016\n\006y_size\030"
108  "\006 \001(\005\022\022\n\nbatch_size\030\010 \001(\005\022\023\n\013num_classes"
109  "\030\t \001(\005\022\021\n\tusing_ctc\030\n \001(\010\022\023\n\013image_input"
110  "\030\013 \001(\t\022\024\n\014image_widths\030\014 \001(\t\022\025\n\rimage_he"
111  "ights\030\r \001(\t\022\024\n\014output_layer\030\016 \001(\tb\006proto"
112  "3"
113  };
114  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
115  descriptor, 361);
116  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
117  "tfnetwork.proto", &protobuf_RegisterTypes);
119 }
120 
122  static ::google::protobuf::internal::once_flag once;
123  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
124 }
125 // Force AddDescriptors() to be called at dynamic initialization time.
128  AddDescriptors();
129  }
131 } // namespace protobuf_tfnetwork_2eproto
132 namespace tesseract {
133 
134 // ===================================================================
135 
137  ::tesseract::_TFNetworkModel_default_instance_._instance.get_mutable()->graph_ = const_cast< ::tensorflow::GraphDef*>(
138  ::tensorflow::GraphDef::internal_default_instance());
139 }
141  if (GetArenaNoVirtual() == NULL && graph_ != NULL) {
142  delete graph_;
143  }
144  graph_ = NULL;
145 }
146 #if !defined(_MSC_VER) || _MSC_VER >= 1900
160 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
161 
163  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
164  ::google::protobuf::internal::InitSCC(
166  SharedCtor();
167  // @@protoc_insertion_point(constructor:tesseract.TFNetworkModel)
168 }
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 }
203 
204 void TFNetworkModel::SharedCtor() {
205  spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
206  image_input_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
207  image_widths_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
208  image_heights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
209  output_layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
210  ::memset(&graph_, 0, static_cast<size_t>(
211  reinterpret_cast<char*>(&using_ctc_) -
212  reinterpret_cast<char*>(&graph_)) + sizeof(using_ctc_));
213 }
214 
216  // @@protoc_insertion_point(destructor:tesseract.TFNetworkModel)
217  SharedDtor();
218 }
219 
220 void TFNetworkModel::SharedDtor() {
221  spec_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
222  image_input_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
223  image_widths_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224  image_heights_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225  output_layer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
226  if (this != internal_default_instance()) delete graph_;
227 }
228 
229 void TFNetworkModel::SetCachedSize(int size) const {
230  _cached_size_.Set(size);
231 }
232 const ::google::protobuf::Descriptor* TFNetworkModel::descriptor() {
235 }
236 
238  ::google::protobuf::internal::InitSCC(&protobuf_tfnetwork_2eproto::scc_info_TFNetworkModel.base);
239  return *internal_default_instance();
240 }
241 
242 
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 }
263 
265  ::google::protobuf::io::CodedInputStream* input) {
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 }
483 
485  ::google::protobuf::io::CodedOutputStream* output) const {
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 }
587 
589  bool deterministic, ::google::protobuf::uint8* target) const {
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 }
699 
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 }
802 
803 void TFNetworkModel::MergeFrom(const ::google::protobuf::Message& from) {
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 }
817 
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) {
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) {
865  }
866  if (from.using_ctc() != 0) {
867  set_using_ctc(from.using_ctc());
868  }
869 }
870 
871 void TFNetworkModel::CopyFrom(const ::google::protobuf::Message& from) {
872 // @@protoc_insertion_point(generalized_copy_from_start:tesseract.TFNetworkModel)
873  if (&from == this) return;
874  Clear();
875  MergeFrom(from);
876 }
877 
879 // @@protoc_insertion_point(class_specific_copy_from_start:tesseract.TFNetworkModel)
880  if (&from == this) return;
881  Clear();
882  MergeFrom(from);
883 }
884 
886  return true;
887 }
888 
890  if (other == this) return;
891  InternalSwap(other);
892 }
893 void TFNetworkModel::InternalSwap(TFNetworkModel* other) {
894  using std::swap;
895  spec_.Swap(&other->spec_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
896  GetArenaNoVirtual());
897  image_input_.Swap(&other->image_input_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
898  GetArenaNoVirtual());
899  image_widths_.Swap(&other->image_widths_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
900  GetArenaNoVirtual());
901  image_heights_.Swap(&other->image_heights_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
902  GetArenaNoVirtual());
903  output_layer_.Swap(&other->output_layer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
904  GetArenaNoVirtual());
905  swap(graph_, other->graph_);
906  swap(global_step_, other->global_step_);
907  swap(depth_, other->depth_);
908  swap(x_size_, other->x_size_);
909  swap(y_size_, other->y_size_);
910  swap(batch_size_, other->batch_size_);
911  swap(num_classes_, other->num_classes_);
912  swap(using_ctc_, other->using_ctc_);
913  _internal_metadata_.Swap(&other->_internal_metadata_);
914 }
915 
916 ::google::protobuf::Metadata TFNetworkModel::GetMetadata() const {
919 }
920 
921 
922 // @@protoc_insertion_point(namespace_scope)
923 } // namespace tesseract
924 namespace google {
925 namespace protobuf {
926 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tesseract::TFNetworkModel* Arena::CreateMaybeMessage< ::tesseract::TFNetworkModel >(Arena* arena) {
927  return Arena::CreateInternal< ::tesseract::TFNetworkModel >(arena);
928 }
929 } // namespace protobuf
930 } // namespace google
931 
932 // @@protoc_insertion_point(global_scope)
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::kImageInputFieldNumber
static const int kImageInputFieldNumber
Definition: tfnetwork.pb.h:166
tesseract::TFNetworkModel::batch_size
::google::protobuf::int32 batch_size() const
Definition: tfnetwork.pb.h:467
tesseract::TFNetworkModel::ByteSizeLong
size_t ByteSizeLong() const final
Definition: tfnetwork.pb.cc:700
tesseract::TFNetworkModel::y_size
::google::protobuf::int32 y_size() const
Definition: tfnetwork.pb.h:453
protobuf_tfnetwork_2eproto::StaticDescriptorInitializer
Definition: tfnetwork.pb.cc:126
protobuf_tfnetwork_2eproto
Definition: tfnetwork.pb.cc:32
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::kBatchSizeFieldNumber
static const int kBatchSizeFieldNumber
Definition: tfnetwork.pb.h:258
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
protobuf_tfnetwork_2eproto::AddDescriptorsImpl
void AddDescriptorsImpl()
Definition: tfnetwork.pb.cc:100
tesseract::TFNetworkModel::set_using_ctc
void set_using_ctc(bool value)
Definition: tfnetwork.pb.h:499
google::protobuf::CreateMaybeMessage< ::tesseract::TFNetworkModel >
GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tesseract::TFNetworkModel * Arena::CreateMaybeMessage< ::tesseract::TFNetworkModel >(Arena *arena)
Definition: tfnetwork.pb.cc:926
protobuf_tfnetwork_2eproto::InitDefaults
void InitDefaults()
Definition: tfnetwork.pb.cc:48
tesseract::TFNetworkModel::clear_graph
void clear_graph()
Definition: tfnetwork.pb.cc:140
tesseract::TFNetworkModel::IsInitialized
bool IsInitialized() const final
Definition: tfnetwork.pb.cc:885
protobuf_tfnetwork_2eproto::GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
protobuf_tfnetwork_2eproto::protobuf_AssignDescriptorsOnce
void protobuf_AssignDescriptorsOnce()
Definition: tfnetwork.pb.cc:89
google
Definition: tfnetwork.pb.cc:924
tesseract::TFNetworkModel::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
Definition: tfnetwork.pb.cc:803
protobuf_tfnetwork_2eproto::AddDescriptors
void AddDescriptors()
Definition: tfnetwork.pb.cc:121
tesseract::TFNetworkModel
Definition: tfnetwork.pb.h:63
DO_
#define DO_(EXPRESSION)
tesseract::TFNetworkModel::global_step
::google::protobuf::int64 global_step() const
Definition: tfnetwork.pb.h:358
protobuf_tfnetwork_2eproto::StaticDescriptorInitializer::StaticDescriptorInitializer
StaticDescriptorInitializer()
Definition: tfnetwork.pb.cc:127
tesseract::TFNetworkModelDefaultTypeInternal::_instance
::google::protobuf::internal::ExplicitlyConstructed< TFNetworkModel > _instance
Definition: tfnetwork.pb.cc:29
tesseract::TFNetworkModel::kImageHeightsFieldNumber
static const int kImageHeightsFieldNumber
Definition: tfnetwork.pb.h:194
tesseract::TFNetworkModel::kGraphFieldNumber
static const int kGraphFieldNumber
Definition: tfnetwork.pb.h:223
tesseract::TFNetworkModel::~TFNetworkModel
virtual ~TFNetworkModel()
Definition: tfnetwork.pb.cc:215
tesseract::TFNetworkModel::kXSizeFieldNumber
static const int kXSizeFieldNumber
Definition: tfnetwork.pb.h:246
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
protobuf_tfnetwork_2eproto::protobuf_RegisterTypes
void protobuf_RegisterTypes(const ::std::string &) GOOGLE_PROTOBUF_ATTRIBUTE_COLD
Definition: tfnetwork.pb.cc:95
tesseract::TFNetworkModel::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
Definition: tfnetwork.pb.cc:588
tesseract::TFNetworkModel::mutable_graph
::tensorflow::GraphDef * mutable_graph()
Definition: tfnetwork.pb.h:325
tesseract::TFNetworkModel::InitAsDefaultInstance
static void InitAsDefaultInstance()
Definition: tfnetwork.pb.cc:136
tesseract::TFNetworkModel::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: tfnetwork.pb.h:97
tesseract::TFNetworkModel::kYSizeFieldNumber
static const int kYSizeFieldNumber
Definition: tfnetwork.pb.h:252
protobuf_tfnetwork_2eproto::protobuf_AssignDescriptors
void protobuf_AssignDescriptors()
Definition: tfnetwork.pb.cc:82
tesseract::TFNetworkModel::kUsingCtcFieldNumber
static const int kUsingCtcFieldNumber
Definition: tfnetwork.pb.h:270
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
Definition: baseapi.h:65
tesseract::TFNetworkModel::kSpecFieldNumber
static const int kSpecFieldNumber
Definition: tfnetwork.pb.h:152
tfnetwork.pb.h
tesseract::TFNetworkModel::image_heights
const ::std::string & image_heights() const
Definition: tfnetwork.pb.h:615
tesseract::TFNetworkModel::kDepthFieldNumber
static const int kDepthFieldNumber
Definition: tfnetwork.pb.h:240
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::TFNetworkModelDefaultTypeInternal
Definition: tfnetwork.pb.cc:26
tesseract::TFNetworkModel::spec
const ::std::string & spec() const
Definition: tfnetwork.pb.h:372
tesseract::TFNetworkModel::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
Definition: tfnetwork.pb.cc:484
tesseract::TFNetworkModel::default_instance
static const TFNetworkModel & default_instance()
Definition: tfnetwork.pb.cc:237
tesseract::TFNetworkModel::TFNetworkModel
TFNetworkModel()
Definition: tfnetwork.pb.cc:162
tesseract::TFNetworkModel::kGlobalStepFieldNumber
static const int kGlobalStepFieldNumber
Definition: tfnetwork.pb.h:234
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::kNumClassesFieldNumber
static const int kNumClassesFieldNumber
Definition: tfnetwork.pb.h:264
protobuf_tfnetwork_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: tfnetwork.pb.h:45
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
protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto
Definition: tfnetwork.pb.cc:22
tesseract::TFNetworkModel::num_classes
::google::protobuf::int32 num_classes() const
Definition: tfnetwork.pb.h:481
protobuf_tfnetwork_2eproto::static_descriptor_initializer
struct protobuf_tfnetwork_2eproto::StaticDescriptorInitializer static_descriptor_initializer
tesseract::TFNetworkModel::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
Definition: tfnetwork.pb.cc:264
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::swap
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
Definition: tfnetwork.pb.h:101
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::kImageWidthsFieldNumber
static const int kImageWidthsFieldNumber
Definition: tfnetwork.pb.h:180
tesseract::TFNetworkModel::set_y_size
void set_y_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:457
tesseract::TFNetworkModel::descriptor
static const ::google::protobuf::Descriptor * descriptor()
Definition: tfnetwork.pb.cc:232
tesseract::TFNetworkModel::kOutputLayerFieldNumber
static const int kOutputLayerFieldNumber
Definition: tfnetwork.pb.h:208
tesseract::TFNetworkModel::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
Definition: tfnetwork.pb.cc:916
protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto::scc_info_GraphDef
PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto ::google::protobuf::internal::SCCInfo< 3 > scc_info_GraphDef
tesseract::TFNetworkModel::Swap
void Swap(TFNetworkModel *other)
Definition: tfnetwork.pb.cc:889