function.pb.cc 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: function.proto
  3. #include "function.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace opencv_tensorflow {
  16. constexpr FunctionDefLibrary::FunctionDefLibrary(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : function_()
  19. , gradient_(){}
  20. struct FunctionDefLibraryDefaultTypeInternal {
  21. constexpr FunctionDefLibraryDefaultTypeInternal()
  22. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  23. ~FunctionDefLibraryDefaultTypeInternal() {}
  24. union {
  25. FunctionDefLibrary _instance;
  26. };
  27. };
  28. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_;
  29. constexpr FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(
  30. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  31. struct FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal {
  32. constexpr FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal()
  33. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  34. ~FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal() {}
  35. union {
  36. FunctionDef_Node_AttrEntry_DoNotUse _instance;
  37. };
  38. };
  39. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;
  40. constexpr FunctionDef_Node::FunctionDef_Node(
  41. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  42. : ret_()
  43. , arg_()
  44. , dep_()
  45. , attr_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  46. , op_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  47. struct FunctionDef_NodeDefaultTypeInternal {
  48. constexpr FunctionDef_NodeDefaultTypeInternal()
  49. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  50. ~FunctionDef_NodeDefaultTypeInternal() {}
  51. union {
  52. FunctionDef_Node _instance;
  53. };
  54. };
  55. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDef_NodeDefaultTypeInternal _FunctionDef_Node_default_instance_;
  56. constexpr FunctionDef::FunctionDef(
  57. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  58. : node_()
  59. , signature_(nullptr){}
  60. struct FunctionDefDefaultTypeInternal {
  61. constexpr FunctionDefDefaultTypeInternal()
  62. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  63. ~FunctionDefDefaultTypeInternal() {}
  64. union {
  65. FunctionDef _instance;
  66. };
  67. };
  68. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
  69. constexpr GradientDef::GradientDef(
  70. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  71. : function_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  72. , gradient_func_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  73. struct GradientDefDefaultTypeInternal {
  74. constexpr GradientDefDefaultTypeInternal()
  75. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  76. ~GradientDefDefaultTypeInternal() {}
  77. union {
  78. GradientDef _instance;
  79. };
  80. };
  81. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GradientDefDefaultTypeInternal _GradientDef_default_instance_;
  82. } // namespace opencv_tensorflow
  83. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_function_2eproto[5];
  84. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_function_2eproto = nullptr;
  85. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_function_2eproto = nullptr;
  86. const uint32_t TableStruct_function_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  87. ~0u, // no _has_bits_
  88. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, _internal_metadata_),
  89. ~0u, // no _extensions_
  90. ~0u, // no _oneof_case_
  91. ~0u, // no _weak_field_map_
  92. ~0u, // no _inlined_string_donated_
  93. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, function_),
  94. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, gradient_),
  95. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _has_bits_),
  96. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _internal_metadata_),
  97. ~0u, // no _extensions_
  98. ~0u, // no _oneof_case_
  99. ~0u, // no _weak_field_map_
  100. ~0u, // no _inlined_string_donated_
  101. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, key_),
  102. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, value_),
  103. 0,
  104. 1,
  105. ~0u, // no _has_bits_
  106. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, _internal_metadata_),
  107. ~0u, // no _extensions_
  108. ~0u, // no _oneof_case_
  109. ~0u, // no _weak_field_map_
  110. ~0u, // no _inlined_string_donated_
  111. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, ret_),
  112. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, op_),
  113. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, arg_),
  114. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, dep_),
  115. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, attr_),
  116. ~0u, // no _has_bits_
  117. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, _internal_metadata_),
  118. ~0u, // no _extensions_
  119. ~0u, // no _oneof_case_
  120. ~0u, // no _weak_field_map_
  121. ~0u, // no _inlined_string_donated_
  122. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, signature_),
  123. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, node_),
  124. ~0u, // no _has_bits_
  125. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, _internal_metadata_),
  126. ~0u, // no _extensions_
  127. ~0u, // no _oneof_case_
  128. ~0u, // no _weak_field_map_
  129. ~0u, // no _inlined_string_donated_
  130. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, function_name_),
  131. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, gradient_func_),
  132. };
  133. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  134. { 0, -1, -1, sizeof(::opencv_tensorflow::FunctionDefLibrary)},
  135. { 8, 16, -1, sizeof(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse)},
  136. { 18, -1, -1, sizeof(::opencv_tensorflow::FunctionDef_Node)},
  137. { 29, -1, -1, sizeof(::opencv_tensorflow::FunctionDef)},
  138. { 37, -1, -1, sizeof(::opencv_tensorflow::GradientDef)},
  139. };
  140. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDefLibrary_default_instance_),
  142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_),
  143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_Node_default_instance_),
  144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_default_instance_),
  145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_GradientDef_default_instance_),
  146. };
  147. const char descriptor_table_protodef_function_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  148. "\n\016function.proto\022\021opencv_tensorflow\032\020att"
  149. "r_value.proto\032\014op_def.proto\"x\n\022FunctionD"
  150. "efLibrary\0220\n\010function\030\001 \003(\0132\036.opencv_ten"
  151. "sorflow.FunctionDef\0220\n\010gradient\030\002 \003(\0132\036."
  152. "opencv_tensorflow.GradientDef\"\261\002\n\013Functi"
  153. "onDef\022+\n\tsignature\030\001 \001(\0132\030.opencv_tensor"
  154. "flow.OpDef\0221\n\004node\030\002 \003(\0132#.opencv_tensor"
  155. "flow.FunctionDef.Node\032\301\001\n\004Node\022\013\n\003ret\030\001 "
  156. "\003(\t\022\n\n\002op\030\002 \001(\t\022\013\n\003arg\030\003 \003(\t\022\013\n\003dep\030\004 \003("
  157. "\t\022;\n\004attr\030\005 \003(\0132-.opencv_tensorflow.Func"
  158. "tionDef.Node.AttrEntry\032I\n\tAttrEntry\022\013\n\003k"
  159. "ey\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tensorf"
  160. "low.AttrValue:\0028\001\";\n\013GradientDef\022\025\n\rfunc"
  161. "tion_name\030\001 \001(\t\022\025\n\rgradient_func\030\002 \001(\tB/"
  162. "\n\030org.tensorflow.frameworkB\016FunctionProt"
  163. "osP\001\370\001\001b\006proto3"
  164. ;
  165. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_function_2eproto_deps[2] = {
  166. &::descriptor_table_attr_5fvalue_2eproto,
  167. &::descriptor_table_op_5fdef_2eproto,
  168. };
  169. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_function_2eproto_once;
  170. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_function_2eproto = {
  171. false, false, 615, descriptor_table_protodef_function_2eproto, "function.proto",
  172. &descriptor_table_function_2eproto_once, descriptor_table_function_2eproto_deps, 2, 5,
  173. schemas, file_default_instances, TableStruct_function_2eproto::offsets,
  174. file_level_metadata_function_2eproto, file_level_enum_descriptors_function_2eproto, file_level_service_descriptors_function_2eproto,
  175. };
  176. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_function_2eproto_getter() {
  177. return &descriptor_table_function_2eproto;
  178. }
  179. // Force running AddDescriptors() at dynamic initialization time.
  180. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_function_2eproto(&descriptor_table_function_2eproto);
  181. namespace opencv_tensorflow {
  182. // ===================================================================
  183. class FunctionDefLibrary::_Internal {
  184. public:
  185. };
  186. FunctionDefLibrary::FunctionDefLibrary(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  187. bool is_message_owned)
  188. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  189. function_(arena),
  190. gradient_(arena) {
  191. SharedCtor();
  192. if (!is_message_owned) {
  193. RegisterArenaDtor(arena);
  194. }
  195. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDefLibrary)
  196. }
  197. FunctionDefLibrary::FunctionDefLibrary(const FunctionDefLibrary& from)
  198. : ::PROTOBUF_NAMESPACE_ID::Message(),
  199. function_(from.function_),
  200. gradient_(from.gradient_) {
  201. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  202. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDefLibrary)
  203. }
  204. inline void FunctionDefLibrary::SharedCtor() {
  205. }
  206. FunctionDefLibrary::~FunctionDefLibrary() {
  207. // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDefLibrary)
  208. if (GetArenaForAllocation() != nullptr) return;
  209. SharedDtor();
  210. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  211. }
  212. inline void FunctionDefLibrary::SharedDtor() {
  213. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  214. }
  215. void FunctionDefLibrary::ArenaDtor(void* object) {
  216. FunctionDefLibrary* _this = reinterpret_cast< FunctionDefLibrary* >(object);
  217. (void)_this;
  218. }
  219. void FunctionDefLibrary::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  220. }
  221. void FunctionDefLibrary::SetCachedSize(int size) const {
  222. _cached_size_.Set(size);
  223. }
  224. void FunctionDefLibrary::Clear() {
  225. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDefLibrary)
  226. uint32_t cached_has_bits = 0;
  227. // Prevent compiler warnings about cached_has_bits being unused
  228. (void) cached_has_bits;
  229. function_.Clear();
  230. gradient_.Clear();
  231. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  232. }
  233. const char* FunctionDefLibrary::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  234. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  235. while (!ctx->Done(&ptr)) {
  236. uint32_t tag;
  237. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  238. switch (tag >> 3) {
  239. // repeated .opencv_tensorflow.FunctionDef function = 1;
  240. case 1:
  241. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  242. ptr -= 1;
  243. do {
  244. ptr += 1;
  245. ptr = ctx->ParseMessage(_internal_add_function(), ptr);
  246. CHK_(ptr);
  247. if (!ctx->DataAvailable(ptr)) break;
  248. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  249. } else
  250. goto handle_unusual;
  251. continue;
  252. // repeated .opencv_tensorflow.GradientDef gradient = 2;
  253. case 2:
  254. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  255. ptr -= 1;
  256. do {
  257. ptr += 1;
  258. ptr = ctx->ParseMessage(_internal_add_gradient(), ptr);
  259. CHK_(ptr);
  260. if (!ctx->DataAvailable(ptr)) break;
  261. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  262. } else
  263. goto handle_unusual;
  264. continue;
  265. default:
  266. goto handle_unusual;
  267. } // switch
  268. handle_unusual:
  269. if ((tag == 0) || ((tag & 7) == 4)) {
  270. CHK_(ptr);
  271. ctx->SetLastTag(tag);
  272. goto message_done;
  273. }
  274. ptr = UnknownFieldParse(
  275. tag,
  276. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  277. ptr, ctx);
  278. CHK_(ptr != nullptr);
  279. } // while
  280. message_done:
  281. return ptr;
  282. failure:
  283. ptr = nullptr;
  284. goto message_done;
  285. #undef CHK_
  286. }
  287. uint8_t* FunctionDefLibrary::_InternalSerialize(
  288. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  289. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDefLibrary)
  290. uint32_t cached_has_bits = 0;
  291. (void) cached_has_bits;
  292. // repeated .opencv_tensorflow.FunctionDef function = 1;
  293. for (unsigned int i = 0,
  294. n = static_cast<unsigned int>(this->_internal_function_size()); i < n; i++) {
  295. target = stream->EnsureSpace(target);
  296. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  297. InternalWriteMessage(1, this->_internal_function(i), target, stream);
  298. }
  299. // repeated .opencv_tensorflow.GradientDef gradient = 2;
  300. for (unsigned int i = 0,
  301. n = static_cast<unsigned int>(this->_internal_gradient_size()); i < n; i++) {
  302. target = stream->EnsureSpace(target);
  303. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  304. InternalWriteMessage(2, this->_internal_gradient(i), target, stream);
  305. }
  306. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  307. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  308. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  309. }
  310. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDefLibrary)
  311. return target;
  312. }
  313. size_t FunctionDefLibrary::ByteSizeLong() const {
  314. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDefLibrary)
  315. size_t total_size = 0;
  316. uint32_t cached_has_bits = 0;
  317. // Prevent compiler warnings about cached_has_bits being unused
  318. (void) cached_has_bits;
  319. // repeated .opencv_tensorflow.FunctionDef function = 1;
  320. total_size += 1UL * this->_internal_function_size();
  321. for (const auto& msg : this->function_) {
  322. total_size +=
  323. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  324. }
  325. // repeated .opencv_tensorflow.GradientDef gradient = 2;
  326. total_size += 1UL * this->_internal_gradient_size();
  327. for (const auto& msg : this->gradient_) {
  328. total_size +=
  329. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  330. }
  331. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  332. }
  333. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDefLibrary::_class_data_ = {
  334. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  335. FunctionDefLibrary::MergeImpl
  336. };
  337. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDefLibrary::GetClassData() const { return &_class_data_; }
  338. void FunctionDefLibrary::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  339. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  340. static_cast<FunctionDefLibrary *>(to)->MergeFrom(
  341. static_cast<const FunctionDefLibrary &>(from));
  342. }
  343. void FunctionDefLibrary::MergeFrom(const FunctionDefLibrary& from) {
  344. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDefLibrary)
  345. GOOGLE_DCHECK_NE(&from, this);
  346. uint32_t cached_has_bits = 0;
  347. (void) cached_has_bits;
  348. function_.MergeFrom(from.function_);
  349. gradient_.MergeFrom(from.gradient_);
  350. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  351. }
  352. void FunctionDefLibrary::CopyFrom(const FunctionDefLibrary& from) {
  353. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDefLibrary)
  354. if (&from == this) return;
  355. Clear();
  356. MergeFrom(from);
  357. }
  358. bool FunctionDefLibrary::IsInitialized() const {
  359. return true;
  360. }
  361. void FunctionDefLibrary::InternalSwap(FunctionDefLibrary* other) {
  362. using std::swap;
  363. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  364. function_.InternalSwap(&other->function_);
  365. gradient_.InternalSwap(&other->gradient_);
  366. }
  367. ::PROTOBUF_NAMESPACE_ID::Metadata FunctionDefLibrary::GetMetadata() const {
  368. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  369. &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
  370. file_level_metadata_function_2eproto[0]);
  371. }
  372. // ===================================================================
  373. FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse() {}
  374. FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  375. : SuperType(arena) {}
  376. void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other) {
  377. MergeFromInternal(other);
  378. }
  379. ::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef_Node_AttrEntry_DoNotUse::GetMetadata() const {
  380. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  381. &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
  382. file_level_metadata_function_2eproto[1]);
  383. }
  384. // ===================================================================
  385. class FunctionDef_Node::_Internal {
  386. public:
  387. };
  388. void FunctionDef_Node::clear_attr() {
  389. attr_.Clear();
  390. }
  391. FunctionDef_Node::FunctionDef_Node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  392. bool is_message_owned)
  393. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  394. ret_(arena),
  395. arg_(arena),
  396. dep_(arena),
  397. attr_(arena) {
  398. SharedCtor();
  399. if (!is_message_owned) {
  400. RegisterArenaDtor(arena);
  401. }
  402. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef.Node)
  403. }
  404. FunctionDef_Node::FunctionDef_Node(const FunctionDef_Node& from)
  405. : ::PROTOBUF_NAMESPACE_ID::Message(),
  406. ret_(from.ret_),
  407. arg_(from.arg_),
  408. dep_(from.dep_) {
  409. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  410. attr_.MergeFrom(from.attr_);
  411. op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  413. op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  414. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  415. if (!from._internal_op().empty()) {
  416. op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_op(),
  417. GetArenaForAllocation());
  418. }
  419. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef.Node)
  420. }
  421. inline void FunctionDef_Node::SharedCtor() {
  422. op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  423. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  424. op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  425. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  426. }
  427. FunctionDef_Node::~FunctionDef_Node() {
  428. // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef.Node)
  429. if (GetArenaForAllocation() != nullptr) return;
  430. SharedDtor();
  431. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  432. }
  433. inline void FunctionDef_Node::SharedDtor() {
  434. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  435. op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  436. }
  437. void FunctionDef_Node::ArenaDtor(void* object) {
  438. FunctionDef_Node* _this = reinterpret_cast< FunctionDef_Node* >(object);
  439. (void)_this;
  440. _this->attr_. ~MapField();
  441. }
  442. inline void FunctionDef_Node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) {
  443. if (arena != nullptr) {
  444. arena->OwnCustomDestructor(this, &FunctionDef_Node::ArenaDtor);
  445. }
  446. }
  447. void FunctionDef_Node::SetCachedSize(int size) const {
  448. _cached_size_.Set(size);
  449. }
  450. void FunctionDef_Node::Clear() {
  451. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef.Node)
  452. uint32_t cached_has_bits = 0;
  453. // Prevent compiler warnings about cached_has_bits being unused
  454. (void) cached_has_bits;
  455. ret_.Clear();
  456. arg_.Clear();
  457. dep_.Clear();
  458. attr_.Clear();
  459. op_.ClearToEmpty();
  460. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  461. }
  462. const char* FunctionDef_Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  463. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  464. while (!ctx->Done(&ptr)) {
  465. uint32_t tag;
  466. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  467. switch (tag >> 3) {
  468. // repeated string ret = 1;
  469. case 1:
  470. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  471. ptr -= 1;
  472. do {
  473. ptr += 1;
  474. auto str = _internal_add_ret();
  475. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  476. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.ret"));
  477. CHK_(ptr);
  478. if (!ctx->DataAvailable(ptr)) break;
  479. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  480. } else
  481. goto handle_unusual;
  482. continue;
  483. // string op = 2;
  484. case 2:
  485. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  486. auto str = _internal_mutable_op();
  487. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  488. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.op"));
  489. CHK_(ptr);
  490. } else
  491. goto handle_unusual;
  492. continue;
  493. // repeated string arg = 3;
  494. case 3:
  495. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  496. ptr -= 1;
  497. do {
  498. ptr += 1;
  499. auto str = _internal_add_arg();
  500. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  501. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.arg"));
  502. CHK_(ptr);
  503. if (!ctx->DataAvailable(ptr)) break;
  504. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  505. } else
  506. goto handle_unusual;
  507. continue;
  508. // repeated string dep = 4;
  509. case 4:
  510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  511. ptr -= 1;
  512. do {
  513. ptr += 1;
  514. auto str = _internal_add_dep();
  515. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  516. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.dep"));
  517. CHK_(ptr);
  518. if (!ctx->DataAvailable(ptr)) break;
  519. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
  520. } else
  521. goto handle_unusual;
  522. continue;
  523. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  524. case 5:
  525. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
  526. ptr -= 1;
  527. do {
  528. ptr += 1;
  529. ptr = ctx->ParseMessage(&attr_, ptr);
  530. CHK_(ptr);
  531. if (!ctx->DataAvailable(ptr)) break;
  532. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  533. } else
  534. goto handle_unusual;
  535. continue;
  536. default:
  537. goto handle_unusual;
  538. } // switch
  539. handle_unusual:
  540. if ((tag == 0) || ((tag & 7) == 4)) {
  541. CHK_(ptr);
  542. ctx->SetLastTag(tag);
  543. goto message_done;
  544. }
  545. ptr = UnknownFieldParse(
  546. tag,
  547. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  548. ptr, ctx);
  549. CHK_(ptr != nullptr);
  550. } // while
  551. message_done:
  552. return ptr;
  553. failure:
  554. ptr = nullptr;
  555. goto message_done;
  556. #undef CHK_
  557. }
  558. uint8_t* FunctionDef_Node::_InternalSerialize(
  559. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  560. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef.Node)
  561. uint32_t cached_has_bits = 0;
  562. (void) cached_has_bits;
  563. // repeated string ret = 1;
  564. for (int i = 0, n = this->_internal_ret_size(); i < n; i++) {
  565. const auto& s = this->_internal_ret(i);
  566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  567. s.data(), static_cast<int>(s.length()),
  568. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  569. "opencv_tensorflow.FunctionDef.Node.ret");
  570. target = stream->WriteString(1, s, target);
  571. }
  572. // string op = 2;
  573. if (!this->_internal_op().empty()) {
  574. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  575. this->_internal_op().data(), static_cast<int>(this->_internal_op().length()),
  576. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  577. "opencv_tensorflow.FunctionDef.Node.op");
  578. target = stream->WriteStringMaybeAliased(
  579. 2, this->_internal_op(), target);
  580. }
  581. // repeated string arg = 3;
  582. for (int i = 0, n = this->_internal_arg_size(); i < n; i++) {
  583. const auto& s = this->_internal_arg(i);
  584. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  585. s.data(), static_cast<int>(s.length()),
  586. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  587. "opencv_tensorflow.FunctionDef.Node.arg");
  588. target = stream->WriteString(3, s, target);
  589. }
  590. // repeated string dep = 4;
  591. for (int i = 0, n = this->_internal_dep_size(); i < n; i++) {
  592. const auto& s = this->_internal_dep(i);
  593. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  594. s.data(), static_cast<int>(s.length()),
  595. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  596. "opencv_tensorflow.FunctionDef.Node.dep");
  597. target = stream->WriteString(4, s, target);
  598. }
  599. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  600. if (!this->_internal_attr().empty()) {
  601. typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_pointer
  602. ConstPtr;
  603. typedef ConstPtr SortItem;
  604. typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
  605. struct Utf8Check {
  606. static void Check(ConstPtr p) {
  607. (void)p;
  608. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  609. p->first.data(), static_cast<int>(p->first.length()),
  610. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  611. "opencv_tensorflow.FunctionDef.Node.AttrEntry.key");
  612. }
  613. };
  614. if (stream->IsSerializationDeterministic() &&
  615. this->_internal_attr().size() > 1) {
  616. ::std::unique_ptr<SortItem[]> items(
  617. new SortItem[this->_internal_attr().size()]);
  618. typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
  619. size_type n = 0;
  620. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
  621. it = this->_internal_attr().begin();
  622. it != this->_internal_attr().end(); ++it, ++n) {
  623. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  624. }
  625. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  626. for (size_type i = 0; i < n; i++) {
  627. target = FunctionDef_Node_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
  628. Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
  629. }
  630. } else {
  631. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
  632. it = this->_internal_attr().begin();
  633. it != this->_internal_attr().end(); ++it) {
  634. target = FunctionDef_Node_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, it->first, it->second, target, stream);
  635. Utf8Check::Check(&(*it));
  636. }
  637. }
  638. }
  639. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  640. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  641. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  642. }
  643. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef.Node)
  644. return target;
  645. }
  646. size_t FunctionDef_Node::ByteSizeLong() const {
  647. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef.Node)
  648. size_t total_size = 0;
  649. uint32_t cached_has_bits = 0;
  650. // Prevent compiler warnings about cached_has_bits being unused
  651. (void) cached_has_bits;
  652. // repeated string ret = 1;
  653. total_size += 1 *
  654. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ret_.size());
  655. for (int i = 0, n = ret_.size(); i < n; i++) {
  656. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  657. ret_.Get(i));
  658. }
  659. // repeated string arg = 3;
  660. total_size += 1 *
  661. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(arg_.size());
  662. for (int i = 0, n = arg_.size(); i < n; i++) {
  663. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  664. arg_.Get(i));
  665. }
  666. // repeated string dep = 4;
  667. total_size += 1 *
  668. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dep_.size());
  669. for (int i = 0, n = dep_.size(); i < n; i++) {
  670. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  671. dep_.Get(i));
  672. }
  673. // map<string, .opencv_tensorflow.AttrValue> attr = 5;
  674. total_size += 1 *
  675. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attr_size());
  676. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
  677. it = this->_internal_attr().begin();
  678. it != this->_internal_attr().end(); ++it) {
  679. total_size += FunctionDef_Node_AttrEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
  680. }
  681. // string op = 2;
  682. if (!this->_internal_op().empty()) {
  683. total_size += 1 +
  684. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  685. this->_internal_op());
  686. }
  687. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  688. }
  689. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDef_Node::_class_data_ = {
  690. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  691. FunctionDef_Node::MergeImpl
  692. };
  693. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDef_Node::GetClassData() const { return &_class_data_; }
  694. void FunctionDef_Node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  695. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  696. static_cast<FunctionDef_Node *>(to)->MergeFrom(
  697. static_cast<const FunctionDef_Node &>(from));
  698. }
  699. void FunctionDef_Node::MergeFrom(const FunctionDef_Node& from) {
  700. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef.Node)
  701. GOOGLE_DCHECK_NE(&from, this);
  702. uint32_t cached_has_bits = 0;
  703. (void) cached_has_bits;
  704. ret_.MergeFrom(from.ret_);
  705. arg_.MergeFrom(from.arg_);
  706. dep_.MergeFrom(from.dep_);
  707. attr_.MergeFrom(from.attr_);
  708. if (!from._internal_op().empty()) {
  709. _internal_set_op(from._internal_op());
  710. }
  711. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  712. }
  713. void FunctionDef_Node::CopyFrom(const FunctionDef_Node& from) {
  714. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef.Node)
  715. if (&from == this) return;
  716. Clear();
  717. MergeFrom(from);
  718. }
  719. bool FunctionDef_Node::IsInitialized() const {
  720. return true;
  721. }
  722. void FunctionDef_Node::InternalSwap(FunctionDef_Node* other) {
  723. using std::swap;
  724. auto* lhs_arena = GetArenaForAllocation();
  725. auto* rhs_arena = other->GetArenaForAllocation();
  726. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  727. ret_.InternalSwap(&other->ret_);
  728. arg_.InternalSwap(&other->arg_);
  729. dep_.InternalSwap(&other->dep_);
  730. attr_.InternalSwap(&other->attr_);
  731. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  732. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  733. &op_, lhs_arena,
  734. &other->op_, rhs_arena
  735. );
  736. }
  737. ::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef_Node::GetMetadata() const {
  738. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  739. &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
  740. file_level_metadata_function_2eproto[2]);
  741. }
  742. // ===================================================================
  743. class FunctionDef::_Internal {
  744. public:
  745. static const ::opencv_tensorflow::OpDef& signature(const FunctionDef* msg);
  746. };
  747. const ::opencv_tensorflow::OpDef&
  748. FunctionDef::_Internal::signature(const FunctionDef* msg) {
  749. return *msg->signature_;
  750. }
  751. void FunctionDef::clear_signature() {
  752. if (GetArenaForAllocation() == nullptr && signature_ != nullptr) {
  753. delete signature_;
  754. }
  755. signature_ = nullptr;
  756. }
  757. FunctionDef::FunctionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  758. bool is_message_owned)
  759. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  760. node_(arena) {
  761. SharedCtor();
  762. if (!is_message_owned) {
  763. RegisterArenaDtor(arena);
  764. }
  765. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef)
  766. }
  767. FunctionDef::FunctionDef(const FunctionDef& from)
  768. : ::PROTOBUF_NAMESPACE_ID::Message(),
  769. node_(from.node_) {
  770. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  771. if (from._internal_has_signature()) {
  772. signature_ = new ::opencv_tensorflow::OpDef(*from.signature_);
  773. } else {
  774. signature_ = nullptr;
  775. }
  776. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef)
  777. }
  778. inline void FunctionDef::SharedCtor() {
  779. signature_ = nullptr;
  780. }
  781. FunctionDef::~FunctionDef() {
  782. // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef)
  783. if (GetArenaForAllocation() != nullptr) return;
  784. SharedDtor();
  785. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  786. }
  787. inline void FunctionDef::SharedDtor() {
  788. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  789. if (this != internal_default_instance()) delete signature_;
  790. }
  791. void FunctionDef::ArenaDtor(void* object) {
  792. FunctionDef* _this = reinterpret_cast< FunctionDef* >(object);
  793. (void)_this;
  794. }
  795. void FunctionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  796. }
  797. void FunctionDef::SetCachedSize(int size) const {
  798. _cached_size_.Set(size);
  799. }
  800. void FunctionDef::Clear() {
  801. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef)
  802. uint32_t cached_has_bits = 0;
  803. // Prevent compiler warnings about cached_has_bits being unused
  804. (void) cached_has_bits;
  805. node_.Clear();
  806. if (GetArenaForAllocation() == nullptr && signature_ != nullptr) {
  807. delete signature_;
  808. }
  809. signature_ = nullptr;
  810. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  811. }
  812. const char* FunctionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  813. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  814. while (!ctx->Done(&ptr)) {
  815. uint32_t tag;
  816. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  817. switch (tag >> 3) {
  818. // .opencv_tensorflow.OpDef signature = 1;
  819. case 1:
  820. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  821. ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr);
  822. CHK_(ptr);
  823. } else
  824. goto handle_unusual;
  825. continue;
  826. // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
  827. case 2:
  828. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  829. ptr -= 1;
  830. do {
  831. ptr += 1;
  832. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  833. CHK_(ptr);
  834. if (!ctx->DataAvailable(ptr)) break;
  835. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  836. } else
  837. goto handle_unusual;
  838. continue;
  839. default:
  840. goto handle_unusual;
  841. } // switch
  842. handle_unusual:
  843. if ((tag == 0) || ((tag & 7) == 4)) {
  844. CHK_(ptr);
  845. ctx->SetLastTag(tag);
  846. goto message_done;
  847. }
  848. ptr = UnknownFieldParse(
  849. tag,
  850. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  851. ptr, ctx);
  852. CHK_(ptr != nullptr);
  853. } // while
  854. message_done:
  855. return ptr;
  856. failure:
  857. ptr = nullptr;
  858. goto message_done;
  859. #undef CHK_
  860. }
  861. uint8_t* FunctionDef::_InternalSerialize(
  862. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  863. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef)
  864. uint32_t cached_has_bits = 0;
  865. (void) cached_has_bits;
  866. // .opencv_tensorflow.OpDef signature = 1;
  867. if (this->_internal_has_signature()) {
  868. target = stream->EnsureSpace(target);
  869. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  870. InternalWriteMessage(
  871. 1, _Internal::signature(this), target, stream);
  872. }
  873. // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
  874. for (unsigned int i = 0,
  875. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  876. target = stream->EnsureSpace(target);
  877. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  878. InternalWriteMessage(2, this->_internal_node(i), target, stream);
  879. }
  880. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  881. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  882. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  883. }
  884. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef)
  885. return target;
  886. }
  887. size_t FunctionDef::ByteSizeLong() const {
  888. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef)
  889. size_t total_size = 0;
  890. uint32_t cached_has_bits = 0;
  891. // Prevent compiler warnings about cached_has_bits being unused
  892. (void) cached_has_bits;
  893. // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
  894. total_size += 1UL * this->_internal_node_size();
  895. for (const auto& msg : this->node_) {
  896. total_size +=
  897. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  898. }
  899. // .opencv_tensorflow.OpDef signature = 1;
  900. if (this->_internal_has_signature()) {
  901. total_size += 1 +
  902. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  903. *signature_);
  904. }
  905. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  906. }
  907. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDef::_class_data_ = {
  908. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  909. FunctionDef::MergeImpl
  910. };
  911. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDef::GetClassData() const { return &_class_data_; }
  912. void FunctionDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  913. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  914. static_cast<FunctionDef *>(to)->MergeFrom(
  915. static_cast<const FunctionDef &>(from));
  916. }
  917. void FunctionDef::MergeFrom(const FunctionDef& from) {
  918. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef)
  919. GOOGLE_DCHECK_NE(&from, this);
  920. uint32_t cached_has_bits = 0;
  921. (void) cached_has_bits;
  922. node_.MergeFrom(from.node_);
  923. if (from._internal_has_signature()) {
  924. _internal_mutable_signature()->::opencv_tensorflow::OpDef::MergeFrom(from._internal_signature());
  925. }
  926. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  927. }
  928. void FunctionDef::CopyFrom(const FunctionDef& from) {
  929. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef)
  930. if (&from == this) return;
  931. Clear();
  932. MergeFrom(from);
  933. }
  934. bool FunctionDef::IsInitialized() const {
  935. return true;
  936. }
  937. void FunctionDef::InternalSwap(FunctionDef* other) {
  938. using std::swap;
  939. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  940. node_.InternalSwap(&other->node_);
  941. swap(signature_, other->signature_);
  942. }
  943. ::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef::GetMetadata() const {
  944. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  945. &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
  946. file_level_metadata_function_2eproto[3]);
  947. }
  948. // ===================================================================
  949. class GradientDef::_Internal {
  950. public:
  951. };
  952. GradientDef::GradientDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  953. bool is_message_owned)
  954. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  955. SharedCtor();
  956. if (!is_message_owned) {
  957. RegisterArenaDtor(arena);
  958. }
  959. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GradientDef)
  960. }
  961. GradientDef::GradientDef(const GradientDef& from)
  962. : ::PROTOBUF_NAMESPACE_ID::Message() {
  963. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  964. function_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  965. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  966. function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  967. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  968. if (!from._internal_function_name().empty()) {
  969. function_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_function_name(),
  970. GetArenaForAllocation());
  971. }
  972. gradient_func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  973. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  974. gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  975. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  976. if (!from._internal_gradient_func().empty()) {
  977. gradient_func_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_gradient_func(),
  978. GetArenaForAllocation());
  979. }
  980. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GradientDef)
  981. }
  982. inline void GradientDef::SharedCtor() {
  983. function_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  984. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  985. function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  986. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  987. gradient_func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  988. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  989. gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  990. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  991. }
  992. GradientDef::~GradientDef() {
  993. // @@protoc_insertion_point(destructor:opencv_tensorflow.GradientDef)
  994. if (GetArenaForAllocation() != nullptr) return;
  995. SharedDtor();
  996. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  997. }
  998. inline void GradientDef::SharedDtor() {
  999. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1000. function_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1001. gradient_func_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1002. }
  1003. void GradientDef::ArenaDtor(void* object) {
  1004. GradientDef* _this = reinterpret_cast< GradientDef* >(object);
  1005. (void)_this;
  1006. }
  1007. void GradientDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1008. }
  1009. void GradientDef::SetCachedSize(int size) const {
  1010. _cached_size_.Set(size);
  1011. }
  1012. void GradientDef::Clear() {
  1013. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GradientDef)
  1014. uint32_t cached_has_bits = 0;
  1015. // Prevent compiler warnings about cached_has_bits being unused
  1016. (void) cached_has_bits;
  1017. function_name_.ClearToEmpty();
  1018. gradient_func_.ClearToEmpty();
  1019. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1020. }
  1021. const char* GradientDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1022. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1023. while (!ctx->Done(&ptr)) {
  1024. uint32_t tag;
  1025. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1026. switch (tag >> 3) {
  1027. // string function_name = 1;
  1028. case 1:
  1029. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1030. auto str = _internal_mutable_function_name();
  1031. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1032. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.function_name"));
  1033. CHK_(ptr);
  1034. } else
  1035. goto handle_unusual;
  1036. continue;
  1037. // string gradient_func = 2;
  1038. case 2:
  1039. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  1040. auto str = _internal_mutable_gradient_func();
  1041. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1042. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.gradient_func"));
  1043. CHK_(ptr);
  1044. } else
  1045. goto handle_unusual;
  1046. continue;
  1047. default:
  1048. goto handle_unusual;
  1049. } // switch
  1050. handle_unusual:
  1051. if ((tag == 0) || ((tag & 7) == 4)) {
  1052. CHK_(ptr);
  1053. ctx->SetLastTag(tag);
  1054. goto message_done;
  1055. }
  1056. ptr = UnknownFieldParse(
  1057. tag,
  1058. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1059. ptr, ctx);
  1060. CHK_(ptr != nullptr);
  1061. } // while
  1062. message_done:
  1063. return ptr;
  1064. failure:
  1065. ptr = nullptr;
  1066. goto message_done;
  1067. #undef CHK_
  1068. }
  1069. uint8_t* GradientDef::_InternalSerialize(
  1070. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1071. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GradientDef)
  1072. uint32_t cached_has_bits = 0;
  1073. (void) cached_has_bits;
  1074. // string function_name = 1;
  1075. if (!this->_internal_function_name().empty()) {
  1076. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1077. this->_internal_function_name().data(), static_cast<int>(this->_internal_function_name().length()),
  1078. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1079. "opencv_tensorflow.GradientDef.function_name");
  1080. target = stream->WriteStringMaybeAliased(
  1081. 1, this->_internal_function_name(), target);
  1082. }
  1083. // string gradient_func = 2;
  1084. if (!this->_internal_gradient_func().empty()) {
  1085. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1086. this->_internal_gradient_func().data(), static_cast<int>(this->_internal_gradient_func().length()),
  1087. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1088. "opencv_tensorflow.GradientDef.gradient_func");
  1089. target = stream->WriteStringMaybeAliased(
  1090. 2, this->_internal_gradient_func(), target);
  1091. }
  1092. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1093. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1094. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1095. }
  1096. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GradientDef)
  1097. return target;
  1098. }
  1099. size_t GradientDef::ByteSizeLong() const {
  1100. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GradientDef)
  1101. size_t total_size = 0;
  1102. uint32_t cached_has_bits = 0;
  1103. // Prevent compiler warnings about cached_has_bits being unused
  1104. (void) cached_has_bits;
  1105. // string function_name = 1;
  1106. if (!this->_internal_function_name().empty()) {
  1107. total_size += 1 +
  1108. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1109. this->_internal_function_name());
  1110. }
  1111. // string gradient_func = 2;
  1112. if (!this->_internal_gradient_func().empty()) {
  1113. total_size += 1 +
  1114. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1115. this->_internal_gradient_func());
  1116. }
  1117. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1118. }
  1119. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GradientDef::_class_data_ = {
  1120. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1121. GradientDef::MergeImpl
  1122. };
  1123. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GradientDef::GetClassData() const { return &_class_data_; }
  1124. void GradientDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1125. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1126. static_cast<GradientDef *>(to)->MergeFrom(
  1127. static_cast<const GradientDef &>(from));
  1128. }
  1129. void GradientDef::MergeFrom(const GradientDef& from) {
  1130. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GradientDef)
  1131. GOOGLE_DCHECK_NE(&from, this);
  1132. uint32_t cached_has_bits = 0;
  1133. (void) cached_has_bits;
  1134. if (!from._internal_function_name().empty()) {
  1135. _internal_set_function_name(from._internal_function_name());
  1136. }
  1137. if (!from._internal_gradient_func().empty()) {
  1138. _internal_set_gradient_func(from._internal_gradient_func());
  1139. }
  1140. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1141. }
  1142. void GradientDef::CopyFrom(const GradientDef& from) {
  1143. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GradientDef)
  1144. if (&from == this) return;
  1145. Clear();
  1146. MergeFrom(from);
  1147. }
  1148. bool GradientDef::IsInitialized() const {
  1149. return true;
  1150. }
  1151. void GradientDef::InternalSwap(GradientDef* other) {
  1152. using std::swap;
  1153. auto* lhs_arena = GetArenaForAllocation();
  1154. auto* rhs_arena = other->GetArenaForAllocation();
  1155. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1156. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1157. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1158. &function_name_, lhs_arena,
  1159. &other->function_name_, rhs_arena
  1160. );
  1161. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1162. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1163. &gradient_func_, lhs_arena,
  1164. &other->gradient_func_, rhs_arena
  1165. );
  1166. }
  1167. ::PROTOBUF_NAMESPACE_ID::Metadata GradientDef::GetMetadata() const {
  1168. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1169. &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
  1170. file_level_metadata_function_2eproto[4]);
  1171. }
  1172. // @@protoc_insertion_point(namespace_scope)
  1173. } // namespace opencv_tensorflow
  1174. PROTOBUF_NAMESPACE_OPEN
  1175. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDefLibrary >(Arena* arena) {
  1176. return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDefLibrary >(arena);
  1177. }
  1178. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(Arena* arena) {
  1179. return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(arena);
  1180. }
  1181. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node >(Arena* arena) {
  1182. return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node >(arena);
  1183. }
  1184. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef >(Arena* arena) {
  1185. return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef >(arena);
  1186. }
  1187. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::GradientDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::GradientDef >(Arena* arena) {
  1188. return Arena::CreateMessageInternal< ::opencv_tensorflow::GradientDef >(arena);
  1189. }
  1190. PROTOBUF_NAMESPACE_CLOSE
  1191. // @@protoc_insertion_point(global_scope)
  1192. #include <google/protobuf/port_undef.inc>