Merge pull request #12511 from GeorgeMironov:rename-tf-namespace

This commit is contained in:
Alexander Alekhin 2018-09-12 20:13:43 +00:00
commit 347e09cd07
25 changed files with 2064 additions and 2056 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -65,7 +65,7 @@ inline void InitDefaults() {
InitDefaultsGradientDef(); InitDefaultsGradientDef();
} }
} // namespace protobuf_function_2eproto } // namespace protobuf_function_2eproto
namespace tensorflow { namespace opencv_tensorflow {
class FunctionDef; class FunctionDef;
class FunctionDefDefaultTypeInternal; class FunctionDefDefaultTypeInternal;
extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_; extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
@ -81,12 +81,12 @@ extern FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_
class GradientDef; class GradientDef;
class GradientDefDefaultTypeInternal; class GradientDefDefaultTypeInternal;
extern GradientDefDefaultTypeInternal _GradientDef_default_instance_; extern GradientDefDefaultTypeInternal _GradientDef_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDefLibrary) */ { class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDefLibrary) */ {
public: public:
FunctionDefLibrary(); FunctionDefLibrary();
virtual ~FunctionDefLibrary(); virtual ~FunctionDefLibrary();
@ -180,39 +180,39 @@ class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insert
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
// repeated .tensorflow.FunctionDef function = 1; // repeated .opencv_tensorflow.FunctionDef function = 1;
int function_size() const; int function_size() const;
void clear_function(); void clear_function();
static const int kFunctionFieldNumber = 1; static const int kFunctionFieldNumber = 1;
const ::tensorflow::FunctionDef& function(int index) const; const ::opencv_tensorflow::FunctionDef& function(int index) const;
::tensorflow::FunctionDef* mutable_function(int index); ::opencv_tensorflow::FunctionDef* mutable_function(int index);
::tensorflow::FunctionDef* add_function(); ::opencv_tensorflow::FunctionDef* add_function();
::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >* ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
mutable_function(); mutable_function();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >& const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
function() const; function() const;
// repeated .tensorflow.GradientDef gradient = 2; // repeated .opencv_tensorflow.GradientDef gradient = 2;
int gradient_size() const; int gradient_size() const;
void clear_gradient(); void clear_gradient();
static const int kGradientFieldNumber = 2; static const int kGradientFieldNumber = 2;
const ::tensorflow::GradientDef& gradient(int index) const; const ::opencv_tensorflow::GradientDef& gradient(int index) const;
::tensorflow::GradientDef* mutable_gradient(int index); ::opencv_tensorflow::GradientDef* mutable_gradient(int index);
::tensorflow::GradientDef* add_gradient(); ::opencv_tensorflow::GradientDef* add_gradient();
::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >* ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
mutable_gradient(); mutable_gradient();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >& const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
gradient() const; gradient() const;
// @@protoc_insertion_point(class_scope:tensorflow.FunctionDefLibrary) // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDefLibrary)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef > function_; ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef > function_;
::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef > gradient_; ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef > gradient_;
mutable int _cached_size_; mutable int _cached_size_;
friend struct ::protobuf_function_2eproto::TableStruct; friend struct ::protobuf_function_2eproto::TableStruct;
friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefLibraryImpl(); friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefLibraryImpl();
@ -220,13 +220,13 @@ class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insert
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class FunctionDef_Node_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse, class FunctionDef_Node_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > { 0 > {
public: public:
typedef ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse, typedef ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType; 0 > SuperType;
@ -240,7 +240,7 @@ public:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef.Node) */ { class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef.Node) */ {
public: public:
FunctionDef_Node(); FunctionDef_Node();
virtual ~FunctionDef_Node(); virtual ~FunctionDef_Node();
@ -401,13 +401,13 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio
const ::google::protobuf::RepeatedPtrField< ::std::string>& dep() const; const ::google::protobuf::RepeatedPtrField< ::std::string>& dep() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dep(); ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dep();
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
int attr_size() const; int attr_size() const;
void clear_attr(); void clear_attr();
static const int kAttrFieldNumber = 5; static const int kAttrFieldNumber = 5;
const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
attr() const; attr() const;
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
mutable_attr(); mutable_attr();
// string op = 2; // string op = 2;
@ -433,7 +433,7 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio
void unsafe_arena_set_allocated_op( void unsafe_arena_set_allocated_op(
::std::string* op); ::std::string* op);
// @@protoc_insertion_point(class_scope:tensorflow.FunctionDef.Node) // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef.Node)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -445,7 +445,7 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio
::google::protobuf::RepeatedPtrField< ::std::string> dep_; ::google::protobuf::RepeatedPtrField< ::std::string> dep_;
::google::protobuf::internal::MapField< ::google::protobuf::internal::MapField<
FunctionDef_Node_AttrEntry_DoNotUse, FunctionDef_Node_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > attr_; 0 > attr_;
@ -456,7 +456,7 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef) */ { class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef) */ {
public: public:
FunctionDef(); FunctionDef();
virtual ~FunctionDef(); virtual ~FunctionDef();
@ -552,49 +552,49 @@ class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_poi
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
// repeated .tensorflow.FunctionDef.Node node = 2; // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
int node_size() const; int node_size() const;
void clear_node(); void clear_node();
static const int kNodeFieldNumber = 2; static const int kNodeFieldNumber = 2;
const ::tensorflow::FunctionDef_Node& node(int index) const; const ::opencv_tensorflow::FunctionDef_Node& node(int index) const;
::tensorflow::FunctionDef_Node* mutable_node(int index); ::opencv_tensorflow::FunctionDef_Node* mutable_node(int index);
::tensorflow::FunctionDef_Node* add_node(); ::opencv_tensorflow::FunctionDef_Node* add_node();
::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >* ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
mutable_node(); mutable_node();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >& const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
node() const; node() const;
// .tensorflow.OpDef signature = 1; // .opencv_tensorflow.OpDef signature = 1;
bool has_signature() const; bool has_signature() const;
void clear_signature(); void clear_signature();
static const int kSignatureFieldNumber = 1; static const int kSignatureFieldNumber = 1;
private: private:
void _slow_mutable_signature(); void _slow_mutable_signature();
public: public:
const ::tensorflow::OpDef& signature() const; const ::opencv_tensorflow::OpDef& signature() const;
::tensorflow::OpDef* release_signature(); ::opencv_tensorflow::OpDef* release_signature();
::tensorflow::OpDef* mutable_signature(); ::opencv_tensorflow::OpDef* mutable_signature();
void set_allocated_signature(::tensorflow::OpDef* signature); void set_allocated_signature(::opencv_tensorflow::OpDef* signature);
void unsafe_arena_set_allocated_signature( void unsafe_arena_set_allocated_signature(
::tensorflow::OpDef* signature); ::opencv_tensorflow::OpDef* signature);
::tensorflow::OpDef* unsafe_arena_release_signature(); ::opencv_tensorflow::OpDef* unsafe_arena_release_signature();
// @@protoc_insertion_point(class_scope:tensorflow.FunctionDef) // @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node > node_; ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node > node_;
::tensorflow::OpDef* signature_; ::opencv_tensorflow::OpDef* signature_;
mutable int _cached_size_; mutable int _cached_size_;
friend struct ::protobuf_function_2eproto::TableStruct; friend struct ::protobuf_function_2eproto::TableStruct;
friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefImpl(); friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefImpl();
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GradientDef) */ { class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GradientDef) */ {
public: public:
GradientDef(); GradientDef();
virtual ~GradientDef(); virtual ~GradientDef();
@ -734,7 +734,7 @@ class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_poi
void unsafe_arena_set_allocated_gradient_func( void unsafe_arena_set_allocated_gradient_func(
::std::string* gradient_func); ::std::string* gradient_func);
// @@protoc_insertion_point(class_scope:tensorflow.GradientDef) // @@protoc_insertion_point(class_scope:opencv_tensorflow.GradientDef)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -758,63 +758,63 @@ class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_poi
#endif // __GNUC__ #endif // __GNUC__
// FunctionDefLibrary // FunctionDefLibrary
// repeated .tensorflow.FunctionDef function = 1; // repeated .opencv_tensorflow.FunctionDef function = 1;
inline int FunctionDefLibrary::function_size() const { inline int FunctionDefLibrary::function_size() const {
return function_.size(); return function_.size();
} }
inline void FunctionDefLibrary::clear_function() { inline void FunctionDefLibrary::clear_function() {
function_.Clear(); function_.Clear();
} }
inline const ::tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const { inline const ::opencv_tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.function) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.function)
return function_.Get(index); return function_.Get(index);
} }
inline ::tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) { inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.function) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.function)
return function_.Mutable(index); return function_.Mutable(index);
} }
inline ::tensorflow::FunctionDef* FunctionDefLibrary::add_function() { inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::add_function() {
// @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.function) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.function)
return function_.Add(); return function_.Add();
} }
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >* inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
FunctionDefLibrary::mutable_function() { FunctionDefLibrary::mutable_function() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.function) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.function)
return &function_; return &function_;
} }
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >& inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
FunctionDefLibrary::function() const { FunctionDefLibrary::function() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.function) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.function)
return function_; return function_;
} }
// repeated .tensorflow.GradientDef gradient = 2; // repeated .opencv_tensorflow.GradientDef gradient = 2;
inline int FunctionDefLibrary::gradient_size() const { inline int FunctionDefLibrary::gradient_size() const {
return gradient_.size(); return gradient_.size();
} }
inline void FunctionDefLibrary::clear_gradient() { inline void FunctionDefLibrary::clear_gradient() {
gradient_.Clear(); gradient_.Clear();
} }
inline const ::tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const { inline const ::opencv_tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.gradient) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.gradient)
return gradient_.Get(index); return gradient_.Get(index);
} }
inline ::tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) { inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.gradient) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.gradient)
return gradient_.Mutable(index); return gradient_.Mutable(index);
} }
inline ::tensorflow::GradientDef* FunctionDefLibrary::add_gradient() { inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::add_gradient() {
// @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.gradient) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.gradient)
return gradient_.Add(); return gradient_.Add();
} }
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >* inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
FunctionDefLibrary::mutable_gradient() { FunctionDefLibrary::mutable_gradient() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.gradient) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.gradient)
return &gradient_; return &gradient_;
} }
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >& inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
FunctionDefLibrary::gradient() const { FunctionDefLibrary::gradient() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.gradient) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.gradient)
return gradient_; return gradient_;
} }
@ -832,64 +832,64 @@ inline void FunctionDef_Node::clear_ret() {
ret_.Clear(); ret_.Clear();
} }
inline const ::std::string& FunctionDef_Node::ret(int index) const { inline const ::std::string& FunctionDef_Node::ret(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.ret)
return ret_.Get(index); return ret_.Get(index);
} }
inline ::std::string* FunctionDef_Node::mutable_ret(int index) { inline ::std::string* FunctionDef_Node::mutable_ret(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.ret)
return ret_.Mutable(index); return ret_.Mutable(index);
} }
inline void FunctionDef_Node::set_ret(int index, const ::std::string& value) { inline void FunctionDef_Node::set_ret(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
ret_.Mutable(index)->assign(value); ret_.Mutable(index)->assign(value);
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::set_ret(int index, ::std::string&& value) { inline void FunctionDef_Node::set_ret(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
ret_.Mutable(index)->assign(std::move(value)); ret_.Mutable(index)->assign(std::move(value));
} }
#endif #endif
inline void FunctionDef_Node::set_ret(int index, const char* value) { inline void FunctionDef_Node::set_ret(int index, const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
ret_.Mutable(index)->assign(value); ret_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.ret)
} }
inline void FunctionDef_Node::set_ret(int index, const char* value, size_t size) { inline void FunctionDef_Node::set_ret(int index, const char* value, size_t size) {
ret_.Mutable(index)->assign( ret_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.ret)
} }
inline ::std::string* FunctionDef_Node::add_ret() { inline ::std::string* FunctionDef_Node::add_ret() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.ret)
return ret_.Add(); return ret_.Add();
} }
inline void FunctionDef_Node::add_ret(const ::std::string& value) { inline void FunctionDef_Node::add_ret(const ::std::string& value) {
ret_.Add()->assign(value); ret_.Add()->assign(value);
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::add_ret(::std::string&& value) { inline void FunctionDef_Node::add_ret(::std::string&& value) {
ret_.Add(std::move(value)); ret_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
} }
#endif #endif
inline void FunctionDef_Node::add_ret(const char* value) { inline void FunctionDef_Node::add_ret(const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
ret_.Add()->assign(value); ret_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.ret)
} }
inline void FunctionDef_Node::add_ret(const char* value, size_t size) { inline void FunctionDef_Node::add_ret(const char* value, size_t size) {
ret_.Add()->assign(reinterpret_cast<const char*>(value), size); ret_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.ret)
} }
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
FunctionDef_Node::ret() const { FunctionDef_Node::ret() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.ret)
return ret_; return ret_;
} }
inline ::google::protobuf::RepeatedPtrField< ::std::string>* inline ::google::protobuf::RepeatedPtrField< ::std::string>*
FunctionDef_Node::mutable_ret() { FunctionDef_Node::mutable_ret() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.ret) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.ret)
return &ret_; return &ret_;
} }
@ -898,20 +898,20 @@ inline void FunctionDef_Node::clear_op() {
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& FunctionDef_Node::op() const { inline const ::std::string& FunctionDef_Node::op() const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.op)
return op_.Get(); return op_.Get();
} }
inline void FunctionDef_Node::set_op(const ::std::string& value) { inline void FunctionDef_Node::set_op(const ::std::string& value) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.op)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::set_op(::std::string&& value) { inline void FunctionDef_Node::set_op(::std::string&& value) {
op_.Set( op_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.FunctionDef.Node.op)
} }
#endif #endif
inline void FunctionDef_Node::set_op(const char* value) { inline void FunctionDef_Node::set_op(const char* value) {
@ -919,22 +919,22 @@ inline void FunctionDef_Node::set_op(const char* value) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.op)
} }
inline void FunctionDef_Node::set_op(const char* value, inline void FunctionDef_Node::set_op(const char* value,
size_t size) { size_t size) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.op)
} }
inline ::std::string* FunctionDef_Node::mutable_op() { inline ::std::string* FunctionDef_Node::mutable_op() {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.op)
return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* FunctionDef_Node::release_op() { inline ::std::string* FunctionDef_Node::release_op() {
// @@protoc_insertion_point(field_release:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.Node.op)
return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -946,10 +946,10 @@ inline void FunctionDef_Node::set_allocated_op(::std::string* op) {
} }
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.Node.op)
} }
inline ::std::string* FunctionDef_Node::unsafe_arena_release_op() { inline ::std::string* FunctionDef_Node::unsafe_arena_release_op() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.FunctionDef.Node.op)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -965,7 +965,7 @@ inline void FunctionDef_Node::unsafe_arena_set_allocated_op(
} }
op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
op, GetArenaNoVirtual()); op, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FunctionDef.Node.op) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.FunctionDef.Node.op)
} }
// repeated string arg = 3; // repeated string arg = 3;
@ -976,64 +976,64 @@ inline void FunctionDef_Node::clear_arg() {
arg_.Clear(); arg_.Clear();
} }
inline const ::std::string& FunctionDef_Node::arg(int index) const { inline const ::std::string& FunctionDef_Node::arg(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.arg)
return arg_.Get(index); return arg_.Get(index);
} }
inline ::std::string* FunctionDef_Node::mutable_arg(int index) { inline ::std::string* FunctionDef_Node::mutable_arg(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.arg)
return arg_.Mutable(index); return arg_.Mutable(index);
} }
inline void FunctionDef_Node::set_arg(int index, const ::std::string& value) { inline void FunctionDef_Node::set_arg(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
arg_.Mutable(index)->assign(value); arg_.Mutable(index)->assign(value);
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::set_arg(int index, ::std::string&& value) { inline void FunctionDef_Node::set_arg(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
arg_.Mutable(index)->assign(std::move(value)); arg_.Mutable(index)->assign(std::move(value));
} }
#endif #endif
inline void FunctionDef_Node::set_arg(int index, const char* value) { inline void FunctionDef_Node::set_arg(int index, const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
arg_.Mutable(index)->assign(value); arg_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.arg)
} }
inline void FunctionDef_Node::set_arg(int index, const char* value, size_t size) { inline void FunctionDef_Node::set_arg(int index, const char* value, size_t size) {
arg_.Mutable(index)->assign( arg_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.arg)
} }
inline ::std::string* FunctionDef_Node::add_arg() { inline ::std::string* FunctionDef_Node::add_arg() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.arg)
return arg_.Add(); return arg_.Add();
} }
inline void FunctionDef_Node::add_arg(const ::std::string& value) { inline void FunctionDef_Node::add_arg(const ::std::string& value) {
arg_.Add()->assign(value); arg_.Add()->assign(value);
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::add_arg(::std::string&& value) { inline void FunctionDef_Node::add_arg(::std::string&& value) {
arg_.Add(std::move(value)); arg_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
} }
#endif #endif
inline void FunctionDef_Node::add_arg(const char* value) { inline void FunctionDef_Node::add_arg(const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
arg_.Add()->assign(value); arg_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.arg)
} }
inline void FunctionDef_Node::add_arg(const char* value, size_t size) { inline void FunctionDef_Node::add_arg(const char* value, size_t size) {
arg_.Add()->assign(reinterpret_cast<const char*>(value), size); arg_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.arg)
} }
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
FunctionDef_Node::arg() const { FunctionDef_Node::arg() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.arg)
return arg_; return arg_;
} }
inline ::google::protobuf::RepeatedPtrField< ::std::string>* inline ::google::protobuf::RepeatedPtrField< ::std::string>*
FunctionDef_Node::mutable_arg() { FunctionDef_Node::mutable_arg() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.arg) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.arg)
return &arg_; return &arg_;
} }
@ -1045,79 +1045,79 @@ inline void FunctionDef_Node::clear_dep() {
dep_.Clear(); dep_.Clear();
} }
inline const ::std::string& FunctionDef_Node::dep(int index) const { inline const ::std::string& FunctionDef_Node::dep(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.dep)
return dep_.Get(index); return dep_.Get(index);
} }
inline ::std::string* FunctionDef_Node::mutable_dep(int index) { inline ::std::string* FunctionDef_Node::mutable_dep(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.dep)
return dep_.Mutable(index); return dep_.Mutable(index);
} }
inline void FunctionDef_Node::set_dep(int index, const ::std::string& value) { inline void FunctionDef_Node::set_dep(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
dep_.Mutable(index)->assign(value); dep_.Mutable(index)->assign(value);
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::set_dep(int index, ::std::string&& value) { inline void FunctionDef_Node::set_dep(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
dep_.Mutable(index)->assign(std::move(value)); dep_.Mutable(index)->assign(std::move(value));
} }
#endif #endif
inline void FunctionDef_Node::set_dep(int index, const char* value) { inline void FunctionDef_Node::set_dep(int index, const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
dep_.Mutable(index)->assign(value); dep_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.dep)
} }
inline void FunctionDef_Node::set_dep(int index, const char* value, size_t size) { inline void FunctionDef_Node::set_dep(int index, const char* value, size_t size) {
dep_.Mutable(index)->assign( dep_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.dep)
} }
inline ::std::string* FunctionDef_Node::add_dep() { inline ::std::string* FunctionDef_Node::add_dep() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.dep)
return dep_.Add(); return dep_.Add();
} }
inline void FunctionDef_Node::add_dep(const ::std::string& value) { inline void FunctionDef_Node::add_dep(const ::std::string& value) {
dep_.Add()->assign(value); dep_.Add()->assign(value);
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void FunctionDef_Node::add_dep(::std::string&& value) { inline void FunctionDef_Node::add_dep(::std::string&& value) {
dep_.Add(std::move(value)); dep_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
} }
#endif #endif
inline void FunctionDef_Node::add_dep(const char* value) { inline void FunctionDef_Node::add_dep(const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
dep_.Add()->assign(value); dep_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.dep)
} }
inline void FunctionDef_Node::add_dep(const char* value, size_t size) { inline void FunctionDef_Node::add_dep(const char* value, size_t size) {
dep_.Add()->assign(reinterpret_cast<const char*>(value), size); dep_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.dep)
} }
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
FunctionDef_Node::dep() const { FunctionDef_Node::dep() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.dep)
return dep_; return dep_;
} }
inline ::google::protobuf::RepeatedPtrField< ::std::string>* inline ::google::protobuf::RepeatedPtrField< ::std::string>*
FunctionDef_Node::mutable_dep() { FunctionDef_Node::mutable_dep() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.dep) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.dep)
return &dep_; return &dep_;
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
inline int FunctionDef_Node::attr_size() const { inline int FunctionDef_Node::attr_size() const {
return attr_.size(); return attr_.size();
} }
inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& inline const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
FunctionDef_Node::attr() const { FunctionDef_Node::attr() const {
// @@protoc_insertion_point(field_map:tensorflow.FunctionDef.Node.attr) // @@protoc_insertion_point(field_map:opencv_tensorflow.FunctionDef.Node.attr)
return attr_.GetMap(); return attr_.GetMap();
} }
inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
FunctionDef_Node::mutable_attr() { FunctionDef_Node::mutable_attr() {
// @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.Node.attr) // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.FunctionDef.Node.attr)
return attr_.MutableMap(); return attr_.MutableMap();
} }
@ -1125,42 +1125,42 @@ FunctionDef_Node::mutable_attr() {
// FunctionDef // FunctionDef
// .tensorflow.OpDef signature = 1; // .opencv_tensorflow.OpDef signature = 1;
inline bool FunctionDef::has_signature() const { inline bool FunctionDef::has_signature() const {
return this != internal_default_instance() && signature_ != NULL; return this != internal_default_instance() && signature_ != NULL;
} }
inline const ::tensorflow::OpDef& FunctionDef::signature() const { inline const ::opencv_tensorflow::OpDef& FunctionDef::signature() const {
const ::tensorflow::OpDef* p = signature_; const ::opencv_tensorflow::OpDef* p = signature_;
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.signature) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.signature)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::OpDef*>( return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::OpDef*>(
&::tensorflow::_OpDef_default_instance_); &::opencv_tensorflow::_OpDef_default_instance_);
} }
inline ::tensorflow::OpDef* FunctionDef::release_signature() { inline ::opencv_tensorflow::OpDef* FunctionDef::release_signature() {
// @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature) // @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.signature)
::tensorflow::OpDef* temp = signature_; ::opencv_tensorflow::OpDef* temp = signature_;
if (GetArenaNoVirtual() != NULL) { if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
} }
signature_ = NULL; signature_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() { inline ::opencv_tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.signature) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.FunctionDef.signature)
::tensorflow::OpDef* temp = signature_; ::opencv_tensorflow::OpDef* temp = signature_;
signature_ = NULL; signature_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::OpDef* FunctionDef::mutable_signature() { inline ::opencv_tensorflow::OpDef* FunctionDef::mutable_signature() {
if (signature_ == NULL) { if (signature_ == NULL) {
_slow_mutable_signature(); _slow_mutable_signature();
} }
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.signature) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.signature)
return signature_; return signature_;
} }
inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) { inline void FunctionDef::set_allocated_signature(::opencv_tensorflow::OpDef* signature) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) { if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(signature_); delete reinterpret_cast< ::google::protobuf::MessageLite*>(signature_);
@ -1177,36 +1177,36 @@ inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature)
} }
signature_ = signature; signature_ = signature;
// @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.signature) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.signature)
} }
// repeated .tensorflow.FunctionDef.Node node = 2; // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
inline int FunctionDef::node_size() const { inline int FunctionDef::node_size() const {
return node_.size(); return node_.size();
} }
inline void FunctionDef::clear_node() { inline void FunctionDef::clear_node() {
node_.Clear(); node_.Clear();
} }
inline const ::tensorflow::FunctionDef_Node& FunctionDef::node(int index) const { inline const ::opencv_tensorflow::FunctionDef_Node& FunctionDef::node(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.FunctionDef.node) // @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.node)
return node_.Get(index); return node_.Get(index);
} }
inline ::tensorflow::FunctionDef_Node* FunctionDef::mutable_node(int index) { inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::mutable_node(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.node) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.node)
return node_.Mutable(index); return node_.Mutable(index);
} }
inline ::tensorflow::FunctionDef_Node* FunctionDef::add_node() { inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::add_node() {
// @@protoc_insertion_point(field_add:tensorflow.FunctionDef.node) // @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.node)
return node_.Add(); return node_.Add();
} }
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >* inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
FunctionDef::mutable_node() { FunctionDef::mutable_node() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.node) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.node)
return &node_; return &node_;
} }
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >& inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
FunctionDef::node() const { FunctionDef::node() const {
// @@protoc_insertion_point(field_list:tensorflow.FunctionDef.node) // @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.node)
return node_; return node_;
} }
@ -1219,20 +1219,20 @@ inline void GradientDef::clear_function_name() {
function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& GradientDef::function_name() const { inline const ::std::string& GradientDef::function_name() const {
// @@protoc_insertion_point(field_get:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.function_name)
return function_name_.Get(); return function_name_.Get();
} }
inline void GradientDef::set_function_name(const ::std::string& value) { inline void GradientDef::set_function_name(const ::std::string& value) {
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.function_name)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void GradientDef::set_function_name(::std::string&& value) { inline void GradientDef::set_function_name(::std::string&& value) {
function_name_.Set( function_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.GradientDef.function_name)
} }
#endif #endif
inline void GradientDef::set_function_name(const char* value) { inline void GradientDef::set_function_name(const char* value) {
@ -1240,22 +1240,22 @@ inline void GradientDef::set_function_name(const char* value) {
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.GradientDef.function_name)
} }
inline void GradientDef::set_function_name(const char* value, inline void GradientDef::set_function_name(const char* value,
size_t size) { size_t size) {
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.GradientDef.function_name)
} }
inline ::std::string* GradientDef::mutable_function_name() { inline ::std::string* GradientDef::mutable_function_name() {
// @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.function_name)
return function_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return function_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* GradientDef::release_function_name() { inline ::std::string* GradientDef::release_function_name() {
// @@protoc_insertion_point(field_release:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.function_name)
return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -1267,10 +1267,10 @@ inline void GradientDef::set_allocated_function_name(::std::string* function_nam
} }
function_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name, function_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.function_name)
} }
inline ::std::string* GradientDef::unsafe_arena_release_function_name() { inline ::std::string* GradientDef::unsafe_arena_release_function_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GradientDef.function_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -1286,7 +1286,7 @@ inline void GradientDef::unsafe_arena_set_allocated_function_name(
} }
function_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
function_name, GetArenaNoVirtual()); function_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.function_name) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GradientDef.function_name)
} }
// string gradient_func = 2; // string gradient_func = 2;
@ -1294,20 +1294,20 @@ inline void GradientDef::clear_gradient_func() {
gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& GradientDef::gradient_func() const { inline const ::std::string& GradientDef::gradient_func() const {
// @@protoc_insertion_point(field_get:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.gradient_func)
return gradient_func_.Get(); return gradient_func_.Get();
} }
inline void GradientDef::set_gradient_func(const ::std::string& value) { inline void GradientDef::set_gradient_func(const ::std::string& value) {
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.gradient_func)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void GradientDef::set_gradient_func(::std::string&& value) { inline void GradientDef::set_gradient_func(::std::string&& value) {
gradient_func_.Set( gradient_func_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.GradientDef.gradient_func)
} }
#endif #endif
inline void GradientDef::set_gradient_func(const char* value) { inline void GradientDef::set_gradient_func(const char* value) {
@ -1315,22 +1315,22 @@ inline void GradientDef::set_gradient_func(const char* value) {
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.GradientDef.gradient_func)
} }
inline void GradientDef::set_gradient_func(const char* value, inline void GradientDef::set_gradient_func(const char* value,
size_t size) { size_t size) {
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.GradientDef.gradient_func)
} }
inline ::std::string* GradientDef::mutable_gradient_func() { inline ::std::string* GradientDef::mutable_gradient_func() {
// @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.gradient_func)
return gradient_func_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return gradient_func_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* GradientDef::release_gradient_func() { inline ::std::string* GradientDef::release_gradient_func() {
// @@protoc_insertion_point(field_release:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.gradient_func)
return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -1342,10 +1342,10 @@ inline void GradientDef::set_allocated_gradient_func(::std::string* gradient_fun
} }
gradient_func_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func, gradient_func_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.gradient_func)
} }
inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() { inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GradientDef.gradient_func)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -1361,7 +1361,7 @@ inline void GradientDef::unsafe_arena_set_allocated_gradient_func(
} }
gradient_func_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
gradient_func, GetArenaNoVirtual()); gradient_func, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.gradient_func) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GradientDef.gradient_func)
} }
#ifdef __GNUC__ #ifdef __GNUC__
@ -1378,7 +1378,7 @@ inline void GradientDef::unsafe_arena_set_allocated_gradient_func(
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -19,7 +19,7 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
class GraphDefDefaultTypeInternal { class GraphDefDefaultTypeInternal {
public: public:
::google::protobuf::internal::ExplicitlyConstructed<GraphDef> ::google::protobuf::internal::ExplicitlyConstructed<GraphDef>
@ -35,7 +35,7 @@ class NodeDefDefaultTypeInternal {
::google::protobuf::internal::ExplicitlyConstructed<NodeDef> ::google::protobuf::internal::ExplicitlyConstructed<NodeDef>
_instance; _instance;
} _NodeDef_default_instance_; } _NodeDef_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_graph_2eproto { namespace protobuf_graph_2eproto {
void InitDefaultsGraphDefImpl() { void InitDefaultsGraphDefImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION; GOOGLE_PROTOBUF_VERIFY_VERSION;
@ -49,11 +49,11 @@ void InitDefaultsGraphDefImpl() {
protobuf_versions_2eproto::InitDefaultsVersionDef(); protobuf_versions_2eproto::InitDefaultsVersionDef();
protobuf_function_2eproto::InitDefaultsFunctionDefLibrary(); protobuf_function_2eproto::InitDefaultsFunctionDefLibrary();
{ {
void* ptr = &::tensorflow::_GraphDef_default_instance_; void* ptr = &::opencv_tensorflow::_GraphDef_default_instance_;
new (ptr) ::tensorflow::GraphDef(); new (ptr) ::opencv_tensorflow::GraphDef();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::GraphDef::InitAsDefaultInstance(); ::opencv_tensorflow::GraphDef::InitAsDefaultInstance();
} }
void InitDefaultsGraphDef() { void InitDefaultsGraphDef() {
@ -71,10 +71,10 @@ void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl() {
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();
{ {
void* ptr = &::tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_; void* ptr = &::opencv_tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_;
new (ptr) ::tensorflow::NodeDef_AttrEntry_DoNotUse(); new (ptr) ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse();
} }
::tensorflow::NodeDef_AttrEntry_DoNotUse::InitAsDefaultInstance(); ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse::InitAsDefaultInstance();
} }
void InitDefaultsNodeDef_AttrEntry_DoNotUse() { void InitDefaultsNodeDef_AttrEntry_DoNotUse() {
@ -92,11 +92,11 @@ void InitDefaultsNodeDefImpl() {
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
protobuf_graph_2eproto::InitDefaultsNodeDef_AttrEntry_DoNotUse(); protobuf_graph_2eproto::InitDefaultsNodeDef_AttrEntry_DoNotUse();
{ {
void* ptr = &::tensorflow::_NodeDef_default_instance_; void* ptr = &::opencv_tensorflow::_NodeDef_default_instance_;
new (ptr) ::tensorflow::NodeDef(); new (ptr) ::opencv_tensorflow::NodeDef();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::NodeDef::InitAsDefaultInstance(); ::opencv_tensorflow::NodeDef::InitAsDefaultInstance();
} }
void InitDefaultsNodeDef() { void InitDefaultsNodeDef() {
@ -108,44 +108,44 @@ void InitDefaultsNodeDef() {
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, node_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, node_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, versions_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, versions_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, library_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::GraphDef, library_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, key_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, value_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, value_),
0, 0,
1, 1,
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, op_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, op_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, input_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, input_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, device_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, device_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, attr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::NodeDef, attr_),
}; };
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tensorflow::GraphDef)}, { 0, -1, sizeof(::opencv_tensorflow::GraphDef)},
{ 9, 16, sizeof(::tensorflow::NodeDef_AttrEntry_DoNotUse)}, { 9, 16, sizeof(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse)},
{ 18, -1, sizeof(::tensorflow::NodeDef)}, { 18, -1, sizeof(::opencv_tensorflow::NodeDef)},
}; };
static ::google::protobuf::Message const * const file_default_instances[] = { static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_GraphDef_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_GraphDef_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_NodeDef_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_NodeDef_default_instance_),
}; };
void protobuf_AssignDescriptors() { void protobuf_AssignDescriptors() {
@ -170,21 +170,22 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\013graph.proto\022\ntensorflow\032\020attr_value.pr" "\n\013graph.proto\022\021opencv_tensorflow\032\020attr_v"
"oto\032\016function.proto\032\016versions.proto\"\235\001\n\010" "alue.proto\032\016function.proto\032\016versions.pro"
"GraphDef\022!\n\004node\030\001 \003(\0132\023.tensorflow.Node" "to\"\262\001\n\010GraphDef\022(\n\004node\030\001 \003(\0132\032.opencv_t"
"Def\022(\n\010versions\030\004 \001(\0132\026.tensorflow.Versi" "ensorflow.NodeDef\022/\n\010versions\030\004 \001(\0132\035.op"
"onDef\022\023\n\007version\030\003 \001(\005B\002\030\001\022/\n\007library\030\002 " "encv_tensorflow.VersionDef\022\023\n\007version\030\003 "
"\001(\0132\036.tensorflow.FunctionDefLibrary\"\263\001\n\007" "\001(\005B\002\030\001\0226\n\007library\030\002 \001(\0132%.opencv_tensor"
"NodeDef\022\014\n\004name\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r\n\005inp" "flow.FunctionDefLibrary\"\301\001\n\007NodeDef\022\014\n\004n"
"ut\030\003 \003(\t\022\016\n\006device\030\004 \001(\t\022+\n\004attr\030\005 \003(\0132\035" "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"
".tensorflow.NodeDef.AttrEntry\032B\n\tAttrEnt" "device\030\004 \001(\t\0222\n\004attr\030\005 \003(\0132$.opencv_tens"
"ry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorf" "orflow.NodeDef.AttrEntry\032I\n\tAttrEntry\022\013\n"
"low.AttrValue:\0028\001B,\n\030org.tensorflow.fram" "\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tenso"
"eworkB\013GraphProtosP\001\370\001\001b\006proto3" "rflow.AttrValue:\0028\001B,\n\030org.tensorflow.fr"
"ameworkB\013GraphProtosP\001\370\001\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 471); descriptor, 513);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"graph.proto", &protobuf_RegisterTypes); "graph.proto", &protobuf_RegisterTypes);
::protobuf_attr_5fvalue_2eproto::AddDescriptors(); ::protobuf_attr_5fvalue_2eproto::AddDescriptors();
@ -203,22 +204,22 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_graph_2eproto } // namespace protobuf_graph_2eproto
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
void GraphDef::InitAsDefaultInstance() { void GraphDef::InitAsDefaultInstance() {
::tensorflow::_GraphDef_default_instance_._instance.get_mutable()->versions_ = const_cast< ::tensorflow::VersionDef*>( ::opencv_tensorflow::_GraphDef_default_instance_._instance.get_mutable()->versions_ = const_cast< ::opencv_tensorflow::VersionDef*>(
::tensorflow::VersionDef::internal_default_instance()); ::opencv_tensorflow::VersionDef::internal_default_instance());
::tensorflow::_GraphDef_default_instance_._instance.get_mutable()->library_ = const_cast< ::tensorflow::FunctionDefLibrary*>( ::opencv_tensorflow::_GraphDef_default_instance_._instance.get_mutable()->library_ = const_cast< ::opencv_tensorflow::FunctionDefLibrary*>(
::tensorflow::FunctionDefLibrary::internal_default_instance()); ::opencv_tensorflow::FunctionDefLibrary::internal_default_instance());
} }
void GraphDef::_slow_mutable_versions() { void GraphDef::_slow_mutable_versions() {
versions_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::VersionDef >( versions_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::VersionDef >(
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
void GraphDef::unsafe_arena_set_allocated_versions( void GraphDef::unsafe_arena_set_allocated_versions(
::tensorflow::VersionDef* versions) { ::opencv_tensorflow::VersionDef* versions) {
if (GetArenaNoVirtual() == NULL) { if (GetArenaNoVirtual() == NULL) {
delete versions_; delete versions_;
} }
@ -228,7 +229,7 @@ void GraphDef::unsafe_arena_set_allocated_versions(
} else { } else {
} }
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.versions)
} }
void GraphDef::clear_versions() { void GraphDef::clear_versions() {
if (GetArenaNoVirtual() == NULL && versions_ != NULL) { if (GetArenaNoVirtual() == NULL && versions_ != NULL) {
@ -237,11 +238,11 @@ void GraphDef::clear_versions() {
versions_ = NULL; versions_ = NULL;
} }
void GraphDef::_slow_mutable_library() { void GraphDef::_slow_mutable_library() {
library_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::FunctionDefLibrary >( library_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::FunctionDefLibrary >(
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
void GraphDef::unsafe_arena_set_allocated_library( void GraphDef::unsafe_arena_set_allocated_library(
::tensorflow::FunctionDefLibrary* library) { ::opencv_tensorflow::FunctionDefLibrary* library) {
if (GetArenaNoVirtual() == NULL) { if (GetArenaNoVirtual() == NULL) {
delete library_; delete library_;
} }
@ -251,7 +252,7 @@ void GraphDef::unsafe_arena_set_allocated_library(
} else { } else {
} }
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.library)
} }
void GraphDef::clear_library() { void GraphDef::clear_library() {
if (GetArenaNoVirtual() == NULL && library_ != NULL) { if (GetArenaNoVirtual() == NULL && library_ != NULL) {
@ -272,7 +273,7 @@ GraphDef::GraphDef()
::protobuf_graph_2eproto::InitDefaultsGraphDef(); ::protobuf_graph_2eproto::InitDefaultsGraphDef();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.GraphDef) // @@protoc_insertion_point(constructor:opencv_tensorflow.GraphDef)
} }
GraphDef::GraphDef(::google::protobuf::Arena* arena) GraphDef::GraphDef(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -281,7 +282,7 @@ GraphDef::GraphDef(::google::protobuf::Arena* arena)
::protobuf_graph_2eproto::InitDefaultsGraphDef(); ::protobuf_graph_2eproto::InitDefaultsGraphDef();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.GraphDef) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GraphDef)
} }
GraphDef::GraphDef(const GraphDef& from) GraphDef::GraphDef(const GraphDef& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -290,17 +291,17 @@ GraphDef::GraphDef(const GraphDef& from)
_cached_size_(0) { _cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_library()) { if (from.has_library()) {
library_ = new ::tensorflow::FunctionDefLibrary(*from.library_); library_ = new ::opencv_tensorflow::FunctionDefLibrary(*from.library_);
} else { } else {
library_ = NULL; library_ = NULL;
} }
if (from.has_versions()) { if (from.has_versions()) {
versions_ = new ::tensorflow::VersionDef(*from.versions_); versions_ = new ::opencv_tensorflow::VersionDef(*from.versions_);
} else { } else {
versions_ = NULL; versions_ = NULL;
} }
version_ = from.version_; version_ = from.version_;
// @@protoc_insertion_point(copy_constructor:tensorflow.GraphDef) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GraphDef)
} }
void GraphDef::SharedCtor() { void GraphDef::SharedCtor() {
@ -311,7 +312,7 @@ void GraphDef::SharedCtor() {
} }
GraphDef::~GraphDef() { GraphDef::~GraphDef() {
// @@protoc_insertion_point(destructor:tensorflow.GraphDef) // @@protoc_insertion_point(destructor:opencv_tensorflow.GraphDef)
SharedDtor(); SharedDtor();
} }
@ -347,7 +348,7 @@ GraphDef* GraphDef::New(::google::protobuf::Arena* arena) const {
} }
void GraphDef::Clear() { void GraphDef::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.GraphDef) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GraphDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -369,13 +370,13 @@ bool GraphDef::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.GraphDef) // @@protoc_insertion_point(parse_start:opencv_tensorflow.GraphDef)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
case 1: { case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
@ -386,7 +387,7 @@ bool GraphDef::MergePartialFromCodedStream(
break; break;
} }
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
case 2: { case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
@ -412,7 +413,7 @@ bool GraphDef::MergePartialFromCodedStream(
break; break;
} }
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
case 4: { case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
@ -436,28 +437,28 @@ bool GraphDef::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.GraphDef) // @@protoc_insertion_point(parse_success:opencv_tensorflow.GraphDef)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.GraphDef) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.GraphDef)
return false; return false;
#undef DO_ #undef DO_
} }
void GraphDef::SerializeWithCachedSizes( void GraphDef::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.GraphDef) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.GraphDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->node_size()); i < n; i++) { n = static_cast<unsigned int>(this->node_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->node(static_cast<int>(i)), output); 1, this->node(static_cast<int>(i)), output);
} }
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
if (this->has_library()) { if (this->has_library()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->library_, output); 2, *this->library_, output);
@ -468,7 +469,7 @@ void GraphDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->version(), output); ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->version(), output);
} }
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
if (this->has_versions()) { if (this->has_versions()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->versions_, output); 4, *this->versions_, output);
@ -478,17 +479,17 @@ void GraphDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.GraphDef) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.GraphDef)
} }
::google::protobuf::uint8* GraphDef::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* GraphDef::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphDef) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GraphDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->node_size()); i < n; i++) { n = static_cast<unsigned int>(this->node_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
@ -496,7 +497,7 @@ void GraphDef::SerializeWithCachedSizes(
1, this->node(static_cast<int>(i)), deterministic, target); 1, this->node(static_cast<int>(i)), deterministic, target);
} }
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
if (this->has_library()) { if (this->has_library()) {
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray( InternalWriteMessageToArray(
@ -508,7 +509,7 @@ void GraphDef::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->version(), target); target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->version(), target);
} }
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
if (this->has_versions()) { if (this->has_versions()) {
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray( InternalWriteMessageToArray(
@ -519,12 +520,12 @@ void GraphDef::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphDef) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GraphDef)
return target; return target;
} }
size_t GraphDef::ByteSizeLong() const { size_t GraphDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphDef) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GraphDef)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -532,7 +533,7 @@ size_t GraphDef::ByteSizeLong() const {
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
} }
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
{ {
unsigned int count = static_cast<unsigned int>(this->node_size()); unsigned int count = static_cast<unsigned int>(this->node_size());
total_size += 1UL * count; total_size += 1UL * count;
@ -543,14 +544,14 @@ size_t GraphDef::ByteSizeLong() const {
} }
} }
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
if (this->has_library()) { if (this->has_library()) {
total_size += 1 + total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize( ::google::protobuf::internal::WireFormatLite::MessageSize(
*this->library_); *this->library_);
} }
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
if (this->has_versions()) { if (this->has_versions()) {
total_size += 1 + total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize( ::google::protobuf::internal::WireFormatLite::MessageSize(
@ -572,22 +573,22 @@ size_t GraphDef::ByteSizeLong() const {
} }
void GraphDef::MergeFrom(const ::google::protobuf::Message& from) { void GraphDef::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphDef) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.GraphDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const GraphDef* source = const GraphDef* source =
::google::protobuf::internal::DynamicCastToGenerated<const GraphDef>( ::google::protobuf::internal::DynamicCastToGenerated<const GraphDef>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GraphDef) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.GraphDef)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphDef) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.GraphDef)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void GraphDef::MergeFrom(const GraphDef& from) { void GraphDef::MergeFrom(const GraphDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphDef) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GraphDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -595,10 +596,10 @@ void GraphDef::MergeFrom(const GraphDef& from) {
node_.MergeFrom(from.node_); node_.MergeFrom(from.node_);
if (from.has_library()) { if (from.has_library()) {
mutable_library()->::tensorflow::FunctionDefLibrary::MergeFrom(from.library()); mutable_library()->::opencv_tensorflow::FunctionDefLibrary::MergeFrom(from.library());
} }
if (from.has_versions()) { if (from.has_versions()) {
mutable_versions()->::tensorflow::VersionDef::MergeFrom(from.versions()); mutable_versions()->::opencv_tensorflow::VersionDef::MergeFrom(from.versions());
} }
if (from.version() != 0) { if (from.version() != 0) {
set_version(from.version()); set_version(from.version());
@ -606,14 +607,14 @@ void GraphDef::MergeFrom(const GraphDef& from) {
} }
void GraphDef::CopyFrom(const ::google::protobuf::Message& from) { void GraphDef::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GraphDef) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.GraphDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void GraphDef::CopyFrom(const GraphDef& from) { void GraphDef::CopyFrom(const GraphDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphDef) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GraphDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -696,7 +697,7 @@ NodeDef::NodeDef()
::protobuf_graph_2eproto::InitDefaultsNodeDef(); ::protobuf_graph_2eproto::InitDefaultsNodeDef();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.NodeDef) // @@protoc_insertion_point(constructor:opencv_tensorflow.NodeDef)
} }
NodeDef::NodeDef(::google::protobuf::Arena* arena) NodeDef::NodeDef(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -706,7 +707,7 @@ NodeDef::NodeDef(::google::protobuf::Arena* arena)
::protobuf_graph_2eproto::InitDefaultsNodeDef(); ::protobuf_graph_2eproto::InitDefaultsNodeDef();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.NodeDef) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.NodeDef)
} }
NodeDef::NodeDef(const NodeDef& from) NodeDef::NodeDef(const NodeDef& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -730,7 +731,7 @@ NodeDef::NodeDef(const NodeDef& from)
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device(), device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device(),
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
// @@protoc_insertion_point(copy_constructor:tensorflow.NodeDef) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.NodeDef)
} }
void NodeDef::SharedCtor() { void NodeDef::SharedCtor() {
@ -741,7 +742,7 @@ void NodeDef::SharedCtor() {
} }
NodeDef::~NodeDef() { NodeDef::~NodeDef() {
// @@protoc_insertion_point(destructor:tensorflow.NodeDef) // @@protoc_insertion_point(destructor:opencv_tensorflow.NodeDef)
SharedDtor(); SharedDtor();
} }
@ -778,7 +779,7 @@ NodeDef* NodeDef::New(::google::protobuf::Arena* arena) const {
} }
void NodeDef::Clear() { void NodeDef::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.NodeDef) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.NodeDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -795,7 +796,7 @@ bool NodeDef::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.NodeDef) // @@protoc_insertion_point(parse_start:opencv_tensorflow.NodeDef)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
@ -810,7 +811,7 @@ bool NodeDef::MergePartialFromCodedStream(
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.NodeDef.name")); "opencv_tensorflow.NodeDef.name"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -826,7 +827,7 @@ bool NodeDef::MergePartialFromCodedStream(
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->op().data(), static_cast<int>(this->op().length()), this->op().data(), static_cast<int>(this->op().length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.NodeDef.op")); "opencv_tensorflow.NodeDef.op"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -843,7 +844,7 @@ bool NodeDef::MergePartialFromCodedStream(
this->input(this->input_size() - 1).data(), this->input(this->input_size() - 1).data(),
static_cast<int>(this->input(this->input_size() - 1).length()), static_cast<int>(this->input(this->input_size() - 1).length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.NodeDef.input")); "opencv_tensorflow.NodeDef.input"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -859,30 +860,30 @@ bool NodeDef::MergePartialFromCodedStream(
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->device().data(), static_cast<int>(this->device().length()), this->device().data(), static_cast<int>(this->device().length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.NodeDef.device")); "opencv_tensorflow.NodeDef.device"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
break; break;
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
case 5: { case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
NodeDef_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< NodeDef_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
NodeDef_AttrEntry_DoNotUse, NodeDef_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 >, 0 >,
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue > > parser(&attr_); ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue > > parser(&attr_);
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, &parser)); input, &parser));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
parser.key().data(), static_cast<int>(parser.key().length()), parser.key().data(), static_cast<int>(parser.key().length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.NodeDef.AttrEntry.key")); "opencv_tensorflow.NodeDef.AttrEntry.key"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -901,17 +902,17 @@ bool NodeDef::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.NodeDef) // @@protoc_insertion_point(parse_success:opencv_tensorflow.NodeDef)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.NodeDef) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.NodeDef)
return false; return false;
#undef DO_ #undef DO_
} }
void NodeDef::SerializeWithCachedSizes( void NodeDef::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.NodeDef) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.NodeDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -920,7 +921,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.name"); "opencv_tensorflow.NodeDef.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output); 1, this->name(), output);
} }
@ -930,7 +931,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->op().data(), static_cast<int>(this->op().length()), this->op().data(), static_cast<int>(this->op().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.op"); "opencv_tensorflow.NodeDef.op");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->op(), output); 2, this->op(), output);
} }
@ -940,7 +941,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->input(i).data(), static_cast<int>(this->input(i).length()), this->input(i).data(), static_cast<int>(this->input(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.input"); "opencv_tensorflow.NodeDef.input");
::google::protobuf::internal::WireFormatLite::WriteString( ::google::protobuf::internal::WireFormatLite::WriteString(
3, this->input(i), output); 3, this->input(i), output);
} }
@ -950,14 +951,14 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->device().data(), static_cast<int>(this->device().length()), this->device().data(), static_cast<int>(this->device().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.device"); "opencv_tensorflow.NodeDef.device");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->device(), output); 4, this->device(), output);
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
if (!this->attr().empty()) { if (!this->attr().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_pointer typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer
ConstPtr; ConstPtr;
typedef ConstPtr SortItem; typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
@ -966,7 +967,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()), p->first.data(), static_cast<int>(p->first.length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.AttrEntry.key"); "opencv_tensorflow.NodeDef.AttrEntry.key");
} }
}; };
@ -974,9 +975,9 @@ void NodeDef::SerializeWithCachedSizes(
this->attr().size() > 1) { this->attr().size() > 1) {
::google::protobuf::scoped_array<SortItem> items( ::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->attr().size()]); new SortItem[this->attr().size()]);
typedef ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::size_type size_type; typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
size_type n = 0; size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->attr().begin(); it = this->attr().begin();
it != this->attr().end(); ++it, ++n) { it != this->attr().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
@ -995,7 +996,7 @@ void NodeDef::SerializeWithCachedSizes(
} }
} else { } else {
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry; ::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->attr().begin(); it = this->attr().begin();
it != this->attr().end(); ++it) { it != this->attr().end(); ++it) {
entry.reset(attr_.NewEntryWrapper( entry.reset(attr_.NewEntryWrapper(
@ -1014,13 +1015,13 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.NodeDef) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.NodeDef)
} }
::google::protobuf::uint8* NodeDef::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* NodeDef::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.NodeDef) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.NodeDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -1029,7 +1030,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.name"); "opencv_tensorflow.NodeDef.name");
target = target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray( ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target); 1, this->name(), target);
@ -1040,7 +1041,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->op().data(), static_cast<int>(this->op().length()), this->op().data(), static_cast<int>(this->op().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.op"); "opencv_tensorflow.NodeDef.op");
target = target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray( ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->op(), target); 2, this->op(), target);
@ -1051,7 +1052,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->input(i).data(), static_cast<int>(this->input(i).length()), this->input(i).data(), static_cast<int>(this->input(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.input"); "opencv_tensorflow.NodeDef.input");
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(3, this->input(i), target); WriteStringToArray(3, this->input(i), target);
} }
@ -1061,15 +1062,15 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->device().data(), static_cast<int>(this->device().length()), this->device().data(), static_cast<int>(this->device().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.device"); "opencv_tensorflow.NodeDef.device");
target = target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray( ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->device(), target); 4, this->device(), target);
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
if (!this->attr().empty()) { if (!this->attr().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_pointer typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_pointer
ConstPtr; ConstPtr;
typedef ConstPtr SortItem; typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
@ -1078,7 +1079,7 @@ void NodeDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()), p->first.data(), static_cast<int>(p->first.length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.NodeDef.AttrEntry.key"); "opencv_tensorflow.NodeDef.AttrEntry.key");
} }
}; };
@ -1086,9 +1087,9 @@ void NodeDef::SerializeWithCachedSizes(
this->attr().size() > 1) { this->attr().size() > 1) {
::google::protobuf::scoped_array<SortItem> items( ::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->attr().size()]); new SortItem[this->attr().size()]);
typedef ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::size_type size_type; typedef ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
size_type n = 0; size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->attr().begin(); it = this->attr().begin();
it != this->attr().end(); ++it, ++n) { it != this->attr().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
@ -1109,7 +1110,7 @@ void NodeDef::SerializeWithCachedSizes(
} }
} else { } else {
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry; ::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->attr().begin(); it = this->attr().begin();
it != this->attr().end(); ++it) { it != this->attr().end(); ++it) {
entry.reset(attr_.NewEntryWrapper( entry.reset(attr_.NewEntryWrapper(
@ -1130,12 +1131,12 @@ void NodeDef::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.NodeDef) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.NodeDef)
return target; return target;
} }
size_t NodeDef::ByteSizeLong() const { size_t NodeDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.NodeDef) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.NodeDef)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -1151,12 +1152,12 @@ size_t NodeDef::ByteSizeLong() const {
this->input(i)); this->input(i));
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
total_size += 1 * total_size += 1 *
::google::protobuf::internal::FromIntSize(this->attr_size()); ::google::protobuf::internal::FromIntSize(this->attr_size());
{ {
::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry; ::google::protobuf::scoped_ptr<NodeDef_AttrEntry_DoNotUse> entry;
for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator for (::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->attr().begin(); it = this->attr().begin();
it != this->attr().end(); ++it) { it != this->attr().end(); ++it) {
if (entry.get() != NULL && entry->GetArena() != NULL) { if (entry.get() != NULL && entry->GetArena() != NULL) {
@ -1200,22 +1201,22 @@ size_t NodeDef::ByteSizeLong() const {
} }
void NodeDef::MergeFrom(const ::google::protobuf::Message& from) { void NodeDef::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.NodeDef) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.NodeDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const NodeDef* source = const NodeDef* source =
::google::protobuf::internal::DynamicCastToGenerated<const NodeDef>( ::google::protobuf::internal::DynamicCastToGenerated<const NodeDef>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.NodeDef) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.NodeDef)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.NodeDef) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.NodeDef)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void NodeDef::MergeFrom(const NodeDef& from) { void NodeDef::MergeFrom(const NodeDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.NodeDef) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.NodeDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -1235,14 +1236,14 @@ void NodeDef::MergeFrom(const NodeDef& from) {
} }
void NodeDef::CopyFrom(const ::google::protobuf::Message& from) { void NodeDef::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.NodeDef) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.NodeDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void NodeDef::CopyFrom(const NodeDef& from) { void NodeDef::CopyFrom(const NodeDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.NodeDef) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.NodeDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -1289,6 +1290,6 @@ void NodeDef::InternalSwap(NodeDef* other) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -60,7 +60,7 @@ inline void InitDefaults() {
InitDefaultsNodeDef(); InitDefaultsNodeDef();
} }
} // namespace protobuf_graph_2eproto } // namespace protobuf_graph_2eproto
namespace tensorflow { namespace opencv_tensorflow {
class GraphDef; class GraphDef;
class GraphDefDefaultTypeInternal; class GraphDefDefaultTypeInternal;
extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;
@ -70,12 +70,12 @@ extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;
class NodeDef_AttrEntry_DoNotUse; class NodeDef_AttrEntry_DoNotUse;
class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal; class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;
extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_; extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphDef) */ { class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GraphDef) */ {
public: public:
GraphDef(); GraphDef();
virtual ~GraphDef(); virtual ~GraphDef();
@ -169,47 +169,47 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
int node_size() const; int node_size() const;
void clear_node(); void clear_node();
static const int kNodeFieldNumber = 1; static const int kNodeFieldNumber = 1;
const ::tensorflow::NodeDef& node(int index) const; const ::opencv_tensorflow::NodeDef& node(int index) const;
::tensorflow::NodeDef* mutable_node(int index); ::opencv_tensorflow::NodeDef* mutable_node(int index);
::tensorflow::NodeDef* add_node(); ::opencv_tensorflow::NodeDef* add_node();
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
mutable_node(); mutable_node();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
node() const; node() const;
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
bool has_library() const; bool has_library() const;
void clear_library(); void clear_library();
static const int kLibraryFieldNumber = 2; static const int kLibraryFieldNumber = 2;
private: private:
void _slow_mutable_library(); void _slow_mutable_library();
public: public:
const ::tensorflow::FunctionDefLibrary& library() const; const ::opencv_tensorflow::FunctionDefLibrary& library() const;
::tensorflow::FunctionDefLibrary* release_library(); ::opencv_tensorflow::FunctionDefLibrary* release_library();
::tensorflow::FunctionDefLibrary* mutable_library(); ::opencv_tensorflow::FunctionDefLibrary* mutable_library();
void set_allocated_library(::tensorflow::FunctionDefLibrary* library); void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library);
void unsafe_arena_set_allocated_library( void unsafe_arena_set_allocated_library(
::tensorflow::FunctionDefLibrary* library); ::opencv_tensorflow::FunctionDefLibrary* library);
::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); ::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
bool has_versions() const; bool has_versions() const;
void clear_versions(); void clear_versions();
static const int kVersionsFieldNumber = 4; static const int kVersionsFieldNumber = 4;
private: private:
void _slow_mutable_versions(); void _slow_mutable_versions();
public: public:
const ::tensorflow::VersionDef& versions() const; const ::opencv_tensorflow::VersionDef& versions() const;
::tensorflow::VersionDef* release_versions(); ::opencv_tensorflow::VersionDef* release_versions();
::tensorflow::VersionDef* mutable_versions(); ::opencv_tensorflow::VersionDef* mutable_versions();
void set_allocated_versions(::tensorflow::VersionDef* versions); void set_allocated_versions(::opencv_tensorflow::VersionDef* versions);
void unsafe_arena_set_allocated_versions( void unsafe_arena_set_allocated_versions(
::tensorflow::VersionDef* versions); ::opencv_tensorflow::VersionDef* versions);
::tensorflow::VersionDef* unsafe_arena_release_versions(); ::opencv_tensorflow::VersionDef* unsafe_arena_release_versions();
// int32 version = 3 [deprecated = true]; // int32 version = 3 [deprecated = true];
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version(); GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version();
@ -217,16 +217,16 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(
GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const; GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const;
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value); GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:tensorflow.GraphDef) // @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_; ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_;
::tensorflow::FunctionDefLibrary* library_; ::opencv_tensorflow::FunctionDefLibrary* library_;
::tensorflow::VersionDef* versions_; ::opencv_tensorflow::VersionDef* versions_;
::google::protobuf::int32 version_; ::google::protobuf::int32 version_;
mutable int _cached_size_; mutable int _cached_size_;
friend struct ::protobuf_graph_2eproto::TableStruct; friend struct ::protobuf_graph_2eproto::TableStruct;
@ -235,13 +235,13 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > { 0 > {
public: public:
typedef ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, typedef ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType; 0 > SuperType;
@ -255,7 +255,7 @@ public:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeDef) */ { class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NodeDef) */ {
public: public:
NodeDef(); NodeDef();
virtual ~NodeDef(); virtual ~NodeDef();
@ -372,13 +372,13 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
int attr_size() const; int attr_size() const;
void clear_attr(); void clear_attr();
static const int kAttrFieldNumber = 5; static const int kAttrFieldNumber = 5;
const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
attr() const; attr() const;
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
mutable_attr(); mutable_attr();
// string name = 1; // string name = 1;
@ -450,7 +450,7 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
void unsafe_arena_set_allocated_device( void unsafe_arena_set_allocated_device(
::std::string* device); ::std::string* device);
// @@protoc_insertion_point(class_scope:tensorflow.NodeDef) // @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -460,7 +460,7 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
::google::protobuf::RepeatedPtrField< ::std::string> input_; ::google::protobuf::RepeatedPtrField< ::std::string> input_;
::google::protobuf::internal::MapField< ::google::protobuf::internal::MapField<
NodeDef_AttrEntry_DoNotUse, NodeDef_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue, ::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > attr_; 0 > attr_;
@ -482,72 +482,72 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
#endif // __GNUC__ #endif // __GNUC__
// GraphDef // GraphDef
// repeated .tensorflow.NodeDef node = 1; // repeated .opencv_tensorflow.NodeDef node = 1;
inline int GraphDef::node_size() const { inline int GraphDef::node_size() const {
return node_.size(); return node_.size();
} }
inline void GraphDef::clear_node() { inline void GraphDef::clear_node() {
node_.Clear(); node_.Clear();
} }
inline const ::tensorflow::NodeDef& GraphDef::node(int index) const { inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.node) // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node)
return node_.Get(index); return node_.Get(index);
} }
inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) { inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node)
return node_.Mutable(index); return node_.Mutable(index);
} }
inline ::tensorflow::NodeDef* GraphDef::add_node() { inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() {
// @@protoc_insertion_point(field_add:tensorflow.GraphDef.node) // @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node)
return node_.Add(); return node_.Add();
} }
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
GraphDef::mutable_node() { GraphDef::mutable_node() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node)
return &node_; return &node_;
} }
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
GraphDef::node() const { GraphDef::node() const {
// @@protoc_insertion_point(field_list:tensorflow.GraphDef.node) // @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node)
return node_; return node_;
} }
// .tensorflow.VersionDef versions = 4; // .opencv_tensorflow.VersionDef versions = 4;
inline bool GraphDef::has_versions() const { inline bool GraphDef::has_versions() const {
return this != internal_default_instance() && versions_ != NULL; return this != internal_default_instance() && versions_ != NULL;
} }
inline const ::tensorflow::VersionDef& GraphDef::versions() const { inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const {
const ::tensorflow::VersionDef* p = versions_; const ::opencv_tensorflow::VersionDef* p = versions_;
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::VersionDef*>(
&::tensorflow::_VersionDef_default_instance_); &::opencv_tensorflow::_VersionDef_default_instance_);
} }
inline ::tensorflow::VersionDef* GraphDef::release_versions() { inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() {
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions)
::tensorflow::VersionDef* temp = versions_; ::opencv_tensorflow::VersionDef* temp = versions_;
if (GetArenaNoVirtual() != NULL) { if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
} }
versions_ = NULL; versions_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.versions)
::tensorflow::VersionDef* temp = versions_; ::opencv_tensorflow::VersionDef* temp = versions_;
versions_ = NULL; versions_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() {
if (versions_ == NULL) { if (versions_ == NULL) {
_slow_mutable_versions(); _slow_mutable_versions();
} }
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.versions)
return versions_; return versions_;
} }
inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { inline void GraphDef::set_allocated_versions(::opencv_tensorflow::VersionDef* versions) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) { if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_); delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_);
@ -564,7 +564,7 @@ inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions)
} }
versions_ = versions; versions_ = versions;
// @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.versions)
} }
// int32 version = 3 [deprecated = true]; // int32 version = 3 [deprecated = true];
@ -572,51 +572,51 @@ inline void GraphDef::clear_version() {
version_ = 0; version_ = 0;
} }
inline ::google::protobuf::int32 GraphDef::version() const { inline ::google::protobuf::int32 GraphDef::version() const {
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.version) // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.version)
return version_; return version_;
} }
inline void GraphDef::set_version(::google::protobuf::int32 value) { inline void GraphDef::set_version(::google::protobuf::int32 value) {
version_ = value; version_ = value;
// @@protoc_insertion_point(field_set:tensorflow.GraphDef.version) // @@protoc_insertion_point(field_set:opencv_tensorflow.GraphDef.version)
} }
// .tensorflow.FunctionDefLibrary library = 2; // .opencv_tensorflow.FunctionDefLibrary library = 2;
inline bool GraphDef::has_library() const { inline bool GraphDef::has_library() const {
return this != internal_default_instance() && library_ != NULL; return this != internal_default_instance() && library_ != NULL;
} }
inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const {
const ::tensorflow::FunctionDefLibrary* p = library_; const ::opencv_tensorflow::FunctionDefLibrary* p = library_;
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::FunctionDefLibrary*>( return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary*>(
&::tensorflow::_FunctionDefLibrary_default_instance_); &::opencv_tensorflow::_FunctionDefLibrary_default_instance_);
} }
inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() {
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library)
::tensorflow::FunctionDefLibrary* temp = library_; ::opencv_tensorflow::FunctionDefLibrary* temp = library_;
if (GetArenaNoVirtual() != NULL) { if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
} }
library_ = NULL; library_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.library)
::tensorflow::FunctionDefLibrary* temp = library_; ::opencv_tensorflow::FunctionDefLibrary* temp = library_;
library_ = NULL; library_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
if (library_ == NULL) { if (library_ == NULL) {
_slow_mutable_library(); _slow_mutable_library();
} }
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.library)
return library_; return library_;
} }
inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { inline void GraphDef::set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) { if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_); delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_);
@ -633,7 +633,7 @@ inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* li
} }
library_ = library; library_ = library;
// @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.library)
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -647,20 +647,20 @@ inline void NodeDef::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& NodeDef::name() const { inline const ::std::string& NodeDef::name() const {
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.name)
return name_.Get(); return name_.Get();
} }
inline void NodeDef::set_name(const ::std::string& value) { inline void NodeDef::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.name)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void NodeDef::set_name(::std::string&& value) { inline void NodeDef::set_name(::std::string&& value) {
name_.Set( name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.name)
} }
#endif #endif
inline void NodeDef::set_name(const char* value) { inline void NodeDef::set_name(const char* value) {
@ -668,22 +668,22 @@ inline void NodeDef::set_name(const char* value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.name)
} }
inline void NodeDef::set_name(const char* value, inline void NodeDef::set_name(const char* value,
size_t size) { size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.name)
} }
inline ::std::string* NodeDef::mutable_name() { inline ::std::string* NodeDef::mutable_name() {
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* NodeDef::release_name() { inline ::std::string* NodeDef::release_name() {
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -695,10 +695,10 @@ inline void NodeDef::set_allocated_name(::std::string* name) {
} }
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.name)
} }
inline ::std::string* NodeDef::unsafe_arena_release_name() { inline ::std::string* NodeDef::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -714,7 +714,7 @@ inline void NodeDef::unsafe_arena_set_allocated_name(
} }
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual()); name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.name)
} }
// string op = 2; // string op = 2;
@ -722,20 +722,20 @@ inline void NodeDef::clear_op() {
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& NodeDef::op() const { inline const ::std::string& NodeDef::op() const {
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.op)
return op_.Get(); return op_.Get();
} }
inline void NodeDef::set_op(const ::std::string& value) { inline void NodeDef::set_op(const ::std::string& value) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.op)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void NodeDef::set_op(::std::string&& value) { inline void NodeDef::set_op(::std::string&& value) {
op_.Set( op_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.op)
} }
#endif #endif
inline void NodeDef::set_op(const char* value) { inline void NodeDef::set_op(const char* value) {
@ -743,22 +743,22 @@ inline void NodeDef::set_op(const char* value) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.op)
} }
inline void NodeDef::set_op(const char* value, inline void NodeDef::set_op(const char* value,
size_t size) { size_t size) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.op)
} }
inline ::std::string* NodeDef::mutable_op() { inline ::std::string* NodeDef::mutable_op() {
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.op)
return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* NodeDef::release_op() { inline ::std::string* NodeDef::release_op() {
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.op)
return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -770,10 +770,10 @@ inline void NodeDef::set_allocated_op(::std::string* op) {
} }
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.op)
} }
inline ::std::string* NodeDef::unsafe_arena_release_op() { inline ::std::string* NodeDef::unsafe_arena_release_op() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.op)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -789,7 +789,7 @@ inline void NodeDef::unsafe_arena_set_allocated_op(
} }
op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
op, GetArenaNoVirtual()); op, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.op) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.op)
} }
// repeated string input = 3; // repeated string input = 3;
@ -800,64 +800,64 @@ inline void NodeDef::clear_input() {
input_.Clear(); input_.Clear();
} }
inline const ::std::string& NodeDef::input(int index) const { inline const ::std::string& NodeDef::input(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.input)
return input_.Get(index); return input_.Get(index);
} }
inline ::std::string* NodeDef::mutable_input(int index) { inline ::std::string* NodeDef::mutable_input(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.input)
return input_.Mutable(index); return input_.Mutable(index);
} }
inline void NodeDef::set_input(int index, const ::std::string& value) { inline void NodeDef::set_input(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
input_.Mutable(index)->assign(value); input_.Mutable(index)->assign(value);
} }
#if LANG_CXX11 #if LANG_CXX11
inline void NodeDef::set_input(int index, ::std::string&& value) { inline void NodeDef::set_input(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
input_.Mutable(index)->assign(std::move(value)); input_.Mutable(index)->assign(std::move(value));
} }
#endif #endif
inline void NodeDef::set_input(int index, const char* value) { inline void NodeDef::set_input(int index, const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
input_.Mutable(index)->assign(value); input_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.input)
} }
inline void NodeDef::set_input(int index, const char* value, size_t size) { inline void NodeDef::set_input(int index, const char* value, size_t size) {
input_.Mutable(index)->assign( input_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.input)
} }
inline ::std::string* NodeDef::add_input() { inline ::std::string* NodeDef::add_input() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input)
return input_.Add(); return input_.Add();
} }
inline void NodeDef::add_input(const ::std::string& value) { inline void NodeDef::add_input(const ::std::string& value) {
input_.Add()->assign(value); input_.Add()->assign(value);
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void NodeDef::add_input(::std::string&& value) { inline void NodeDef::add_input(::std::string&& value) {
input_.Add(std::move(value)); input_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
} }
#endif #endif
inline void NodeDef::add_input(const char* value) { inline void NodeDef::add_input(const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
input_.Add()->assign(value); input_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_add_char:opencv_tensorflow.NodeDef.input)
} }
inline void NodeDef::add_input(const char* value, size_t size) { inline void NodeDef::add_input(const char* value, size_t size) {
input_.Add()->assign(reinterpret_cast<const char*>(value), size); input_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.NodeDef.input)
} }
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
NodeDef::input() const { NodeDef::input() const {
// @@protoc_insertion_point(field_list:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input)
return input_; return input_;
} }
inline ::google::protobuf::RepeatedPtrField< ::std::string>* inline ::google::protobuf::RepeatedPtrField< ::std::string>*
NodeDef::mutable_input() { NodeDef::mutable_input() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input)
return &input_; return &input_;
} }
@ -866,20 +866,20 @@ inline void NodeDef::clear_device() {
device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& NodeDef::device() const { inline const ::std::string& NodeDef::device() const {
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.device)
return device_.Get(); return device_.Get();
} }
inline void NodeDef::set_device(const ::std::string& value) { inline void NodeDef::set_device(const ::std::string& value) {
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.device)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void NodeDef::set_device(::std::string&& value) { inline void NodeDef::set_device(::std::string&& value) {
device_.Set( device_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.device)
} }
#endif #endif
inline void NodeDef::set_device(const char* value) { inline void NodeDef::set_device(const char* value) {
@ -887,22 +887,22 @@ inline void NodeDef::set_device(const char* value) {
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.device)
} }
inline void NodeDef::set_device(const char* value, inline void NodeDef::set_device(const char* value,
size_t size) { size_t size) {
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.device)
} }
inline ::std::string* NodeDef::mutable_device() { inline ::std::string* NodeDef::mutable_device() {
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.device)
return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* NodeDef::release_device() { inline ::std::string* NodeDef::release_device() {
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.device)
return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -914,10 +914,10 @@ inline void NodeDef::set_allocated_device(::std::string* device) {
} }
device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.device)
} }
inline ::std::string* NodeDef::unsafe_arena_release_device() { inline ::std::string* NodeDef::unsafe_arena_release_device() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.device)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -933,21 +933,21 @@ inline void NodeDef::unsafe_arena_set_allocated_device(
} }
device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
device, GetArenaNoVirtual()); device, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.device) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.device)
} }
// map<string, .tensorflow.AttrValue> attr = 5; // map<string, .opencv_tensorflow.AttrValue> attr = 5;
inline int NodeDef::attr_size() const { inline int NodeDef::attr_size() const {
return attr_.size(); return attr_.size();
} }
inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& inline const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
NodeDef::attr() const { NodeDef::attr() const {
// @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr) // @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr)
return attr_.GetMap(); return attr_.GetMap();
} }
inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
NodeDef::mutable_attr() { NodeDef::mutable_attr() {
// @@protoc_insertion_point(field_mutable_map:tensorflow.NodeDef.attr) // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NodeDef.attr)
return attr_.MutableMap(); return attr_.MutableMap();
} }
@ -961,7 +961,7 @@ NodeDef::mutable_attr() {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,13 +19,13 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
class TensorProtoDefaultTypeInternal { class TensorProtoDefaultTypeInternal {
public: public:
::google::protobuf::internal::ExplicitlyConstructed<TensorProto> ::google::protobuf::internal::ExplicitlyConstructed<TensorProto>
_instance; _instance;
} _TensorProto_default_instance_; } _TensorProto_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_tensor_2eproto { namespace protobuf_tensor_2eproto {
void InitDefaultsTensorProtoImpl() { void InitDefaultsTensorProtoImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION; GOOGLE_PROTOBUF_VERIFY_VERSION;
@ -37,11 +37,11 @@ void InitDefaultsTensorProtoImpl() {
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();
{ {
void* ptr = &::tensorflow::_TensorProto_default_instance_; void* ptr = &::opencv_tensorflow::_TensorProto_default_instance_;
new (ptr) ::tensorflow::TensorProto(); new (ptr) ::opencv_tensorflow::TensorProto();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::TensorProto::InitAsDefaultInstance(); ::opencv_tensorflow::TensorProto::InitAsDefaultInstance();
} }
void InitDefaultsTensorProto() { void InitDefaultsTensorProto() {
@ -53,30 +53,30 @@ void InitDefaultsTensorProto() {
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, dtype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_shape_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, tensor_shape_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, version_number_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, version_number_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_content_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, tensor_content_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, half_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, half_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, float_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, float_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, double_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, double_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, int_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, string_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, string_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, scomplex_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, scomplex_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int64_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, int64_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, bool_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, bool_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dcomplex_val_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, dcomplex_val_),
}; };
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tensorflow::TensorProto)}, { 0, -1, sizeof(::opencv_tensorflow::TensorProto)},
}; };
static ::google::protobuf::Message const * const file_default_instances[] = { static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_TensorProto_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_TensorProto_default_instance_),
}; };
void protobuf_AssignDescriptors() { void protobuf_AssignDescriptors() {
@ -101,21 +101,22 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\014tensor.proto\022\ntensorflow\032\022tensor_shape" "\n\014tensor.proto\022\021opencv_tensorflow\032\022tenso"
".proto\032\013types.proto\"\345\002\n\013TensorProto\022#\n\005d" "r_shape.proto\032\013types.proto\"\363\002\n\013TensorPro"
"type\030\001 \001(\0162\024.tensorflow.DataType\0222\n\014tens" "to\022*\n\005dtype\030\001 \001(\0162\033.opencv_tensorflow.Da"
"or_shape\030\002 \001(\0132\034.tensorflow.TensorShapeP" "taType\0229\n\014tensor_shape\030\002 \001(\0132#.opencv_te"
"roto\022\026\n\016version_number\030\003 \001(\005\022\026\n\016tensor_c" "nsorflow.TensorShapeProto\022\026\n\016version_num"
"ontent\030\004 \001(\014\022\024\n\010half_val\030\r \003(\005B\002\020\001\022\025\n\tfl" "ber\030\003 \001(\005\022\026\n\016tensor_content\030\004 \001(\014\022\024\n\010hal"
"oat_val\030\005 \003(\002B\002\020\001\022\026\n\ndouble_val\030\006 \003(\001B\002\020" "f_val\030\r \003(\005B\002\020\001\022\025\n\tfloat_val\030\005 \003(\002B\002\020\001\022\026"
"\001\022\023\n\007int_val\030\007 \003(\005B\002\020\001\022\022\n\nstring_val\030\010 \003" "\n\ndouble_val\030\006 \003(\001B\002\020\001\022\023\n\007int_val\030\007 \003(\005B"
"(\014\022\030\n\014scomplex_val\030\t \003(\002B\002\020\001\022\025\n\tint64_va" "\002\020\001\022\022\n\nstring_val\030\010 \003(\014\022\030\n\014scomplex_val\030"
"l\030\n \003(\003B\002\020\001\022\024\n\010bool_val\030\013 \003(\010B\002\020\001\022\030\n\014dco" "\t \003(\002B\002\020\001\022\025\n\tint64_val\030\n \003(\003B\002\020\001\022\024\n\010bool"
"mplex_val\030\014 \003(\001B\002\020\001B-\n\030org.tensorflow.fr" "_val\030\013 \003(\010B\002\020\001\022\030\n\014dcomplex_val\030\014 \003(\001B\002\020\001"
"ameworkB\014TensorProtosP\001\370\001\001b\006proto3" "B-\n\030org.tensorflow.frameworkB\014TensorProt"
"osP\001\370\001\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 474); descriptor, 495);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"tensor.proto", &protobuf_RegisterTypes); "tensor.proto", &protobuf_RegisterTypes);
::protobuf_tensor_5fshape_2eproto::AddDescriptors(); ::protobuf_tensor_5fshape_2eproto::AddDescriptors();
@ -133,20 +134,20 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_tensor_2eproto } // namespace protobuf_tensor_2eproto
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
void TensorProto::InitAsDefaultInstance() { void TensorProto::InitAsDefaultInstance() {
::tensorflow::_TensorProto_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( ::opencv_tensorflow::_TensorProto_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::opencv_tensorflow::TensorShapeProto*>(
::tensorflow::TensorShapeProto::internal_default_instance()); ::opencv_tensorflow::TensorShapeProto::internal_default_instance());
} }
void TensorProto::_slow_mutable_tensor_shape() { void TensorProto::_slow_mutable_tensor_shape() {
tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::TensorShapeProto >(
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
void TensorProto::unsafe_arena_set_allocated_tensor_shape( void TensorProto::unsafe_arena_set_allocated_tensor_shape(
::tensorflow::TensorShapeProto* tensor_shape) { ::opencv_tensorflow::TensorShapeProto* tensor_shape) {
if (GetArenaNoVirtual() == NULL) { if (GetArenaNoVirtual() == NULL) {
delete tensor_shape_; delete tensor_shape_;
} }
@ -156,7 +157,7 @@ void TensorProto::unsafe_arena_set_allocated_tensor_shape(
} else { } else {
} }
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorProto.tensor_shape)
} }
void TensorProto::clear_tensor_shape() { void TensorProto::clear_tensor_shape() {
if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) { if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) {
@ -186,7 +187,7 @@ TensorProto::TensorProto()
::protobuf_tensor_2eproto::InitDefaultsTensorProto(); ::protobuf_tensor_2eproto::InitDefaultsTensorProto();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.TensorProto) // @@protoc_insertion_point(constructor:opencv_tensorflow.TensorProto)
} }
TensorProto::TensorProto(::google::protobuf::Arena* arena) TensorProto::TensorProto(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -203,7 +204,7 @@ TensorProto::TensorProto(::google::protobuf::Arena* arena)
::protobuf_tensor_2eproto::InitDefaultsTensorProto(); ::protobuf_tensor_2eproto::InitDefaultsTensorProto();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorProto) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.TensorProto)
} }
TensorProto::TensorProto(const TensorProto& from) TensorProto::TensorProto(const TensorProto& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -225,14 +226,14 @@ TensorProto::TensorProto(const TensorProto& from)
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
if (from.has_tensor_shape()) { if (from.has_tensor_shape()) {
tensor_shape_ = new ::tensorflow::TensorShapeProto(*from.tensor_shape_); tensor_shape_ = new ::opencv_tensorflow::TensorShapeProto(*from.tensor_shape_);
} else { } else {
tensor_shape_ = NULL; tensor_shape_ = NULL;
} }
::memcpy(&dtype_, &from.dtype_, ::memcpy(&dtype_, &from.dtype_,
static_cast<size_t>(reinterpret_cast<char*>(&version_number_) - static_cast<size_t>(reinterpret_cast<char*>(&version_number_) -
reinterpret_cast<char*>(&dtype_)) + sizeof(version_number_)); reinterpret_cast<char*>(&dtype_)) + sizeof(version_number_));
// @@protoc_insertion_point(copy_constructor:tensorflow.TensorProto) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.TensorProto)
} }
void TensorProto::SharedCtor() { void TensorProto::SharedCtor() {
@ -244,7 +245,7 @@ void TensorProto::SharedCtor() {
} }
TensorProto::~TensorProto() { TensorProto::~TensorProto() {
// @@protoc_insertion_point(destructor:tensorflow.TensorProto) // @@protoc_insertion_point(destructor:opencv_tensorflow.TensorProto)
SharedDtor(); SharedDtor();
} }
@ -280,7 +281,7 @@ TensorProto* TensorProto::New(::google::protobuf::Arena* arena) const {
} }
void TensorProto::Clear() { void TensorProto::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.TensorProto) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.TensorProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -309,13 +310,13 @@ bool TensorProto::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.TensorProto) // @@protoc_insertion_point(parse_start:opencv_tensorflow.TensorProto)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
case 1: { case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
@ -323,14 +324,14 @@ bool TensorProto::MergePartialFromCodedStream(
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value))); input, &value)));
set_dtype(static_cast< ::tensorflow::DataType >(value)); set_dtype(static_cast< ::opencv_tensorflow::DataType >(value));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
break; break;
} }
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
case 2: { case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
@ -544,27 +545,27 @@ bool TensorProto::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.TensorProto) // @@protoc_insertion_point(parse_success:opencv_tensorflow.TensorProto)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.TensorProto) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.TensorProto)
return false; return false;
#undef DO_ #undef DO_
} }
void TensorProto::SerializeWithCachedSizes( void TensorProto::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.TensorProto) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.TensorProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) { if (this->dtype() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum( ::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->dtype(), output); 1, this->dtype(), output);
} }
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) { if (this->has_tensor_shape()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->tensor_shape_, output); 2, *this->tensor_shape_, output);
@ -669,23 +670,23 @@ void TensorProto::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.TensorProto) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.TensorProto)
} }
::google::protobuf::uint8* TensorProto::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* TensorProto::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorProto) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.TensorProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) { if (this->dtype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->dtype(), target); 1, this->dtype(), target);
} }
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) { if (this->has_tensor_shape()) {
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray( InternalWriteMessageToArray(
@ -818,12 +819,12 @@ void TensorProto::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorProto) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.TensorProto)
return target; return target;
} }
size_t TensorProto::ByteSizeLong() const { size_t TensorProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorProto) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.TensorProto)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -974,14 +975,14 @@ size_t TensorProto::ByteSizeLong() const {
this->tensor_content()); this->tensor_content());
} }
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) { if (this->has_tensor_shape()) {
total_size += 1 + total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize( ::google::protobuf::internal::WireFormatLite::MessageSize(
*this->tensor_shape_); *this->tensor_shape_);
} }
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) { if (this->dtype() != 0) {
total_size += 1 + total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype()); ::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype());
@ -1002,22 +1003,22 @@ size_t TensorProto::ByteSizeLong() const {
} }
void TensorProto::MergeFrom(const ::google::protobuf::Message& from) { void TensorProto::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorProto) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.TensorProto)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const TensorProto* source = const TensorProto* source =
::google::protobuf::internal::DynamicCastToGenerated<const TensorProto>( ::google::protobuf::internal::DynamicCastToGenerated<const TensorProto>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorProto) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.TensorProto)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorProto) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.TensorProto)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void TensorProto::MergeFrom(const TensorProto& from) { void TensorProto::MergeFrom(const TensorProto& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorProto) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.TensorProto)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -1036,7 +1037,7 @@ void TensorProto::MergeFrom(const TensorProto& from) {
set_tensor_content(from.tensor_content()); set_tensor_content(from.tensor_content());
} }
if (from.has_tensor_shape()) { if (from.has_tensor_shape()) {
mutable_tensor_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape()); mutable_tensor_shape()->::opencv_tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape());
} }
if (from.dtype() != 0) { if (from.dtype() != 0) {
set_dtype(from.dtype()); set_dtype(from.dtype());
@ -1047,14 +1048,14 @@ void TensorProto::MergeFrom(const TensorProto& from) {
} }
void TensorProto::CopyFrom(const ::google::protobuf::Message& from) { void TensorProto::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorProto) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.TensorProto)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void TensorProto::CopyFrom(const TensorProto& from) { void TensorProto::CopyFrom(const TensorProto& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorProto) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.TensorProto)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -1109,6 +1110,6 @@ void TensorProto::InternalSwap(TensorProto* other) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -50,16 +50,16 @@ inline void InitDefaults() {
InitDefaultsTensorProto(); InitDefaultsTensorProto();
} }
} // namespace protobuf_tensor_2eproto } // namespace protobuf_tensor_2eproto
namespace tensorflow { namespace opencv_tensorflow {
class TensorProto; class TensorProto;
class TensorProtoDefaultTypeInternal; class TensorProtoDefaultTypeInternal;
extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_; extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorProto) */ { class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorProto) */ {
public: public:
TensorProto(); TensorProto();
virtual ~TensorProto(); virtual ~TensorProto();
@ -294,26 +294,26 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
void unsafe_arena_set_allocated_tensor_content( void unsafe_arena_set_allocated_tensor_content(
::std::string* tensor_content); ::std::string* tensor_content);
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
bool has_tensor_shape() const; bool has_tensor_shape() const;
void clear_tensor_shape(); void clear_tensor_shape();
static const int kTensorShapeFieldNumber = 2; static const int kTensorShapeFieldNumber = 2;
private: private:
void _slow_mutable_tensor_shape(); void _slow_mutable_tensor_shape();
public: public:
const ::tensorflow::TensorShapeProto& tensor_shape() const; const ::opencv_tensorflow::TensorShapeProto& tensor_shape() const;
::tensorflow::TensorShapeProto* release_tensor_shape(); ::opencv_tensorflow::TensorShapeProto* release_tensor_shape();
::tensorflow::TensorShapeProto* mutable_tensor_shape(); ::opencv_tensorflow::TensorShapeProto* mutable_tensor_shape();
void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape); void set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape);
void unsafe_arena_set_allocated_tensor_shape( void unsafe_arena_set_allocated_tensor_shape(
::tensorflow::TensorShapeProto* tensor_shape); ::opencv_tensorflow::TensorShapeProto* tensor_shape);
::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape(); ::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
void clear_dtype(); void clear_dtype();
static const int kDtypeFieldNumber = 1; static const int kDtypeFieldNumber = 1;
::tensorflow::DataType dtype() const; ::opencv_tensorflow::DataType dtype() const;
void set_dtype(::tensorflow::DataType value); void set_dtype(::opencv_tensorflow::DataType value);
// int32 version_number = 3; // int32 version_number = 3;
void clear_version_number(); void clear_version_number();
@ -321,7 +321,7 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
::google::protobuf::int32 version_number() const; ::google::protobuf::int32 version_number() const;
void set_version_number(::google::protobuf::int32 value); void set_version_number(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:tensorflow.TensorProto) // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorProto)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -346,7 +346,7 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_;
mutable int _half_val_cached_byte_size_; mutable int _half_val_cached_byte_size_;
::google::protobuf::internal::ArenaStringPtr tensor_content_; ::google::protobuf::internal::ArenaStringPtr tensor_content_;
::tensorflow::TensorShapeProto* tensor_shape_; ::opencv_tensorflow::TensorShapeProto* tensor_shape_;
int dtype_; int dtype_;
::google::protobuf::int32 version_number_; ::google::protobuf::int32 version_number_;
mutable int _cached_size_; mutable int _cached_size_;
@ -364,56 +364,56 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
#endif // __GNUC__ #endif // __GNUC__
// TensorProto // TensorProto
// .tensorflow.DataType dtype = 1; // .opencv_tensorflow.DataType dtype = 1;
inline void TensorProto::clear_dtype() { inline void TensorProto::clear_dtype() {
dtype_ = 0; dtype_ = 0;
} }
inline ::tensorflow::DataType TensorProto::dtype() const { inline ::opencv_tensorflow::DataType TensorProto::dtype() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.dtype) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dtype)
return static_cast< ::tensorflow::DataType >(dtype_); return static_cast< ::opencv_tensorflow::DataType >(dtype_);
} }
inline void TensorProto::set_dtype(::tensorflow::DataType value) { inline void TensorProto::set_dtype(::opencv_tensorflow::DataType value) {
dtype_ = value; dtype_ = value;
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dtype)
} }
// .tensorflow.TensorShapeProto tensor_shape = 2; // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
inline bool TensorProto::has_tensor_shape() const { inline bool TensorProto::has_tensor_shape() const {
return this != internal_default_instance() && tensor_shape_ != NULL; return this != internal_default_instance() && tensor_shape_ != NULL;
} }
inline const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const { inline const ::opencv_tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
const ::tensorflow::TensorShapeProto* p = tensor_shape_; const ::opencv_tensorflow::TensorShapeProto* p = tensor_shape_;
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_shape)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>( return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::TensorShapeProto*>(
&::tensorflow::_TensorShapeProto_default_instance_); &::opencv_tensorflow::_TensorShapeProto_default_instance_);
} }
inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() { inline ::opencv_tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_shape)
::tensorflow::TensorShapeProto* temp = tensor_shape_; ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
if (GetArenaNoVirtual() != NULL) { if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
} }
tensor_shape_ = NULL; tensor_shape_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() { inline ::opencv_tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorProto.tensor_shape)
::tensorflow::TensorShapeProto* temp = tensor_shape_; ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
tensor_shape_ = NULL; tensor_shape_ = NULL;
return temp; return temp;
} }
inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() { inline ::opencv_tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
if (tensor_shape_ == NULL) { if (tensor_shape_ == NULL) {
_slow_mutable_tensor_shape(); _slow_mutable_tensor_shape();
} }
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_shape)
return tensor_shape_; return tensor_shape_;
} }
inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { inline void TensorProto::set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) { if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_); delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_);
@ -430,7 +430,7 @@ inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapePro
} }
tensor_shape_ = tensor_shape; tensor_shape_ = tensor_shape;
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_shape)
} }
// int32 version_number = 3; // int32 version_number = 3;
@ -438,13 +438,13 @@ inline void TensorProto::clear_version_number() {
version_number_ = 0; version_number_ = 0;
} }
inline ::google::protobuf::int32 TensorProto::version_number() const { inline ::google::protobuf::int32 TensorProto::version_number() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.version_number) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.version_number)
return version_number_; return version_number_;
} }
inline void TensorProto::set_version_number(::google::protobuf::int32 value) { inline void TensorProto::set_version_number(::google::protobuf::int32 value) {
version_number_ = value; version_number_ = value;
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.version_number)
} }
// bytes tensor_content = 4; // bytes tensor_content = 4;
@ -452,20 +452,20 @@ inline void TensorProto::clear_tensor_content() {
tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& TensorProto::tensor_content() const { inline const ::std::string& TensorProto::tensor_content() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_content)
return tensor_content_.Get(); return tensor_content_.Get();
} }
inline void TensorProto::set_tensor_content(const ::std::string& value) { inline void TensorProto::set_tensor_content(const ::std::string& value) {
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.tensor_content)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void TensorProto::set_tensor_content(::std::string&& value) { inline void TensorProto::set_tensor_content(::std::string&& value) {
tensor_content_.Set( tensor_content_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.TensorProto.tensor_content)
} }
#endif #endif
inline void TensorProto::set_tensor_content(const char* value) { inline void TensorProto::set_tensor_content(const char* value) {
@ -473,22 +473,22 @@ inline void TensorProto::set_tensor_content(const char* value) {
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorProto.tensor_content)
} }
inline void TensorProto::set_tensor_content(const void* value, inline void TensorProto::set_tensor_content(const void* value,
size_t size) { size_t size) {
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorProto.tensor_content)
} }
inline ::std::string* TensorProto::mutable_tensor_content() { inline ::std::string* TensorProto::mutable_tensor_content() {
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_content)
return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* TensorProto::release_tensor_content() { inline ::std::string* TensorProto::release_tensor_content() {
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_content)
return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -500,10 +500,10 @@ inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_cont
} }
tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content, tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_content)
} }
inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() { inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorProto.tensor_content)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -519,7 +519,7 @@ inline void TensorProto::unsafe_arena_set_allocated_tensor_content(
} }
tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
tensor_content, GetArenaNoVirtual()); tensor_content, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_content) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorProto.tensor_content)
} }
// repeated int32 half_val = 13 [packed = true]; // repeated int32 half_val = 13 [packed = true];
@ -530,25 +530,25 @@ inline void TensorProto::clear_half_val() {
half_val_.Clear(); half_val_.Clear();
} }
inline ::google::protobuf::int32 TensorProto::half_val(int index) const { inline ::google::protobuf::int32 TensorProto::half_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.half_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.half_val)
return half_val_.Get(index); return half_val_.Get(index);
} }
inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) { inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) {
half_val_.Set(index, value); half_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.half_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.half_val)
} }
inline void TensorProto::add_half_val(::google::protobuf::int32 value) { inline void TensorProto::add_half_val(::google::protobuf::int32 value) {
half_val_.Add(value); half_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.half_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.half_val)
} }
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
TensorProto::half_val() const { TensorProto::half_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.half_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.half_val)
return half_val_; return half_val_;
} }
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
TensorProto::mutable_half_val() { TensorProto::mutable_half_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.half_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.half_val)
return &half_val_; return &half_val_;
} }
@ -560,25 +560,25 @@ inline void TensorProto::clear_float_val() {
float_val_.Clear(); float_val_.Clear();
} }
inline float TensorProto::float_val(int index) const { inline float TensorProto::float_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.float_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.float_val)
return float_val_.Get(index); return float_val_.Get(index);
} }
inline void TensorProto::set_float_val(int index, float value) { inline void TensorProto::set_float_val(int index, float value) {
float_val_.Set(index, value); float_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.float_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.float_val)
} }
inline void TensorProto::add_float_val(float value) { inline void TensorProto::add_float_val(float value) {
float_val_.Add(value); float_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.float_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.float_val)
} }
inline const ::google::protobuf::RepeatedField< float >& inline const ::google::protobuf::RepeatedField< float >&
TensorProto::float_val() const { TensorProto::float_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.float_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.float_val)
return float_val_; return float_val_;
} }
inline ::google::protobuf::RepeatedField< float >* inline ::google::protobuf::RepeatedField< float >*
TensorProto::mutable_float_val() { TensorProto::mutable_float_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.float_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.float_val)
return &float_val_; return &float_val_;
} }
@ -590,25 +590,25 @@ inline void TensorProto::clear_double_val() {
double_val_.Clear(); double_val_.Clear();
} }
inline double TensorProto::double_val(int index) const { inline double TensorProto::double_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.double_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.double_val)
return double_val_.Get(index); return double_val_.Get(index);
} }
inline void TensorProto::set_double_val(int index, double value) { inline void TensorProto::set_double_val(int index, double value) {
double_val_.Set(index, value); double_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.double_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.double_val)
} }
inline void TensorProto::add_double_val(double value) { inline void TensorProto::add_double_val(double value) {
double_val_.Add(value); double_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.double_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.double_val)
} }
inline const ::google::protobuf::RepeatedField< double >& inline const ::google::protobuf::RepeatedField< double >&
TensorProto::double_val() const { TensorProto::double_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.double_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.double_val)
return double_val_; return double_val_;
} }
inline ::google::protobuf::RepeatedField< double >* inline ::google::protobuf::RepeatedField< double >*
TensorProto::mutable_double_val() { TensorProto::mutable_double_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.double_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.double_val)
return &double_val_; return &double_val_;
} }
@ -620,25 +620,25 @@ inline void TensorProto::clear_int_val() {
int_val_.Clear(); int_val_.Clear();
} }
inline ::google::protobuf::int32 TensorProto::int_val(int index) const { inline ::google::protobuf::int32 TensorProto::int_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.int_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int_val)
return int_val_.Get(index); return int_val_.Get(index);
} }
inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) { inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) {
int_val_.Set(index, value); int_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.int_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int_val)
} }
inline void TensorProto::add_int_val(::google::protobuf::int32 value) { inline void TensorProto::add_int_val(::google::protobuf::int32 value) {
int_val_.Add(value); int_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.int_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int_val)
} }
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
TensorProto::int_val() const { TensorProto::int_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.int_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int_val)
return int_val_; return int_val_;
} }
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
TensorProto::mutable_int_val() { TensorProto::mutable_int_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int_val)
return &int_val_; return &int_val_;
} }
@ -650,64 +650,64 @@ inline void TensorProto::clear_string_val() {
string_val_.Clear(); string_val_.Clear();
} }
inline const ::std::string& TensorProto::string_val(int index) const { inline const ::std::string& TensorProto::string_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.string_val)
return string_val_.Get(index); return string_val_.Get(index);
} }
inline ::std::string* TensorProto::mutable_string_val(int index) { inline ::std::string* TensorProto::mutable_string_val(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.string_val)
return string_val_.Mutable(index); return string_val_.Mutable(index);
} }
inline void TensorProto::set_string_val(int index, const ::std::string& value) { inline void TensorProto::set_string_val(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
string_val_.Mutable(index)->assign(value); string_val_.Mutable(index)->assign(value);
} }
#if LANG_CXX11 #if LANG_CXX11
inline void TensorProto::set_string_val(int index, ::std::string&& value) { inline void TensorProto::set_string_val(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
string_val_.Mutable(index)->assign(std::move(value)); string_val_.Mutable(index)->assign(std::move(value));
} }
#endif #endif
inline void TensorProto::set_string_val(int index, const char* value) { inline void TensorProto::set_string_val(int index, const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
string_val_.Mutable(index)->assign(value); string_val_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorProto.string_val)
} }
inline void TensorProto::set_string_val(int index, const void* value, size_t size) { inline void TensorProto::set_string_val(int index, const void* value, size_t size) {
string_val_.Mutable(index)->assign( string_val_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorProto.string_val)
} }
inline ::std::string* TensorProto::add_string_val() { inline ::std::string* TensorProto::add_string_val() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.TensorProto.string_val)
return string_val_.Add(); return string_val_.Add();
} }
inline void TensorProto::add_string_val(const ::std::string& value) { inline void TensorProto::add_string_val(const ::std::string& value) {
string_val_.Add()->assign(value); string_val_.Add()->assign(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void TensorProto::add_string_val(::std::string&& value) { inline void TensorProto::add_string_val(::std::string&& value) {
string_val_.Add(std::move(value)); string_val_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
} }
#endif #endif
inline void TensorProto::add_string_val(const char* value) { inline void TensorProto::add_string_val(const char* value) {
GOOGLE_DCHECK(value != NULL); GOOGLE_DCHECK(value != NULL);
string_val_.Add()->assign(value); string_val_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_add_char:opencv_tensorflow.TensorProto.string_val)
} }
inline void TensorProto::add_string_val(const void* value, size_t size) { inline void TensorProto::add_string_val(const void* value, size_t size) {
string_val_.Add()->assign(reinterpret_cast<const char*>(value), size); string_val_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.TensorProto.string_val)
} }
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
TensorProto::string_val() const { TensorProto::string_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.string_val)
return string_val_; return string_val_;
} }
inline ::google::protobuf::RepeatedPtrField< ::std::string>* inline ::google::protobuf::RepeatedPtrField< ::std::string>*
TensorProto::mutable_string_val() { TensorProto::mutable_string_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.string_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.string_val)
return &string_val_; return &string_val_;
} }
@ -719,25 +719,25 @@ inline void TensorProto::clear_scomplex_val() {
scomplex_val_.Clear(); scomplex_val_.Clear();
} }
inline float TensorProto::scomplex_val(int index) const { inline float TensorProto::scomplex_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.scomplex_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.scomplex_val)
return scomplex_val_.Get(index); return scomplex_val_.Get(index);
} }
inline void TensorProto::set_scomplex_val(int index, float value) { inline void TensorProto::set_scomplex_val(int index, float value) {
scomplex_val_.Set(index, value); scomplex_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.scomplex_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.scomplex_val)
} }
inline void TensorProto::add_scomplex_val(float value) { inline void TensorProto::add_scomplex_val(float value) {
scomplex_val_.Add(value); scomplex_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.scomplex_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.scomplex_val)
} }
inline const ::google::protobuf::RepeatedField< float >& inline const ::google::protobuf::RepeatedField< float >&
TensorProto::scomplex_val() const { TensorProto::scomplex_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.scomplex_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.scomplex_val)
return scomplex_val_; return scomplex_val_;
} }
inline ::google::protobuf::RepeatedField< float >* inline ::google::protobuf::RepeatedField< float >*
TensorProto::mutable_scomplex_val() { TensorProto::mutable_scomplex_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.scomplex_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.scomplex_val)
return &scomplex_val_; return &scomplex_val_;
} }
@ -749,25 +749,25 @@ inline void TensorProto::clear_int64_val() {
int64_val_.Clear(); int64_val_.Clear();
} }
inline ::google::protobuf::int64 TensorProto::int64_val(int index) const { inline ::google::protobuf::int64 TensorProto::int64_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.int64_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int64_val)
return int64_val_.Get(index); return int64_val_.Get(index);
} }
inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) { inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) {
int64_val_.Set(index, value); int64_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.int64_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int64_val)
} }
inline void TensorProto::add_int64_val(::google::protobuf::int64 value) { inline void TensorProto::add_int64_val(::google::protobuf::int64 value) {
int64_val_.Add(value); int64_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.int64_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int64_val)
} }
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
TensorProto::int64_val() const { TensorProto::int64_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.int64_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int64_val)
return int64_val_; return int64_val_;
} }
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
TensorProto::mutable_int64_val() { TensorProto::mutable_int64_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int64_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int64_val)
return &int64_val_; return &int64_val_;
} }
@ -779,25 +779,25 @@ inline void TensorProto::clear_bool_val() {
bool_val_.Clear(); bool_val_.Clear();
} }
inline bool TensorProto::bool_val(int index) const { inline bool TensorProto::bool_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.bool_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.bool_val)
return bool_val_.Get(index); return bool_val_.Get(index);
} }
inline void TensorProto::set_bool_val(int index, bool value) { inline void TensorProto::set_bool_val(int index, bool value) {
bool_val_.Set(index, value); bool_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.bool_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.bool_val)
} }
inline void TensorProto::add_bool_val(bool value) { inline void TensorProto::add_bool_val(bool value) {
bool_val_.Add(value); bool_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.bool_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.bool_val)
} }
inline const ::google::protobuf::RepeatedField< bool >& inline const ::google::protobuf::RepeatedField< bool >&
TensorProto::bool_val() const { TensorProto::bool_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.bool_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.bool_val)
return bool_val_; return bool_val_;
} }
inline ::google::protobuf::RepeatedField< bool >* inline ::google::protobuf::RepeatedField< bool >*
TensorProto::mutable_bool_val() { TensorProto::mutable_bool_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.bool_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.bool_val)
return &bool_val_; return &bool_val_;
} }
@ -809,25 +809,25 @@ inline void TensorProto::clear_dcomplex_val() {
dcomplex_val_.Clear(); dcomplex_val_.Clear();
} }
inline double TensorProto::dcomplex_val(int index) const { inline double TensorProto::dcomplex_val(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.dcomplex_val) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dcomplex_val)
return dcomplex_val_.Get(index); return dcomplex_val_.Get(index);
} }
inline void TensorProto::set_dcomplex_val(int index, double value) { inline void TensorProto::set_dcomplex_val(int index, double value) {
dcomplex_val_.Set(index, value); dcomplex_val_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.dcomplex_val) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dcomplex_val)
} }
inline void TensorProto::add_dcomplex_val(double value) { inline void TensorProto::add_dcomplex_val(double value) {
dcomplex_val_.Add(value); dcomplex_val_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.dcomplex_val) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.dcomplex_val)
} }
inline const ::google::protobuf::RepeatedField< double >& inline const ::google::protobuf::RepeatedField< double >&
TensorProto::dcomplex_val() const { TensorProto::dcomplex_val() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.dcomplex_val) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.dcomplex_val)
return dcomplex_val_; return dcomplex_val_;
} }
inline ::google::protobuf::RepeatedField< double >* inline ::google::protobuf::RepeatedField< double >*
TensorProto::mutable_dcomplex_val() { TensorProto::mutable_dcomplex_val() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.dcomplex_val) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.dcomplex_val)
return &dcomplex_val_; return &dcomplex_val_;
} }
@ -837,7 +837,7 @@ TensorProto::mutable_dcomplex_val() {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -19,7 +19,7 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
class TensorShapeProto_DimDefaultTypeInternal { class TensorShapeProto_DimDefaultTypeInternal {
public: public:
::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto_Dim> ::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto_Dim>
@ -30,7 +30,7 @@ class TensorShapeProtoDefaultTypeInternal {
::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto> ::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto>
_instance; _instance;
} _TensorShapeProto_default_instance_; } _TensorShapeProto_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_tensor_5fshape_2eproto { namespace protobuf_tensor_5fshape_2eproto {
void InitDefaultsTensorShapeProto_DimImpl() { void InitDefaultsTensorShapeProto_DimImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION; GOOGLE_PROTOBUF_VERIFY_VERSION;
@ -41,11 +41,11 @@ void InitDefaultsTensorShapeProto_DimImpl() {
::google::protobuf::internal::InitProtobufDefaults(); ::google::protobuf::internal::InitProtobufDefaults();
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
{ {
void* ptr = &::tensorflow::_TensorShapeProto_Dim_default_instance_; void* ptr = &::opencv_tensorflow::_TensorShapeProto_Dim_default_instance_;
new (ptr) ::tensorflow::TensorShapeProto_Dim(); new (ptr) ::opencv_tensorflow::TensorShapeProto_Dim();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::TensorShapeProto_Dim::InitAsDefaultInstance(); ::opencv_tensorflow::TensorShapeProto_Dim::InitAsDefaultInstance();
} }
void InitDefaultsTensorShapeProto_Dim() { void InitDefaultsTensorShapeProto_Dim() {
@ -63,11 +63,11 @@ void InitDefaultsTensorShapeProtoImpl() {
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim();
{ {
void* ptr = &::tensorflow::_TensorShapeProto_default_instance_; void* ptr = &::opencv_tensorflow::_TensorShapeProto_default_instance_;
new (ptr) ::tensorflow::TensorShapeProto(); new (ptr) ::opencv_tensorflow::TensorShapeProto();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::TensorShapeProto::InitAsDefaultInstance(); ::opencv_tensorflow::TensorShapeProto::InitAsDefaultInstance();
} }
void InitDefaultsTensorShapeProto() { void InitDefaultsTensorShapeProto() {
@ -79,28 +79,28 @@ void InitDefaultsTensorShapeProto() {
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto_Dim, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, size_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto_Dim, size_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto_Dim, name_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, dim_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto, dim_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, unknown_rank_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorShapeProto, unknown_rank_),
}; };
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tensorflow::TensorShapeProto_Dim)}, { 0, -1, sizeof(::opencv_tensorflow::TensorShapeProto_Dim)},
{ 7, -1, sizeof(::tensorflow::TensorShapeProto)}, { 7, -1, sizeof(::opencv_tensorflow::TensorShapeProto)},
}; };
static ::google::protobuf::Message const * const file_default_instances[] = { static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_TensorShapeProto_Dim_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_TensorShapeProto_Dim_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_TensorShapeProto_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_TensorShapeProto_default_instance_),
}; };
void protobuf_AssignDescriptors() { void protobuf_AssignDescriptors() {
@ -125,15 +125,15 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\022tensor_shape.proto\022\ntensorflow\"z\n\020Tens" "\n\022tensor_shape.proto\022\021opencv_tensorflow\""
"orShapeProto\022-\n\003dim\030\002 \003(\0132 .tensorflow.T" "\201\001\n\020TensorShapeProto\0224\n\003dim\030\002 \003(\0132\'.open"
"ensorShapeProto.Dim\022\024\n\014unknown_rank\030\003 \001(" "cv_tensorflow.TensorShapeProto.Dim\022\024\n\014un"
"\010\032!\n\003Dim\022\014\n\004size\030\001 \001(\003\022\014\n\004name\030\002 \001(\tB2\n\030" "known_rank\030\003 \001(\010\032!\n\003Dim\022\014\n\004size\030\001 \001(\003\022\014\n"
"org.tensorflow.frameworkB\021TensorShapePro" "\004name\030\002 \001(\tB2\n\030org.tensorflow.frameworkB"
"tosP\001\370\001\001b\006proto3" "\021TensorShapeProtosP\001\370\001\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 216); descriptor, 231);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"tensor_shape.proto", &protobuf_RegisterTypes); "tensor_shape.proto", &protobuf_RegisterTypes);
} }
@ -149,7 +149,7 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_tensor_5fshape_2eproto } // namespace protobuf_tensor_5fshape_2eproto
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
@ -166,7 +166,7 @@ TensorShapeProto_Dim::TensorShapeProto_Dim()
::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(constructor:opencv_tensorflow.TensorShapeProto.Dim)
} }
TensorShapeProto_Dim::TensorShapeProto_Dim(::google::protobuf::Arena* arena) TensorShapeProto_Dim::TensorShapeProto_Dim(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -174,7 +174,7 @@ TensorShapeProto_Dim::TensorShapeProto_Dim(::google::protobuf::Arena* arena)
::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.TensorShapeProto.Dim)
} }
TensorShapeProto_Dim::TensorShapeProto_Dim(const TensorShapeProto_Dim& from) TensorShapeProto_Dim::TensorShapeProto_Dim(const TensorShapeProto_Dim& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -187,7 +187,7 @@ TensorShapeProto_Dim::TensorShapeProto_Dim(const TensorShapeProto_Dim& from)
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
size_ = from.size_; size_ = from.size_;
// @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.TensorShapeProto.Dim)
} }
void TensorShapeProto_Dim::SharedCtor() { void TensorShapeProto_Dim::SharedCtor() {
@ -197,7 +197,7 @@ void TensorShapeProto_Dim::SharedCtor() {
} }
TensorShapeProto_Dim::~TensorShapeProto_Dim() { TensorShapeProto_Dim::~TensorShapeProto_Dim() {
// @@protoc_insertion_point(destructor:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(destructor:opencv_tensorflow.TensorShapeProto.Dim)
SharedDtor(); SharedDtor();
} }
@ -232,7 +232,7 @@ TensorShapeProto_Dim* TensorShapeProto_Dim::New(::google::protobuf::Arena* arena
} }
void TensorShapeProto_Dim::Clear() { void TensorShapeProto_Dim::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.TensorShapeProto.Dim)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -246,7 +246,7 @@ bool TensorShapeProto_Dim::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(parse_start:opencv_tensorflow.TensorShapeProto.Dim)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
@ -275,7 +275,7 @@ bool TensorShapeProto_Dim::MergePartialFromCodedStream(
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::PARSE, ::google::protobuf::internal::WireFormatLite::PARSE,
"tensorflow.TensorShapeProto.Dim.name")); "opencv_tensorflow.TensorShapeProto.Dim.name"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -294,17 +294,17 @@ bool TensorShapeProto_Dim::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(parse_success:opencv_tensorflow.TensorShapeProto.Dim)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.TensorShapeProto.Dim)
return false; return false;
#undef DO_ #undef DO_
} }
void TensorShapeProto_Dim::SerializeWithCachedSizes( void TensorShapeProto_Dim::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.TensorShapeProto.Dim)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -318,7 +318,7 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.TensorShapeProto.Dim.name"); "opencv_tensorflow.TensorShapeProto.Dim.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->name(), output); 2, this->name(), output);
} }
@ -327,13 +327,13 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.TensorShapeProto.Dim)
} }
::google::protobuf::uint8* TensorShapeProto_Dim::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* TensorShapeProto_Dim::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.TensorShapeProto.Dim)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -347,7 +347,7 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()), this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE, ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"tensorflow.TensorShapeProto.Dim.name"); "opencv_tensorflow.TensorShapeProto.Dim.name");
target = target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray( ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->name(), target); 2, this->name(), target);
@ -357,12 +357,12 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.TensorShapeProto.Dim)
return target; return target;
} }
size_t TensorShapeProto_Dim::ByteSizeLong() const { size_t TensorShapeProto_Dim::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.TensorShapeProto.Dim)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -392,22 +392,22 @@ size_t TensorShapeProto_Dim::ByteSizeLong() const {
} }
void TensorShapeProto_Dim::MergeFrom(const ::google::protobuf::Message& from) { void TensorShapeProto_Dim::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.TensorShapeProto.Dim)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const TensorShapeProto_Dim* source = const TensorShapeProto_Dim* source =
::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto_Dim>( ::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto_Dim>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.TensorShapeProto.Dim)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.TensorShapeProto.Dim)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void TensorShapeProto_Dim::MergeFrom(const TensorShapeProto_Dim& from) { void TensorShapeProto_Dim::MergeFrom(const TensorShapeProto_Dim& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.TensorShapeProto.Dim)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -422,14 +422,14 @@ void TensorShapeProto_Dim::MergeFrom(const TensorShapeProto_Dim& from) {
} }
void TensorShapeProto_Dim::CopyFrom(const ::google::protobuf::Message& from) { void TensorShapeProto_Dim::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.TensorShapeProto.Dim)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void TensorShapeProto_Dim::CopyFrom(const TensorShapeProto_Dim& from) { void TensorShapeProto_Dim::CopyFrom(const TensorShapeProto_Dim& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.TensorShapeProto.Dim)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -487,7 +487,7 @@ TensorShapeProto::TensorShapeProto()
::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto) // @@protoc_insertion_point(constructor:opencv_tensorflow.TensorShapeProto)
} }
TensorShapeProto::TensorShapeProto(::google::protobuf::Arena* arena) TensorShapeProto::TensorShapeProto(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -496,7 +496,7 @@ TensorShapeProto::TensorShapeProto(::google::protobuf::Arena* arena)
::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.TensorShapeProto)
} }
TensorShapeProto::TensorShapeProto(const TensorShapeProto& from) TensorShapeProto::TensorShapeProto(const TensorShapeProto& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -505,7 +505,7 @@ TensorShapeProto::TensorShapeProto(const TensorShapeProto& from)
_cached_size_(0) { _cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
unknown_rank_ = from.unknown_rank_; unknown_rank_ = from.unknown_rank_;
// @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.TensorShapeProto)
} }
void TensorShapeProto::SharedCtor() { void TensorShapeProto::SharedCtor() {
@ -514,7 +514,7 @@ void TensorShapeProto::SharedCtor() {
} }
TensorShapeProto::~TensorShapeProto() { TensorShapeProto::~TensorShapeProto() {
// @@protoc_insertion_point(destructor:tensorflow.TensorShapeProto) // @@protoc_insertion_point(destructor:opencv_tensorflow.TensorShapeProto)
SharedDtor(); SharedDtor();
} }
@ -548,7 +548,7 @@ TensorShapeProto* TensorShapeProto::New(::google::protobuf::Arena* arena) const
} }
void TensorShapeProto::Clear() { void TensorShapeProto::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.TensorShapeProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -562,13 +562,13 @@ bool TensorShapeProto::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(parse_start:opencv_tensorflow.TensorShapeProto)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
case 2: { case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
@ -605,21 +605,21 @@ bool TensorShapeProto::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.TensorShapeProto) // @@protoc_insertion_point(parse_success:opencv_tensorflow.TensorShapeProto)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.TensorShapeProto) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.TensorShapeProto)
return false; return false;
#undef DO_ #undef DO_
} }
void TensorShapeProto::SerializeWithCachedSizes( void TensorShapeProto::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.TensorShapeProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->dim_size()); i < n; i++) { n = static_cast<unsigned int>(this->dim_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
@ -635,17 +635,17 @@ void TensorShapeProto::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.TensorShapeProto)
} }
::google::protobuf::uint8* TensorShapeProto::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* TensorShapeProto::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.TensorShapeProto)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->dim_size()); i < n; i++) { n = static_cast<unsigned int>(this->dim_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite:: target = ::google::protobuf::internal::WireFormatLite::
@ -662,12 +662,12 @@ void TensorShapeProto::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.TensorShapeProto)
return target; return target;
} }
size_t TensorShapeProto::ByteSizeLong() const { size_t TensorShapeProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.TensorShapeProto)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -675,7 +675,7 @@ size_t TensorShapeProto::ByteSizeLong() const {
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
} }
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
{ {
unsigned int count = static_cast<unsigned int>(this->dim_size()); unsigned int count = static_cast<unsigned int>(this->dim_size());
total_size += 1UL * count; total_size += 1UL * count;
@ -699,22 +699,22 @@ size_t TensorShapeProto::ByteSizeLong() const {
} }
void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) { void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.TensorShapeProto)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const TensorShapeProto* source = const TensorShapeProto* source =
::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto>( ::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorShapeProto) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.TensorShapeProto)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.TensorShapeProto)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void TensorShapeProto::MergeFrom(const TensorShapeProto& from) { void TensorShapeProto::MergeFrom(const TensorShapeProto& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.TensorShapeProto)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -727,14 +727,14 @@ void TensorShapeProto::MergeFrom(const TensorShapeProto& from) {
} }
void TensorShapeProto::CopyFrom(const ::google::protobuf::Message& from) { void TensorShapeProto::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.TensorShapeProto)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void TensorShapeProto::CopyFrom(const TensorShapeProto& from) { void TensorShapeProto::CopyFrom(const TensorShapeProto& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.TensorShapeProto)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -778,6 +778,6 @@ void TensorShapeProto::InternalSwap(TensorShapeProto* other) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -51,19 +51,19 @@ inline void InitDefaults() {
InitDefaultsTensorShapeProto(); InitDefaultsTensorShapeProto();
} }
} // namespace protobuf_tensor_5fshape_2eproto } // namespace protobuf_tensor_5fshape_2eproto
namespace tensorflow { namespace opencv_tensorflow {
class TensorShapeProto; class TensorShapeProto;
class TensorShapeProtoDefaultTypeInternal; class TensorShapeProtoDefaultTypeInternal;
extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_; extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
class TensorShapeProto_Dim; class TensorShapeProto_Dim;
class TensorShapeProto_DimDefaultTypeInternal; class TensorShapeProto_DimDefaultTypeInternal;
extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_; extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto.Dim) */ { class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto.Dim) */ {
public: public:
TensorShapeProto_Dim(); TensorShapeProto_Dim();
virtual ~TensorShapeProto_Dim(); virtual ~TensorShapeProto_Dim();
@ -186,7 +186,7 @@ class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_inse
::google::protobuf::int64 size() const; ::google::protobuf::int64 size() const;
void set_size(::google::protobuf::int64 value); void set_size(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim) // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto.Dim)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -201,7 +201,7 @@ class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_inse
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto) */ { class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto) */ {
public: public:
TensorShapeProto(); TensorShapeProto();
virtual ~TensorShapeProto(); virtual ~TensorShapeProto();
@ -297,16 +297,16 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
int dim_size() const; int dim_size() const;
void clear_dim(); void clear_dim();
static const int kDimFieldNumber = 2; static const int kDimFieldNumber = 2;
const ::tensorflow::TensorShapeProto_Dim& dim(int index) const; const ::opencv_tensorflow::TensorShapeProto_Dim& dim(int index) const;
::tensorflow::TensorShapeProto_Dim* mutable_dim(int index); ::opencv_tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
::tensorflow::TensorShapeProto_Dim* add_dim(); ::opencv_tensorflow::TensorShapeProto_Dim* add_dim();
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
mutable_dim(); mutable_dim();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
dim() const; dim() const;
// bool unknown_rank = 3; // bool unknown_rank = 3;
@ -315,14 +315,14 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio
bool unknown_rank() const; bool unknown_rank() const;
void set_unknown_rank(bool value); void set_unknown_rank(bool value);
// @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto) // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_; ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim > dim_;
bool unknown_rank_; bool unknown_rank_;
mutable int _cached_size_; mutable int _cached_size_;
friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct; friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;
@ -344,13 +344,13 @@ inline void TensorShapeProto_Dim::clear_size() {
size_ = GOOGLE_LONGLONG(0); size_ = GOOGLE_LONGLONG(0);
} }
inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const { inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.size)
return size_; return size_;
} }
inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) { inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) {
size_ = value; size_ = value;
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.size)
} }
// string name = 2; // string name = 2;
@ -358,20 +358,20 @@ inline void TensorShapeProto_Dim::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline const ::std::string& TensorShapeProto_Dim::name() const { inline const ::std::string& TensorShapeProto_Dim::name() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.name)
return name_.Get(); return name_.Get();
} }
inline void TensorShapeProto_Dim::set_name(const ::std::string& value) { inline void TensorShapeProto_Dim::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
#if LANG_CXX11 #if LANG_CXX11
inline void TensorShapeProto_Dim::set_name(::std::string&& value) { inline void TensorShapeProto_Dim::set_name(::std::string&& value) {
name_.Set( name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
#endif #endif
inline void TensorShapeProto_Dim::set_name(const char* value) { inline void TensorShapeProto_Dim::set_name(const char* value) {
@ -379,22 +379,22 @@ inline void TensorShapeProto_Dim::set_name(const char* value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
inline void TensorShapeProto_Dim::set_name(const char* value, inline void TensorShapeProto_Dim::set_name(const char* value,
size_t size) { size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
inline ::std::string* TensorShapeProto_Dim::mutable_name() { inline ::std::string* TensorShapeProto_Dim::mutable_name() {
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.Dim.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
inline ::std::string* TensorShapeProto_Dim::release_name() { inline ::std::string* TensorShapeProto_Dim::release_name() {
// @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorShapeProto.Dim.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
} }
@ -406,10 +406,10 @@ inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {
} }
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual()); GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorShapeProto.Dim.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@ -425,40 +425,40 @@ inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name(
} }
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual()); name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorShapeProto.Dim.name) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// TensorShapeProto // TensorShapeProto
// repeated .tensorflow.TensorShapeProto.Dim dim = 2; // repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
inline int TensorShapeProto::dim_size() const { inline int TensorShapeProto::dim_size() const {
return dim_.size(); return dim_.size();
} }
inline void TensorShapeProto::clear_dim() { inline void TensorShapeProto::clear_dim() {
dim_.Clear(); dim_.Clear();
} }
inline const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const { inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Get(index); return dim_.Get(index);
} }
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) { inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim) // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Mutable(index); return dim_.Mutable(index);
} }
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() { inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
// @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim) // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Add(); return dim_.Add();
} }
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
TensorShapeProto::mutable_dim() { TensorShapeProto::mutable_dim() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorShapeProto.dim)
return &dim_; return &dim_;
} }
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
TensorShapeProto::dim() const { TensorShapeProto::dim() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim) // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorShapeProto.dim)
return dim_; return dim_;
} }
@ -467,13 +467,13 @@ inline void TensorShapeProto::clear_unknown_rank() {
unknown_rank_ = false; unknown_rank_ = false;
} }
inline bool TensorShapeProto::unknown_rank() const { inline bool TensorShapeProto::unknown_rank() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank) // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.unknown_rank)
return unknown_rank_; return unknown_rank_;
} }
inline void TensorShapeProto::set_unknown_rank(bool value) { inline void TensorShapeProto::set_unknown_rank(bool value) {
unknown_rank_ = value; unknown_rank_ = value;
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank) // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.unknown_rank)
} }
#ifdef __GNUC__ #ifdef __GNUC__
@ -484,7 +484,7 @@ inline void TensorShapeProto::set_unknown_rank(bool value) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -19,8 +19,8 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_types_2eproto { namespace protobuf_types_2eproto {
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
@ -48,28 +48,28 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\013types.proto\022\ntensorflow*\234\005\n\010DataType\022\016" "\n\013types.proto\022\021opencv_tensorflow*\234\005\n\010Dat"
"\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_DOUBL" "aType\022\016\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tD"
"E\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010DT_IN" "T_DOUBLE\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014"
"T16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020\n\014DT_" "\n\010DT_INT16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007"
"COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOOL\020\n\022\014" "\022\020\n\014DT_COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_B"
"\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_QINT32" "OOL\020\n\022\014\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT"
"\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022\016\n\nDT" "_QINT32\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020"
"_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COMPLEX1" "\017\022\016\n\nDT_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_C"
"28\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rD" "OMPLEX128\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF"
"T_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_U" "\020e\022\021\n\rDT_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022"
"INT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_" "\020\n\014DT_UINT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013D"
"REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_COMPLEX64" "T_INT8_REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_CO"
"_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020" "MPLEX64_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BO"
"n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021" "OL_REF\020n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_"
"\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021" "REF\020p\022\021\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_"
"\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n" "REF\020r\022\021\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_R"
"\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022" "EF\020t\022\021\n\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128"
"\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflow.frame" "_REF\020v\022\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflo"
"workB\013TypesProtosP\001\370\001\001b\006proto3" "w.frameworkB\013TypesProtosP\001\370\001\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 750); descriptor, 757);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"types.proto", &protobuf_RegisterTypes); "types.proto", &protobuf_RegisterTypes);
} }
@ -85,7 +85,7 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_types_2eproto } // namespace protobuf_types_2eproto
namespace tensorflow { namespace opencv_tensorflow {
const ::google::protobuf::EnumDescriptor* DataType_descriptor() { const ::google::protobuf::EnumDescriptor* DataType_descriptor() {
protobuf_types_2eproto::protobuf_AssignDescriptorsOnce(); protobuf_types_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_types_2eproto::file_level_enum_descriptors[0]; return protobuf_types_2eproto::file_level_enum_descriptors[0];
@ -139,6 +139,6 @@ bool DataType_IsValid(int value) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -44,9 +44,9 @@ void AddDescriptors();
inline void InitDefaults() { inline void InitDefaults() {
} }
} // namespace protobuf_types_2eproto } // namespace protobuf_types_2eproto
namespace tensorflow { namespace opencv_tensorflow {
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
enum DataType { enum DataType {
DT_INVALID = 0, DT_INVALID = 0,
@ -124,15 +124,15 @@ inline bool DataType_Parse(
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
namespace google { namespace google {
namespace protobuf { namespace protobuf {
template <> struct is_proto_enum< ::tensorflow::DataType> : ::google::protobuf::internal::true_type {}; template <> struct is_proto_enum< ::opencv_tensorflow::DataType> : ::google::protobuf::internal::true_type {};
template <> template <>
inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() { inline const EnumDescriptor* GetEnumDescriptor< ::opencv_tensorflow::DataType>() {
return ::tensorflow::DataType_descriptor(); return ::opencv_tensorflow::DataType_descriptor();
} }
} // namespace protobuf } // namespace protobuf

View File

@ -19,13 +19,13 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
class VersionDefDefaultTypeInternal { class VersionDefDefaultTypeInternal {
public: public:
::google::protobuf::internal::ExplicitlyConstructed<VersionDef> ::google::protobuf::internal::ExplicitlyConstructed<VersionDef>
_instance; _instance;
} _VersionDef_default_instance_; } _VersionDef_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_versions_2eproto { namespace protobuf_versions_2eproto {
void InitDefaultsVersionDefImpl() { void InitDefaultsVersionDefImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION; GOOGLE_PROTOBUF_VERIFY_VERSION;
@ -36,11 +36,11 @@ void InitDefaultsVersionDefImpl() {
::google::protobuf::internal::InitProtobufDefaults(); ::google::protobuf::internal::InitProtobufDefaults();
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
{ {
void* ptr = &::tensorflow::_VersionDef_default_instance_; void* ptr = &::opencv_tensorflow::_VersionDef_default_instance_;
new (ptr) ::tensorflow::VersionDef(); new (ptr) ::opencv_tensorflow::VersionDef();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
} }
::tensorflow::VersionDef::InitAsDefaultInstance(); ::opencv_tensorflow::VersionDef::InitAsDefaultInstance();
} }
void InitDefaultsVersionDef() { void InitDefaultsVersionDef() {
@ -52,20 +52,20 @@ void InitDefaultsVersionDef() {
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_ ~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, producer_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, producer_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, min_consumer_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, min_consumer_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, bad_consumers_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::VersionDef, bad_consumers_),
}; };
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tensorflow::VersionDef)}, { 0, -1, sizeof(::opencv_tensorflow::VersionDef)},
}; };
static ::google::protobuf::Message const * const file_default_instances[] = { static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::tensorflow::_VersionDef_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_VersionDef_default_instance_),
}; };
void protobuf_AssignDescriptors() { void protobuf_AssignDescriptors() {
@ -90,14 +90,14 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\016versions.proto\022\ntensorflow\"K\n\nVersionD" "\n\016versions.proto\022\021opencv_tensorflow\"K\n\nV"
"ef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001" "ersionDef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consu"
"(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org.tensorf" "mer\030\002 \001(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org."
"low.frameworkB\016VersionsProtosP\001\370\001\001b\006prot" "tensorflow.frameworkB\016VersionsProtosP\001\370\001"
"o3" "\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 162); descriptor, 169);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"versions.proto", &protobuf_RegisterTypes); "versions.proto", &protobuf_RegisterTypes);
} }
@ -113,7 +113,7 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_versions_2eproto } // namespace protobuf_versions_2eproto
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
@ -131,7 +131,7 @@ VersionDef::VersionDef()
::protobuf_versions_2eproto::InitDefaultsVersionDef(); ::protobuf_versions_2eproto::InitDefaultsVersionDef();
} }
SharedCtor(); SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.VersionDef) // @@protoc_insertion_point(constructor:opencv_tensorflow.VersionDef)
} }
VersionDef::VersionDef(::google::protobuf::Arena* arena) VersionDef::VersionDef(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -140,7 +140,7 @@ VersionDef::VersionDef(::google::protobuf::Arena* arena)
::protobuf_versions_2eproto::InitDefaultsVersionDef(); ::protobuf_versions_2eproto::InitDefaultsVersionDef();
SharedCtor(); SharedCtor();
RegisterArenaDtor(arena); RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.VersionDef) // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.VersionDef)
} }
VersionDef::VersionDef(const VersionDef& from) VersionDef::VersionDef(const VersionDef& from)
: ::google::protobuf::Message(), : ::google::protobuf::Message(),
@ -151,7 +151,7 @@ VersionDef::VersionDef(const VersionDef& from)
::memcpy(&producer_, &from.producer_, ::memcpy(&producer_, &from.producer_,
static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) - static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) -
reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_)); reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_));
// @@protoc_insertion_point(copy_constructor:tensorflow.VersionDef) // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.VersionDef)
} }
void VersionDef::SharedCtor() { void VersionDef::SharedCtor() {
@ -162,7 +162,7 @@ void VersionDef::SharedCtor() {
} }
VersionDef::~VersionDef() { VersionDef::~VersionDef() {
// @@protoc_insertion_point(destructor:tensorflow.VersionDef) // @@protoc_insertion_point(destructor:opencv_tensorflow.VersionDef)
SharedDtor(); SharedDtor();
} }
@ -196,7 +196,7 @@ VersionDef* VersionDef::New(::google::protobuf::Arena* arena) const {
} }
void VersionDef::Clear() { void VersionDef::Clear() {
// @@protoc_insertion_point(message_clear_start:tensorflow.VersionDef) // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.VersionDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
@ -212,7 +212,7 @@ bool VersionDef::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) { ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag; ::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.VersionDef) // @@protoc_insertion_point(parse_start:opencv_tensorflow.VersionDef)
for (;;) { for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first; tag = p.first;
@ -277,17 +277,17 @@ bool VersionDef::MergePartialFromCodedStream(
} }
} }
success: success:
// @@protoc_insertion_point(parse_success:tensorflow.VersionDef) // @@protoc_insertion_point(parse_success:opencv_tensorflow.VersionDef)
return true; return true;
failure: failure:
// @@protoc_insertion_point(parse_failure:tensorflow.VersionDef) // @@protoc_insertion_point(parse_failure:opencv_tensorflow.VersionDef)
return false; return false;
#undef DO_ #undef DO_
} }
void VersionDef::SerializeWithCachedSizes( void VersionDef::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const { ::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:tensorflow.VersionDef) // @@protoc_insertion_point(serialize_start:opencv_tensorflow.VersionDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -316,13 +316,13 @@ void VersionDef::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields( ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
} }
// @@protoc_insertion_point(serialize_end:tensorflow.VersionDef) // @@protoc_insertion_point(serialize_end:opencv_tensorflow.VersionDef)
} }
::google::protobuf::uint8* VersionDef::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* VersionDef::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const { bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused (void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.VersionDef) // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.VersionDef)
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
@ -353,12 +353,12 @@ void VersionDef::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
} }
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.VersionDef) // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.VersionDef)
return target; return target;
} }
size_t VersionDef::ByteSizeLong() const { size_t VersionDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:tensorflow.VersionDef) // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.VersionDef)
size_t total_size = 0; size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -404,22 +404,22 @@ size_t VersionDef::ByteSizeLong() const {
} }
void VersionDef::MergeFrom(const ::google::protobuf::Message& from) { void VersionDef::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.VersionDef) // @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.VersionDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
const VersionDef* source = const VersionDef* source =
::google::protobuf::internal::DynamicCastToGenerated<const VersionDef>( ::google::protobuf::internal::DynamicCastToGenerated<const VersionDef>(
&from); &from);
if (source == NULL) { if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.VersionDef) // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.VersionDef)
::google::protobuf::internal::ReflectionOps::Merge(from, this); ::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else { } else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.VersionDef) // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.VersionDef)
MergeFrom(*source); MergeFrom(*source);
} }
} }
void VersionDef::MergeFrom(const VersionDef& from) { void VersionDef::MergeFrom(const VersionDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.VersionDef) // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.VersionDef)
GOOGLE_DCHECK_NE(&from, this); GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0; ::google::protobuf::uint32 cached_has_bits = 0;
@ -435,14 +435,14 @@ void VersionDef::MergeFrom(const VersionDef& from) {
} }
void VersionDef::CopyFrom(const ::google::protobuf::Message& from) { void VersionDef::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.VersionDef) // @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.VersionDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
} }
void VersionDef::CopyFrom(const VersionDef& from) { void VersionDef::CopyFrom(const VersionDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.VersionDef) // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.VersionDef)
if (&from == this) return; if (&from == this) return;
Clear(); Clear();
MergeFrom(from); MergeFrom(from);
@ -487,6 +487,6 @@ void VersionDef::InternalSwap(VersionDef* other) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -48,16 +48,16 @@ inline void InitDefaults() {
InitDefaultsVersionDef(); InitDefaultsVersionDef();
} }
} // namespace protobuf_versions_2eproto } // namespace protobuf_versions_2eproto
namespace tensorflow { namespace opencv_tensorflow {
class VersionDef; class VersionDef;
class VersionDefDefaultTypeInternal; class VersionDefDefaultTypeInternal;
extern VersionDefDefaultTypeInternal _VersionDef_default_instance_; extern VersionDefDefaultTypeInternal _VersionDef_default_instance_;
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
// =================================================================== // ===================================================================
class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VersionDef) */ { class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.VersionDef) */ {
public: public:
VersionDef(); VersionDef();
virtual ~VersionDef(); virtual ~VersionDef();
@ -175,7 +175,7 @@ class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_poin
::google::protobuf::int32 min_consumer() const; ::google::protobuf::int32 min_consumer() const;
void set_min_consumer(::google::protobuf::int32 value); void set_min_consumer(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:tensorflow.VersionDef) // @@protoc_insertion_point(class_scope:opencv_tensorflow.VersionDef)
private: private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
@ -206,13 +206,13 @@ inline void VersionDef::clear_producer() {
producer_ = 0; producer_ = 0;
} }
inline ::google::protobuf::int32 VersionDef::producer() const { inline ::google::protobuf::int32 VersionDef::producer() const {
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer) // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.producer)
return producer_; return producer_;
} }
inline void VersionDef::set_producer(::google::protobuf::int32 value) { inline void VersionDef::set_producer(::google::protobuf::int32 value) {
producer_ = value; producer_ = value;
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer) // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.producer)
} }
// int32 min_consumer = 2; // int32 min_consumer = 2;
@ -220,13 +220,13 @@ inline void VersionDef::clear_min_consumer() {
min_consumer_ = 0; min_consumer_ = 0;
} }
inline ::google::protobuf::int32 VersionDef::min_consumer() const { inline ::google::protobuf::int32 VersionDef::min_consumer() const {
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer) // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.min_consumer)
return min_consumer_; return min_consumer_;
} }
inline void VersionDef::set_min_consumer(::google::protobuf::int32 value) { inline void VersionDef::set_min_consumer(::google::protobuf::int32 value) {
min_consumer_ = value; min_consumer_ = value;
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer) // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.min_consumer)
} }
// repeated int32 bad_consumers = 3; // repeated int32 bad_consumers = 3;
@ -237,25 +237,25 @@ inline void VersionDef::clear_bad_consumers() {
bad_consumers_.Clear(); bad_consumers_.Clear();
} }
inline ::google::protobuf::int32 VersionDef::bad_consumers(int index) const { inline ::google::protobuf::int32 VersionDef::bad_consumers(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers) // @@protoc_insertion_point(field_get:opencv_tensorflow.VersionDef.bad_consumers)
return bad_consumers_.Get(index); return bad_consumers_.Get(index);
} }
inline void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) { inline void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) {
bad_consumers_.Set(index, value); bad_consumers_.Set(index, value);
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers) // @@protoc_insertion_point(field_set:opencv_tensorflow.VersionDef.bad_consumers)
} }
inline void VersionDef::add_bad_consumers(::google::protobuf::int32 value) { inline void VersionDef::add_bad_consumers(::google::protobuf::int32 value) {
bad_consumers_.Add(value); bad_consumers_.Add(value);
// @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers) // @@protoc_insertion_point(field_add:opencv_tensorflow.VersionDef.bad_consumers)
} }
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
VersionDef::bad_consumers() const { VersionDef::bad_consumers() const {
// @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers) // @@protoc_insertion_point(field_list:opencv_tensorflow.VersionDef.bad_consumers)
return bad_consumers_; return bad_consumers_;
} }
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
VersionDef::mutable_bad_consumers() { VersionDef::mutable_bad_consumers() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers) // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.VersionDef.bad_consumers)
return &bad_consumers_; return &bad_consumers_;
} }
@ -265,7 +265,7 @@ VersionDef::mutable_bad_consumers() {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "AttrValueProtos"; option java_outer_classname = "AttrValueProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "FunctionProtos"; option java_outer_classname = "FunctionProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "GraphProtos"; option java_outer_classname = "GraphProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "OpDefProtos"; option java_outer_classname = "OpDefProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "TensorProtos"; option java_outer_classname = "TensorProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -6,7 +6,7 @@ option java_outer_classname = "TensorShapeProtos";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.tensorflow.framework"; option java_package = "org.tensorflow.framework";
package tensorflow; package opencv_tensorflow;
// Dimensions of a tensor. // Dimensions of a tensor.
message TensorShapeProto { message TensorShapeProto {

View File

@ -26,6 +26,7 @@ Declaration of various functions which are related to Tensorflow models reading.
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
namespace tensorflow { using namespace opencv_tensorflow; }
namespace cv { namespace cv {
namespace dnn { namespace dnn {

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "TypesProtos"; option java_outer_classname = "TypesProtos";
option java_multiple_files = true; option java_multiple_files = true;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "VersionsProtos"; option java_outer_classname = "VersionsProtos";
option java_multiple_files = true; option java_multiple_files = true;