2017-06-26 18:35:51 +08:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: graph.proto
|
|
|
|
|
|
|
|
#include "graph.pb.h"
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
|
#include <google/protobuf/stubs/port.h>
|
|
|
|
#include <google/protobuf/stubs/once.h>
|
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
|
|
#include <google/protobuf/descriptor.h>
|
|
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
|
|
#include <google/protobuf/reflection_ops.h>
|
|
|
|
#include <google/protobuf/wire_format.h>
|
2018-01-15 23:51:38 +08:00
|
|
|
// This is a temporary google only hack
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
#include "third_party/protobuf/version.h"
|
|
|
|
#endif
|
2017-06-26 18:35:51 +08:00
|
|
|
// @@protoc_insertion_point(includes)
|
2018-09-13 02:33:45 +08:00
|
|
|
namespace opencv_tensorflow {
|
2018-01-15 23:51:38 +08:00
|
|
|
class GraphDefDefaultTypeInternal {
|
|
|
|
public:
|
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<GraphDef>
|
|
|
|
_instance;
|
|
|
|
} _GraphDef_default_instance_;
|
|
|
|
class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal {
|
|
|
|
public:
|
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<NodeDef_AttrEntry_DoNotUse>
|
|
|
|
_instance;
|
|
|
|
} _NodeDef_AttrEntry_DoNotUse_default_instance_;
|
|
|
|
class NodeDefDefaultTypeInternal {
|
|
|
|
public:
|
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<NodeDef>
|
|
|
|
_instance;
|
|
|
|
} _NodeDef_default_instance_;
|
2018-09-13 02:33:45 +08:00
|
|
|
} // namespace opencv_tensorflow
|
2018-01-15 23:51:38 +08:00
|
|
|
namespace protobuf_graph_2eproto {
|
|
|
|
void InitDefaultsGraphDefImpl() {
|
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
2017-06-26 18:35:51 +08:00
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
|
#else
|
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
protobuf_graph_2eproto::InitDefaultsNodeDef();
|
|
|
|
protobuf_versions_2eproto::InitDefaultsVersionDef();
|
|
|
|
protobuf_function_2eproto::InitDefaultsFunctionDefLibrary();
|
|
|
|
{
|
2018-09-13 02:33:45 +08:00
|
|
|
void* ptr = &::opencv_tensorflow::_GraphDef_default_instance_;
|
|
|
|
new (ptr) ::opencv_tensorflow::GraphDef();
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::GraphDef::InitAsDefaultInstance();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
void InitDefaultsGraphDef() {
|
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGraphDefImpl);
|
|
|
|
}
|
|
|
|
|
|
|
|
void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl() {
|
2017-06-26 18:35:51 +08:00
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
|
#else
|
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();
|
|
|
|
{
|
2018-09-13 02:33:45 +08:00
|
|
|
void* ptr = &::opencv_tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_;
|
|
|
|
new (ptr) ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse();
|
2018-01-15 23:51:38 +08:00
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse::InitAsDefaultInstance();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
void InitDefaultsNodeDef_AttrEntry_DoNotUse() {
|
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeDef_AttrEntry_DoNotUseImpl);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
|
|
|
|
void InitDefaultsNodeDefImpl() {
|
2017-06-26 18:35:51 +08:00
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
|
#else
|
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
protobuf_graph_2eproto::InitDefaultsNodeDef_AttrEntry_DoNotUse();
|
|
|
|
{
|
2018-09-13 02:33:45 +08:00
|
|
|
void* ptr = &::opencv_tensorflow::_NodeDef_default_instance_;
|
|
|
|
new (ptr) ::opencv_tensorflow::NodeDef();
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::NodeDef::InitAsDefaultInstance();
|
2018-01-15 23:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void InitDefaultsNodeDef() {
|
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeDefImpl);
|
|
|
|
}
|
|
|
|
|
|
|
|
::google::protobuf::Metadata file_level_metadata[3];
|
|
|
|
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
|
~0u, // no _has_bits_
|
2018-09-13 02:33:45 +08:00
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, _internal_metadata_),
|
2018-01-15 23:51:38 +08:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2018-09-13 02:33:45 +08:00
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, node_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, versions_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, version_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, library_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _has_bits_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _internal_metadata_),
|
2018-01-15 23:51:38 +08:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2018-09-13 02:33:45 +08:00
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, key_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, value_),
|
2018-01-15 23:51:38 +08:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
~0u, // no _has_bits_
|
2018-09-13 02:33:45 +08:00
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, _internal_metadata_),
|
2018-01-15 23:51:38 +08:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2018-09-13 02:33:45 +08:00
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, name_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, op_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, input_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, device_),
|
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, attr_),
|
2018-01-15 23:51:38 +08:00
|
|
|
};
|
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
2018-09-13 02:33:45 +08:00
|
|
|
{ 0, -1, sizeof(::opencv_tensorflow::GraphDef)},
|
|
|
|
{ 9, 16, sizeof(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse)},
|
|
|
|
{ 18, -1, sizeof(::opencv_tensorflow::NodeDef)},
|
2018-01-15 23:51:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
2018-09-13 02:33:45 +08:00
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_GraphDef_default_instance_),
|
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_),
|
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NodeDef_default_instance_),
|
2018-01-15 23:51:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
|
|
AddDescriptors();
|
|
|
|
::google::protobuf::MessageFactory* factory = NULL;
|
|
|
|
AssignDescriptors(
|
|
|
|
"graph.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
|
file_level_metadata, NULL, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
|
}
|
|
|
|
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
|
protobuf_AssignDescriptorsOnce();
|
|
|
|
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AddDescriptorsImpl() {
|
|
|
|
InitDefaults();
|
|
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
2018-09-13 02:33:45 +08:00
|
|
|
"\n\013graph.proto\022\021opencv_tensorflow\032\020attr_v"
|
|
|
|
"alue.proto\032\016function.proto\032\016versions.pro"
|
|
|
|
"to\"\262\001\n\010GraphDef\022(\n\004node\030\001 \003(\0132\032.opencv_t"
|
|
|
|
"ensorflow.NodeDef\022/\n\010versions\030\004 \001(\0132\035.op"
|
|
|
|
"encv_tensorflow.VersionDef\022\023\n\007version\030\003 "
|
|
|
|
"\001(\005B\002\030\001\0226\n\007library\030\002 \001(\0132%.opencv_tensor"
|
|
|
|
"flow.FunctionDefLibrary\"\301\001\n\007NodeDef\022\014\n\004n"
|
|
|
|
"ame\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r\n\005input\030\003 \003(\t\022\016\n\006"
|
|
|
|
"device\030\004 \001(\t\0222\n\004attr\030\005 \003(\0132$.opencv_tens"
|
|
|
|
"orflow.NodeDef.AttrEntry\032I\n\tAttrEntry\022\013\n"
|
|
|
|
"\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tenso"
|
|
|
|
"rflow.AttrValue:\0028\001B,\n\030org.tensorflow.fr"
|
|
|
|
"ameworkB\013GraphProtosP\001\370\001\001b\006proto3"
|
2018-01-15 23:51:38 +08:00
|
|
|
};
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
2018-09-13 02:33:45 +08:00
|
|
|
descriptor, 513);
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
|
"graph.proto", &protobuf_RegisterTypes);
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_attr_5fvalue_2eproto::AddDescriptors();
|
|
|
|
::protobuf_function_2eproto::AddDescriptors();
|
|
|
|
::protobuf_versions_2eproto::AddDescriptors();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
void AddDescriptors() {
|
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
|
struct StaticDescriptorInitializer {
|
|
|
|
StaticDescriptorInitializer() {
|
|
|
|
AddDescriptors();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
} static_descriptor_initializer;
|
|
|
|
} // namespace protobuf_graph_2eproto
|
2018-09-13 02:33:45 +08:00
|
|
|
namespace opencv_tensorflow {
|
2017-06-26 18:35:51 +08:00
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
void GraphDef::InitAsDefaultInstance() {
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::_GraphDef_default_instance_._instance.get_mutable()->versions_ = const_cast< ::opencv_tensorflow::VersionDef*>(
|
|
|
|
::opencv_tensorflow::VersionDef::internal_default_instance());
|
|
|
|
::opencv_tensorflow::_GraphDef_default_instance_._instance.get_mutable()->library_ = const_cast< ::opencv_tensorflow::FunctionDefLibrary*>(
|
|
|
|
::opencv_tensorflow::FunctionDefLibrary::internal_default_instance());
|
2018-01-15 23:51:38 +08:00
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
void GraphDef::_slow_mutable_versions() {
|
2018-09-13 02:33:45 +08:00
|
|
|
versions_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::VersionDef >(
|
2017-06-26 18:35:51 +08:00
|
|
|
GetArenaNoVirtual());
|
|
|
|
}
|
|
|
|
void GraphDef::unsafe_arena_set_allocated_versions(
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::VersionDef* versions) {
|
2017-06-26 18:35:51 +08:00
|
|
|
if (GetArenaNoVirtual() == NULL) {
|
|
|
|
delete versions_;
|
|
|
|
}
|
|
|
|
versions_ = versions;
|
|
|
|
if (versions) {
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.versions)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
void GraphDef::clear_versions() {
|
|
|
|
if (GetArenaNoVirtual() == NULL && versions_ != NULL) {
|
|
|
|
delete versions_;
|
|
|
|
}
|
|
|
|
versions_ = NULL;
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
void GraphDef::_slow_mutable_library() {
|
2018-09-13 02:33:45 +08:00
|
|
|
library_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::FunctionDefLibrary >(
|
2017-06-26 18:35:51 +08:00
|
|
|
GetArenaNoVirtual());
|
|
|
|
}
|
|
|
|
void GraphDef::unsafe_arena_set_allocated_library(
|
2018-09-13 02:33:45 +08:00
|
|
|
::opencv_tensorflow::FunctionDefLibrary* library) {
|
2017-06-26 18:35:51 +08:00
|
|
|
if (GetArenaNoVirtual() == NULL) {
|
|
|
|
delete library_;
|
|
|
|
}
|
|
|
|
library_ = library;
|
|
|
|
if (library) {
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.library)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
void GraphDef::clear_library() {
|
|
|
|
if (GetArenaNoVirtual() == NULL && library_ != NULL) {
|
|
|
|
delete library_;
|
|
|
|
}
|
|
|
|
library_ = NULL;
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
const int GraphDef::kNodeFieldNumber;
|
|
|
|
const int GraphDef::kVersionsFieldNumber;
|
|
|
|
const int GraphDef::kVersionFieldNumber;
|
|
|
|
const int GraphDef::kLibraryFieldNumber;
|
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
|
|
GraphDef::GraphDef()
|
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
|
::protobuf_graph_2eproto::InitDefaultsGraphDef();
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedCtor();
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(constructor:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
GraphDef::GraphDef(::google::protobuf::Arena* arena)
|
|
|
|
: ::google::protobuf::Message(),
|
|
|
|
_internal_metadata_(arena),
|
|
|
|
node_(arena) {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::InitDefaultsGraphDef();
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedCtor();
|
|
|
|
RegisterArenaDtor(arena);
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
GraphDef::GraphDef(const GraphDef& from)
|
|
|
|
: ::google::protobuf::Message(),
|
2018-01-15 23:51:38 +08:00
|
|
|
_internal_metadata_(NULL),
|
|
|
|
node_(from.node_),
|
|
|
|
_cached_size_(0) {
|
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
if (from.has_library()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
library_ = new ::opencv_tensorflow::FunctionDefLibrary(*from.library_);
|
2018-01-15 23:51:38 +08:00
|
|
|
} else {
|
|
|
|
library_ = NULL;
|
|
|
|
}
|
|
|
|
if (from.has_versions()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
versions_ = new ::opencv_tensorflow::VersionDef(*from.versions_);
|
2018-01-15 23:51:38 +08:00
|
|
|
} else {
|
|
|
|
versions_ = NULL;
|
|
|
|
}
|
|
|
|
version_ = from.version_;
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::SharedCtor() {
|
2018-01-15 23:51:38 +08:00
|
|
|
::memset(&library_, 0, static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&version_) -
|
|
|
|
reinterpret_cast<char*>(&library_)) + sizeof(version_));
|
2017-06-26 18:35:51 +08:00
|
|
|
_cached_size_ = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
GraphDef::~GraphDef() {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(destructor:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedDtor();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::SharedDtor() {
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
|
|
|
|
if (this != internal_default_instance()) delete library_;
|
|
|
|
if (this != internal_default_instance()) delete versions_;
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::ArenaDtor(void* object) {
|
|
|
|
GraphDef* _this = reinterpret_cast< GraphDef* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void GraphDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
|
|
|
|
}
|
|
|
|
void GraphDef::SetCachedSize(int size) const {
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
_cached_size_ = size;
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
}
|
|
|
|
const ::google::protobuf::Descriptor* GraphDef::descriptor() {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const GraphDef& GraphDef::default_instance() {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::InitDefaultsGraphDef();
|
2017-06-26 18:35:51 +08:00
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
|
|
|
|
|
|
|
GraphDef* GraphDef::New(::google::protobuf::Arena* arena) const {
|
|
|
|
return ::google::protobuf::Arena::CreateMessage<GraphDef>(arena);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::Clear() {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
node_.Clear();
|
|
|
|
if (GetArenaNoVirtual() == NULL && library_ != NULL) {
|
|
|
|
delete library_;
|
|
|
|
}
|
|
|
|
library_ = NULL;
|
|
|
|
if (GetArenaNoVirtual() == NULL && versions_ != NULL) {
|
|
|
|
delete versions_;
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
versions_ = NULL;
|
|
|
|
version_ = 0;
|
2018-01-15 23:51:38 +08:00
|
|
|
_internal_metadata_.Clear();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool GraphDef::MergePartialFromCodedStream(
|
|
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
|
::google::protobuf::uint32 tag;
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_start:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
for (;;) {
|
2018-01-15 23:51:38 +08:00
|
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
2017-06-26 18:35:51 +08:00
|
|
|
tag = p.first;
|
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// repeated .opencv_tensorflow.NodeDef node = 1;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 1: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node()));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.FunctionDefLibrary library = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 2: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
2017-06-26 18:35:51 +08:00
|
|
|
input, mutable_library()));
|
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// int32 version = 3 [deprecated = true];
|
2017-06-26 18:35:51 +08:00
|
|
|
case 3: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
2017-06-26 18:35:51 +08:00
|
|
|
|
|
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
|
input, &version_)));
|
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.VersionDef versions = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 4: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
2017-06-26 18:35:51 +08:00
|
|
|
input, mutable_versions()));
|
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default: {
|
|
|
|
handle_unusual:
|
2018-01-15 23:51:38 +08:00
|
|
|
if (tag == 0) {
|
2017-06-26 18:35:51 +08:00
|
|
|
goto success;
|
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
2017-06-26 18:35:51 +08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
success:
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_success:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return true;
|
|
|
|
failure:
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return false;
|
|
|
|
#undef DO_
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::SerializeWithCachedSizes(
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// repeated .opencv_tensorflow.NodeDef node = 1;
|
2018-01-15 23:51:38 +08:00
|
|
|
for (unsigned int i = 0,
|
|
|
|
n = static_cast<unsigned int>(this->node_size()); i < n; i++) {
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
2018-01-15 23:51:38 +08:00
|
|
|
1, this->node(static_cast<int>(i)), output);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.FunctionDefLibrary library = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->has_library()) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
2, *this->library_, output);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// int32 version = 3 [deprecated = true];
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->version() != 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->version(), output);
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.VersionDef versions = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->has_versions()) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
4, *this->versions_, output);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::google::protobuf::uint8* GraphDef::InternalSerializeWithCachedSizesToArray(
|
|
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
|
(void)deterministic; // Unused
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// repeated .opencv_tensorflow.NodeDef node = 1;
|
2018-01-15 23:51:38 +08:00
|
|
|
for (unsigned int i = 0,
|
|
|
|
n = static_cast<unsigned int>(this->node_size()); i < n; i++) {
|
2017-06-26 18:35:51 +08:00
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
2018-01-15 23:51:38 +08:00
|
|
|
InternalWriteMessageToArray(
|
|
|
|
1, this->node(static_cast<int>(i)), deterministic, target);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.FunctionDefLibrary library = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->has_library()) {
|
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
2018-01-15 23:51:38 +08:00
|
|
|
InternalWriteMessageToArray(
|
|
|
|
2, *this->library_, deterministic, target);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// int32 version = 3 [deprecated = true];
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->version() != 0) {
|
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->version(), target);
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.VersionDef versions = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->has_versions()) {
|
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
2018-01-15 23:51:38 +08:00
|
|
|
InternalWriteMessageToArray(
|
|
|
|
4, *this->versions_, deterministic, target);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t GraphDef::ByteSizeLong() const {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
total_size +=
|
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// repeated .opencv_tensorflow.NodeDef node = 1;
|
2018-01-15 23:51:38 +08:00
|
|
|
{
|
|
|
|
unsigned int count = static_cast<unsigned int>(this->node_size());
|
|
|
|
total_size += 1UL * count;
|
|
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
|
|
total_size +=
|
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
|
this->node(static_cast<int>(i)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.FunctionDefLibrary library = 2;
|
2018-01-15 23:51:38 +08:00
|
|
|
if (this->has_library()) {
|
|
|
|
total_size += 1 +
|
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
|
*this->library_);
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// .opencv_tensorflow.VersionDef versions = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->has_versions()) {
|
|
|
|
total_size += 1 +
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
2017-06-26 18:35:51 +08:00
|
|
|
*this->versions_);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// int32 version = 3 [deprecated = true];
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->version() != 0) {
|
|
|
|
total_size += 1 +
|
|
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
|
this->version());
|
|
|
|
}
|
|
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
_cached_size_ = cached_size;
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::MergeFrom(const ::google::protobuf::Message& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2017-06-26 18:35:51 +08:00
|
|
|
const GraphDef* source =
|
|
|
|
::google::protobuf::internal::DynamicCastToGenerated<const GraphDef>(
|
|
|
|
&from);
|
|
|
|
if (source == NULL) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
} else {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
MergeFrom(*source);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::MergeFrom(const GraphDef& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GraphDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
2017-06-26 18:35:51 +08:00
|
|
|
|
|
|
|
node_.MergeFrom(from.node_);
|
2018-01-15 23:51:38 +08:00
|
|
|
if (from.has_library()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
mutable_library()->::opencv_tensorflow::FunctionDefLibrary::MergeFrom(from.library());
|
2018-01-15 23:51:38 +08:00
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
if (from.has_versions()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
mutable_versions()->::opencv_tensorflow::VersionDef::MergeFrom(from.versions());
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
if (from.version() != 0) {
|
|
|
|
set_version(from.version());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::CopyFrom(const ::google::protobuf::Message& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::CopyFrom(const GraphDef& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GraphDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
2018-01-15 23:51:38 +08:00
|
|
|
MergeFrom(from);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool GraphDef::IsInitialized() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GraphDef::Swap(GraphDef* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
|
|
|
|
InternalSwap(other);
|
|
|
|
} else {
|
2018-01-15 23:51:38 +08:00
|
|
|
GraphDef* temp = New(GetArenaNoVirtual());
|
|
|
|
temp->MergeFrom(*other);
|
|
|
|
other->CopyFrom(*this);
|
|
|
|
InternalSwap(temp);
|
|
|
|
if (GetArenaNoVirtual() == NULL) {
|
|
|
|
delete temp;
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
void GraphDef::UnsafeArenaSwap(GraphDef* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
|
|
|
void GraphDef::InternalSwap(GraphDef* other) {
|
2018-01-15 23:51:38 +08:00
|
|
|
using std::swap;
|
|
|
|
node_.InternalSwap(&other->node_);
|
|
|
|
swap(library_, other->library_);
|
|
|
|
swap(versions_, other->versions_);
|
|
|
|
swap(version_, other->version_);
|
2017-06-26 18:35:51 +08:00
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
2018-01-15 23:51:38 +08:00
|
|
|
swap(_cached_size_, other->_cached_size_);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::google::protobuf::Metadata GraphDef::GetMetadata() const {
|
2018-01-15 23:51:38 +08:00
|
|
|
protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages];
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// ===================================================================
|
2017-06-26 18:35:51 +08:00
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse() {}
|
|
|
|
NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
|
|
|
|
void NodeDef_AttrEntry_DoNotUse::MergeFrom(const NodeDef_AttrEntry_DoNotUse& other) {
|
|
|
|
MergeFromInternal(other);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::Metadata NodeDef_AttrEntry_DoNotUse::GetMetadata() const {
|
|
|
|
::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
return ::protobuf_graph_2eproto::file_level_metadata[1];
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
void NodeDef_AttrEntry_DoNotUse::MergeFrom(
|
|
|
|
const ::google::protobuf::Message& other) {
|
|
|
|
::google::protobuf::Message::MergeFrom(other);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// ===================================================================
|
2017-06-26 18:35:51 +08:00
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
void NodeDef::InitAsDefaultInstance() {
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
void NodeDef::clear_attr() {
|
|
|
|
attr_.Clear();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
const int NodeDef::kNameFieldNumber;
|
|
|
|
const int NodeDef::kOpFieldNumber;
|
|
|
|
const int NodeDef::kInputFieldNumber;
|
|
|
|
const int NodeDef::kDeviceFieldNumber;
|
|
|
|
const int NodeDef::kAttrFieldNumber;
|
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
|
|
NodeDef::NodeDef()
|
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
|
::protobuf_graph_2eproto::InitDefaultsNodeDef();
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedCtor();
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(constructor:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
NodeDef::NodeDef(::google::protobuf::Arena* arena)
|
|
|
|
: ::google::protobuf::Message(),
|
|
|
|
_internal_metadata_(arena),
|
|
|
|
input_(arena),
|
|
|
|
attr_(arena) {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::InitDefaultsNodeDef();
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedCtor();
|
|
|
|
RegisterArenaDtor(arena);
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
NodeDef::NodeDef(const NodeDef& from)
|
|
|
|
: ::google::protobuf::Message(),
|
2018-01-15 23:51:38 +08:00
|
|
|
_internal_metadata_(NULL),
|
|
|
|
input_(from.input_),
|
|
|
|
_cached_size_(0) {
|
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
attr_.MergeFrom(from.attr_);
|
|
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
|
|
|
|
GetArenaNoVirtual());
|
|
|
|
}
|
|
|
|
op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (from.op().size() > 0) {
|
|
|
|
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op(),
|
|
|
|
GetArenaNoVirtual());
|
|
|
|
}
|
|
|
|
device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (from.device().size() > 0) {
|
|
|
|
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device(),
|
|
|
|
GetArenaNoVirtual());
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::SharedCtor() {
|
|
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
_cached_size_ = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
NodeDef::~NodeDef() {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(destructor:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
SharedDtor();
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::SharedDtor() {
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
|
|
|
|
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
op_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
device_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::ArenaDtor(void* object) {
|
|
|
|
NodeDef* _this = reinterpret_cast< NodeDef* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void NodeDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
|
|
|
|
}
|
|
|
|
void NodeDef::SetCachedSize(int size) const {
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
_cached_size_ = size;
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
}
|
|
|
|
const ::google::protobuf::Descriptor* NodeDef::descriptor() {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const NodeDef& NodeDef::default_instance() {
|
2018-01-15 23:51:38 +08:00
|
|
|
::protobuf_graph_2eproto::InitDefaultsNodeDef();
|
2017-06-26 18:35:51 +08:00
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
|
|
|
|
|
|
|
NodeDef* NodeDef::New(::google::protobuf::Arena* arena) const {
|
|
|
|
return ::google::protobuf::Arena::CreateMessage<NodeDef>(arena);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::Clear() {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
input_.Clear();
|
|
|
|
attr_.Clear();
|
2017-06-26 18:35:51 +08:00
|
|
|
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
|
|
|
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
|
|
|
device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
2018-01-15 23:51:38 +08:00
|
|
|
_internal_metadata_.Clear();
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool NodeDef::MergePartialFromCodedStream(
|
|
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
|
::google::protobuf::uint32 tag;
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_start:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
for (;;) {
|
2018-01-15 23:51:38 +08:00
|
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
2017-06-26 18:35:51 +08:00
|
|
|
tag = p.first;
|
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
2018-01-15 23:51:38 +08:00
|
|
|
// string name = 1;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 1: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
2017-06-26 18:35:51 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
|
input, this->mutable_name()));
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::PARSE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.name"));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string op = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 2: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
2017-06-26 18:35:51 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
|
input, this->mutable_op()));
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->op().data(), static_cast<int>(this->op().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::PARSE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.op"));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated string input = 3;
|
|
|
|
case 3: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
2017-06-26 18:35:51 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
|
input, this->add_input()));
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->input(this->input_size() - 1).data(),
|
2018-01-15 23:51:38 +08:00
|
|
|
static_cast<int>(this->input(this->input_size() - 1).length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::PARSE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.input"));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string device = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 4: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
2017-06-26 18:35:51 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
|
input, this->mutable_device()));
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->device().data(), static_cast<int>(this->device().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::PARSE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.device"));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
|
2017-06-26 18:35:51 +08:00
|
|
|
case 5: {
|
2018-01-15 23:51:38 +08:00
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
|
|
NodeDef_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
|
|
|
|
NodeDef_AttrEntry_DoNotUse,
|
2018-09-13 02:33:45 +08:00
|
|
|
::std::string, ::opencv_tensorflow::AttrValue,
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
|
|
|
|
0 >,
|
2018-09-13 02:33:45 +08:00
|
|
|
::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue > > parser(&attr_);
|
2017-06-26 18:35:51 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
|
|
input, &parser));
|
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
parser.key().data(), static_cast<int>(parser.key().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::PARSE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.AttrEntry.key"));
|
2017-06-26 18:35:51 +08:00
|
|
|
} else {
|
|
|
|
goto handle_unusual;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default: {
|
|
|
|
handle_unusual:
|
2018-01-15 23:51:38 +08:00
|
|
|
if (tag == 0) {
|
2017-06-26 18:35:51 +08:00
|
|
|
goto success;
|
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
2017-06-26 18:35:51 +08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
success:
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_success:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return true;
|
|
|
|
failure:
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return false;
|
|
|
|
#undef DO_
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::SerializeWithCachedSizes(
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// string name = 1;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->name().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.name");
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
|
1, this->name(), output);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string op = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->op().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->op().data(), static_cast<int>(this->op().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.op");
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
|
2, this->op(), output);
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated string input = 3;
|
2018-01-15 23:51:38 +08:00
|
|
|
for (int i = 0, n = this->input_size(); i < n; i++) {
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->input(i).data(), static_cast<int>(this->input(i).length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.input");
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
|
|
3, this->input(i), output);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string device = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->device().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->device().data(), static_cast<int>(this->device().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.device");
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
|
4, this->device(), output);
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (!this->attr().empty()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer
|
2017-06-26 18:35:51 +08:00
|
|
|
ConstPtr;
|
|
|
|
typedef ConstPtr SortItem;
|
|
|
|
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
|
|
|
|
struct Utf8Check {
|
|
|
|
static void Check(ConstPtr p) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
p->first.data(), static_cast<int>(p->first.length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.AttrEntry.key");
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if (output->IsSerializationDeterministic() &&
|
2017-06-26 18:35:51 +08:00
|
|
|
this->attr().size() > 1) {
|
|
|
|
::google::protobuf::scoped_array<SortItem> items(
|
|
|
|
new SortItem[this->attr().size()]);
|
2018-09-13 02:33:45 +08:00
|
|
|
typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
|
2017-06-26 18:35:51 +08:00
|
|
|
size_type n = 0;
|
2018-09-13 02:33:45 +08:00
|
|
|
for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
|
2017-06-26 18:35:51 +08:00
|
|
|
it = this->attr().begin();
|
|
|
|
it != this->attr().end(); ++it, ++n) {
|
2018-01-15 23:51:38 +08:00
|
|
|
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
|
|
|
|
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
|
2017-06-26 18:35:51 +08:00
|
|
|
for (size_type i = 0; i < n; i++) {
|
|
|
|
entry.reset(attr_.NewEntryWrapper(
|
2018-01-15 23:51:38 +08:00
|
|
|
items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
5, *entry, output);
|
|
|
|
if (entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
} else {
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
|
2018-09-13 02:33:45 +08:00
|
|
|
for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
|
2017-06-26 18:35:51 +08:00
|
|
|
it = this->attr().begin();
|
|
|
|
it != this->attr().end(); ++it) {
|
|
|
|
entry.reset(attr_.NewEntryWrapper(
|
|
|
|
it->first, it->second));
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
5, *entry, output);
|
|
|
|
if (entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
|
|
|
Utf8Check::Check(&*it);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::google::protobuf::uint8* NodeDef::InternalSerializeWithCachedSizesToArray(
|
|
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
|
(void)deterministic; // Unused
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// string name = 1;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->name().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.name");
|
2017-06-26 18:35:51 +08:00
|
|
|
target =
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
|
1, this->name(), target);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string op = 2;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->op().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->op().data(), static_cast<int>(this->op().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.op");
|
2017-06-26 18:35:51 +08:00
|
|
|
target =
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
|
2, this->op(), target);
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated string input = 3;
|
2018-01-15 23:51:38 +08:00
|
|
|
for (int i = 0, n = this->input_size(); i < n; i++) {
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->input(i).data(), static_cast<int>(this->input(i).length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.input");
|
2017-06-26 18:35:51 +08:00
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
|
WriteStringToArray(3, this->input(i), target);
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string device = 4;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (this->device().size() > 0) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
this->device().data(), static_cast<int>(this->device().length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.device");
|
2017-06-26 18:35:51 +08:00
|
|
|
target =
|
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
|
4, this->device(), target);
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
|
2017-06-26 18:35:51 +08:00
|
|
|
if (!this->attr().empty()) {
|
2018-09-13 02:33:45 +08:00
|
|
|
typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer
|
2017-06-26 18:35:51 +08:00
|
|
|
ConstPtr;
|
|
|
|
typedef ConstPtr SortItem;
|
|
|
|
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
|
|
|
|
struct Utf8Check {
|
|
|
|
static void Check(ConstPtr p) {
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
2018-01-15 23:51:38 +08:00
|
|
|
p->first.data(), static_cast<int>(p->first.length()),
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
2018-09-13 02:33:45 +08:00
|
|
|
"opencv_tensorflow.NodeDef.AttrEntry.key");
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (deterministic &&
|
|
|
|
this->attr().size() > 1) {
|
|
|
|
::google::protobuf::scoped_array<SortItem> items(
|
|
|
|
new SortItem[this->attr().size()]);
|
2018-09-13 02:33:45 +08:00
|
|
|
typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
|
2017-06-26 18:35:51 +08:00
|
|
|
size_type n = 0;
|
2018-09-13 02:33:45 +08:00
|
|
|
for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
|
2017-06-26 18:35:51 +08:00
|
|
|
it = this->attr().begin();
|
|
|
|
it != this->attr().end(); ++it, ++n) {
|
2018-01-15 23:51:38 +08:00
|
|
|
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
|
|
|
|
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
|
2017-06-26 18:35:51 +08:00
|
|
|
for (size_type i = 0; i < n; i++) {
|
|
|
|
entry.reset(attr_.NewEntryWrapper(
|
2018-01-15 23:51:38 +08:00
|
|
|
items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
|
2017-06-26 18:35:51 +08:00
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
|
InternalWriteMessageNoVirtualToArray(
|
|
|
|
5, *entry, deterministic, target);
|
|
|
|
;
|
|
|
|
if (entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
2018-01-15 23:51:38 +08:00
|
|
|
Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
} else {
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
|
2018-09-13 02:33:45 +08:00
|
|
|
for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
|
2017-06-26 18:35:51 +08:00
|
|
|
it = this->attr().begin();
|
|
|
|
it != this->attr().end(); ++it) {
|
|
|
|
entry.reset(attr_.NewEntryWrapper(
|
|
|
|
it->first, it->second));
|
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
|
InternalWriteMessageNoVirtualToArray(
|
|
|
|
5, *entry, deterministic, target);
|
|
|
|
;
|
|
|
|
if (entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
|
|
|
Utf8Check::Check(&*it);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
|
}
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t NodeDef::ByteSizeLong() const {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
|
total_size +=
|
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
// repeated string input = 3;
|
|
|
|
total_size += 1 *
|
|
|
|
::google::protobuf::internal::FromIntSize(this->input_size());
|
2018-01-15 23:51:38 +08:00
|
|
|
for (int i = 0, n = this->input_size(); i < n; i++) {
|
2017-06-26 18:35:51 +08:00
|
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
this->input(i));
|
|
|
|
}
|
|
|
|
|
2018-09-13 02:33:45 +08:00
|
|
|
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
|
2017-06-26 18:35:51 +08:00
|
|
|
total_size += 1 *
|
|
|
|
::google::protobuf::internal::FromIntSize(this->attr_size());
|
|
|
|
{
|
2018-01-15 23:51:38 +08:00
|
|
|
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
|
2018-09-13 02:33:45 +08:00
|
|
|
for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
|
2017-06-26 18:35:51 +08:00
|
|
|
it = this->attr().begin();
|
|
|
|
it != this->attr().end(); ++it) {
|
|
|
|
if (entry.get() != NULL && entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
|
|
|
entry.reset(attr_.NewEntryWrapper(it->first, it->second));
|
|
|
|
total_size += ::google::protobuf::internal::WireFormatLite::
|
|
|
|
MessageSizeNoVirtual(*entry);
|
|
|
|
}
|
|
|
|
if (entry.get() != NULL && entry->GetArena() != NULL) {
|
|
|
|
entry.release();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
// string name = 1;
|
|
|
|
if (this->name().size() > 0) {
|
|
|
|
total_size += 1 +
|
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
this->name());
|
|
|
|
}
|
|
|
|
|
|
|
|
// string op = 2;
|
|
|
|
if (this->op().size() > 0) {
|
|
|
|
total_size += 1 +
|
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
this->op());
|
|
|
|
}
|
|
|
|
|
|
|
|
// string device = 4;
|
|
|
|
if (this->device().size() > 0) {
|
|
|
|
total_size += 1 +
|
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
this->device());
|
|
|
|
}
|
|
|
|
|
2017-06-26 18:35:51 +08:00
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
_cached_size_ = cached_size;
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::MergeFrom(const ::google::protobuf::Message& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2017-06-26 18:35:51 +08:00
|
|
|
const NodeDef* source =
|
|
|
|
::google::protobuf::internal::DynamicCastToGenerated<const NodeDef>(
|
|
|
|
&from);
|
|
|
|
if (source == NULL) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
} else {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
MergeFrom(*source);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::MergeFrom(const NodeDef& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.NodeDef)
|
2018-01-15 23:51:38 +08:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
(void) cached_has_bits;
|
2017-06-26 18:35:51 +08:00
|
|
|
|
2018-01-15 23:51:38 +08:00
|
|
|
input_.MergeFrom(from.input_);
|
2017-06-26 18:35:51 +08:00
|
|
|
attr_.MergeFrom(from.attr_);
|
|
|
|
if (from.name().size() > 0) {
|
|
|
|
set_name(from.name());
|
|
|
|
}
|
|
|
|
if (from.op().size() > 0) {
|
|
|
|
set_op(from.op());
|
|
|
|
}
|
|
|
|
if (from.device().size() > 0) {
|
|
|
|
set_device(from.device());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::CopyFrom(const ::google::protobuf::Message& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::CopyFrom(const NodeDef& from) {
|
2018-09-13 02:33:45 +08:00
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.NodeDef)
|
2017-06-26 18:35:51 +08:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
2018-01-15 23:51:38 +08:00
|
|
|
MergeFrom(from);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool NodeDef::IsInitialized() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void NodeDef::Swap(NodeDef* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
|
|
|
|
InternalSwap(other);
|
|
|
|
} else {
|
2018-01-15 23:51:38 +08:00
|
|
|
NodeDef* temp = New(GetArenaNoVirtual());
|
|
|
|
temp->MergeFrom(*other);
|
|
|
|
other->CopyFrom(*this);
|
|
|
|
InternalSwap(temp);
|
|
|
|
if (GetArenaNoVirtual() == NULL) {
|
|
|
|
delete temp;
|
|
|
|
}
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
void NodeDef::UnsafeArenaSwap(NodeDef* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
|
|
|
void NodeDef::InternalSwap(NodeDef* other) {
|
2018-01-15 23:51:38 +08:00
|
|
|
using std::swap;
|
|
|
|
input_.InternalSwap(&other->input_);
|
|
|
|
attr_.Swap(&other->attr_);
|
2017-06-26 18:35:51 +08:00
|
|
|
name_.Swap(&other->name_);
|
|
|
|
op_.Swap(&other->op_);
|
|
|
|
device_.Swap(&other->device_);
|
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
2018-01-15 23:51:38 +08:00
|
|
|
swap(_cached_size_, other->_cached_size_);
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::google::protobuf::Metadata NodeDef::GetMetadata() const {
|
2018-01-15 23:51:38 +08:00
|
|
|
protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages];
|
2017-06-26 18:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
2018-09-13 02:33:45 +08:00
|
|
|
} // namespace opencv_tensorflow
|
2017-06-26 18:35:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|