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

View File

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

View File

@ -60,7 +60,7 @@ inline void InitDefaults() {
InitDefaultsNodeDef();
}
} // namespace protobuf_graph_2eproto
namespace tensorflow {
namespace opencv_tensorflow {
class GraphDef;
class GraphDefDefaultTypeInternal;
extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;
@ -70,12 +70,12 @@ extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;
class NodeDef_AttrEntry_DoNotUse;
class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;
extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
} // namespace tensorflow
namespace tensorflow {
} // namespace opencv_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:
GraphDef();
virtual ~GraphDef();
@ -169,47 +169,47 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(
// accessors -------------------------------------------------------
// repeated .tensorflow.NodeDef node = 1;
// repeated .opencv_tensorflow.NodeDef node = 1;
int node_size() const;
void clear_node();
static const int kNodeFieldNumber = 1;
const ::tensorflow::NodeDef& node(int index) const;
::tensorflow::NodeDef* mutable_node(int index);
::tensorflow::NodeDef* add_node();
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >*
const ::opencv_tensorflow::NodeDef& node(int index) const;
::opencv_tensorflow::NodeDef* mutable_node(int index);
::opencv_tensorflow::NodeDef* add_node();
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
mutable_node();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >&
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
node() const;
// .tensorflow.FunctionDefLibrary library = 2;
// .opencv_tensorflow.FunctionDefLibrary library = 2;
bool has_library() const;
void clear_library();
static const int kLibraryFieldNumber = 2;
private:
void _slow_mutable_library();
public:
const ::tensorflow::FunctionDefLibrary& library() const;
::tensorflow::FunctionDefLibrary* release_library();
::tensorflow::FunctionDefLibrary* mutable_library();
void set_allocated_library(::tensorflow::FunctionDefLibrary* library);
const ::opencv_tensorflow::FunctionDefLibrary& library() const;
::opencv_tensorflow::FunctionDefLibrary* release_library();
::opencv_tensorflow::FunctionDefLibrary* mutable_library();
void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library);
void unsafe_arena_set_allocated_library(
::tensorflow::FunctionDefLibrary* library);
::tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
::opencv_tensorflow::FunctionDefLibrary* library);
::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
// .tensorflow.VersionDef versions = 4;
// .opencv_tensorflow.VersionDef versions = 4;
bool has_versions() const;
void clear_versions();
static const int kVersionsFieldNumber = 4;
private:
void _slow_mutable_versions();
public:
const ::tensorflow::VersionDef& versions() const;
::tensorflow::VersionDef* release_versions();
::tensorflow::VersionDef* mutable_versions();
void set_allocated_versions(::tensorflow::VersionDef* versions);
const ::opencv_tensorflow::VersionDef& versions() const;
::opencv_tensorflow::VersionDef* release_versions();
::opencv_tensorflow::VersionDef* mutable_versions();
void set_allocated_versions(::opencv_tensorflow::VersionDef* versions);
void unsafe_arena_set_allocated_versions(
::tensorflow::VersionDef* versions);
::tensorflow::VersionDef* unsafe_arena_release_versions();
::opencv_tensorflow::VersionDef* versions);
::opencv_tensorflow::VersionDef* unsafe_arena_release_versions();
// int32 version = 3 [deprecated = true];
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 void set_version(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:tensorflow.GraphDef)
// @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_;
::tensorflow::FunctionDefLibrary* library_;
::tensorflow::VersionDef* versions_;
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_;
::opencv_tensorflow::FunctionDefLibrary* library_;
::opencv_tensorflow::VersionDef* versions_;
::google::protobuf::int32 version_;
mutable int _cached_size_;
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,
::std::string, ::tensorflow::AttrValue,
::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > {
public:
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_MESSAGE,
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:
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;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();
// map<string, .tensorflow.AttrValue> attr = 5;
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
int attr_size() const;
void clear_attr();
static const int kAttrFieldNumber = 5;
const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >&
const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
attr() const;
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >*
::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
mutable_attr();
// string name = 1;
@ -450,7 +450,7 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
void unsafe_arena_set_allocated_device(
::std::string* device);
// @@protoc_insertion_point(class_scope:tensorflow.NodeDef)
// @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef)
private:
::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::internal::MapField<
NodeDef_AttrEntry_DoNotUse,
::std::string, ::tensorflow::AttrValue,
::std::string, ::opencv_tensorflow::AttrValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > attr_;
@ -482,72 +482,72 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c
#endif // __GNUC__
// GraphDef
// repeated .tensorflow.NodeDef node = 1;
// repeated .opencv_tensorflow.NodeDef node = 1;
inline int GraphDef::node_size() const {
return node_.size();
}
inline void GraphDef::clear_node() {
node_.Clear();
}
inline const ::tensorflow::NodeDef& GraphDef::node(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.node)
inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node)
return node_.Get(index);
}
inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node)
inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) {
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node)
return node_.Mutable(index);
}
inline ::tensorflow::NodeDef* GraphDef::add_node() {
// @@protoc_insertion_point(field_add:tensorflow.GraphDef.node)
inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() {
// @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node)
return node_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >*
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
GraphDef::mutable_node() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node)
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node)
return &node_;
}
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >&
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
GraphDef::node() const {
// @@protoc_insertion_point(field_list:tensorflow.GraphDef.node)
// @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node)
return node_;
}
// .tensorflow.VersionDef versions = 4;
// .opencv_tensorflow.VersionDef versions = 4;
inline bool GraphDef::has_versions() const {
return this != internal_default_instance() && versions_ != NULL;
}
inline const ::tensorflow::VersionDef& GraphDef::versions() const {
const ::tensorflow::VersionDef* p = versions_;
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>(
&::tensorflow::_VersionDef_default_instance_);
inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const {
const ::opencv_tensorflow::VersionDef* p = versions_;
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions)
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::VersionDef*>(
&::opencv_tensorflow::_VersionDef_default_instance_);
}
inline ::tensorflow::VersionDef* GraphDef::release_versions() {
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions)
inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions)
::tensorflow::VersionDef* temp = versions_;
::opencv_tensorflow::VersionDef* temp = versions_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
}
versions_ = NULL;
return temp;
}
inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions)
inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.versions)
::tensorflow::VersionDef* temp = versions_;
::opencv_tensorflow::VersionDef* temp = versions_;
versions_ = NULL;
return temp;
}
inline ::tensorflow::VersionDef* GraphDef::mutable_versions() {
inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() {
if (versions_ == NULL) {
_slow_mutable_versions();
}
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions)
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.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();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_);
@ -564,7 +564,7 @@ inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* 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];
@ -572,51 +572,51 @@ inline void GraphDef::clear_version() {
version_ = 0;
}
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_;
}
inline void GraphDef::set_version(::google::protobuf::int32 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 {
return this != internal_default_instance() && library_ != NULL;
}
inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const {
const ::tensorflow::FunctionDefLibrary* p = library_;
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.library)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::FunctionDefLibrary*>(
&::tensorflow::_FunctionDefLibrary_default_instance_);
inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const {
const ::opencv_tensorflow::FunctionDefLibrary* p = library_;
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library)
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary*>(
&::opencv_tensorflow::_FunctionDefLibrary_default_instance_);
}
inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() {
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.library)
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library)
::tensorflow::FunctionDefLibrary* temp = library_;
::opencv_tensorflow::FunctionDefLibrary* temp = library_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
}
library_ = NULL;
return temp;
}
inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library)
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.library)
::tensorflow::FunctionDefLibrary* temp = library_;
::opencv_tensorflow::FunctionDefLibrary* temp = library_;
library_ = NULL;
return temp;
}
inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
if (library_ == NULL) {
_slow_mutable_library();
}
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library)
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.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();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_);
@ -633,7 +633,7 @@ inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* li
}
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());
}
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();
}
inline void NodeDef::set_name(const ::std::string& value) {
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
inline void NodeDef::set_name(::std::string&& value) {
name_.Set(
&::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
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),
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,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
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() {
// @@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());
}
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());
}
@ -695,10 +695,10 @@ inline void NodeDef::set_allocated_name(::std::string* name) {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
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() {
// @@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);
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, 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;
@ -722,20 +722,20 @@ inline void NodeDef::clear_op() {
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
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();
}
inline void NodeDef::set_op(const ::std::string& value) {
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
inline void NodeDef::set_op(::std::string&& value) {
op_.Set(
&::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
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),
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,
size_t size) {
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
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() {
// @@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());
}
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());
}
@ -770,10 +770,10 @@ inline void NodeDef::set_allocated_op(::std::string* op) {
}
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
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() {
// @@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);
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, 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;
@ -800,64 +800,64 @@ inline void NodeDef::clear_input() {
input_.Clear();
}
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);
}
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);
}
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);
}
#if LANG_CXX11
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));
}
#endif
inline void NodeDef::set_input(int index, const char* value) {
GOOGLE_DCHECK(value != NULL);
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) {
input_.Mutable(index)->assign(
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() {
// @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input)
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input)
return input_.Add();
}
inline void NodeDef::add_input(const ::std::string& 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
inline void NodeDef::add_input(::std::string&& value) {
input_.Add(std::move(value));
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
// @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
}
#endif
inline void NodeDef::add_input(const char* value) {
GOOGLE_DCHECK(value != NULL);
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) {
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>&
NodeDef::input() const {
// @@protoc_insertion_point(field_list:tensorflow.NodeDef.input)
// @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input)
return input_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
NodeDef::mutable_input() {
// @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input)
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input)
return &input_;
}
@ -866,20 +866,20 @@ inline void NodeDef::clear_device() {
device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
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();
}
inline void NodeDef::set_device(const ::std::string& value) {
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
inline void NodeDef::set_device(::std::string&& value) {
device_.Set(
&::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
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),
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,
size_t size) {
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
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() {
// @@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());
}
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());
}
@ -914,10 +914,10 @@ inline void NodeDef::set_allocated_device(::std::string* device) {
}
device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device,
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() {
// @@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);
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, 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 {
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 {
// @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr)
// @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr)
return attr_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >*
inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
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();
}
@ -961,7 +961,7 @@ NodeDef::mutable_attr() {
// @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow
} // namespace opencv_tensorflow
// @@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"
#endif
// @@protoc_insertion_point(includes)
namespace tensorflow {
namespace opencv_tensorflow {
class TensorProtoDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<TensorProto>
_instance;
} _TensorProto_default_instance_;
} // namespace tensorflow
} // namespace opencv_tensorflow
namespace protobuf_tensor_2eproto {
void InitDefaultsTensorProtoImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
@ -37,11 +37,11 @@ void InitDefaultsTensorProtoImpl() {
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto();
{
void* ptr = &::tensorflow::_TensorProto_default_instance_;
new (ptr) ::tensorflow::TensorProto();
void* ptr = &::opencv_tensorflow::_TensorProto_default_instance_;
new (ptr) ::opencv_tensorflow::TensorProto();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::tensorflow::TensorProto::InitAsDefaultInstance();
::opencv_tensorflow::TensorProto::InitAsDefaultInstance();
}
void InitDefaultsTensorProto() {
@ -53,30 +53,30 @@ void InitDefaultsTensorProto() {
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~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 _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dtype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_shape_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, version_number_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_content_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, half_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, float_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, double_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, string_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, scomplex_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int64_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, bool_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dcomplex_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, dtype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, tensor_shape_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, version_number_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, tensor_content_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, half_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, float_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, double_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, int_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, string_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, scomplex_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, int64_val_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::TensorProto, bool_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) = {
{ 0, -1, sizeof(::tensorflow::TensorProto)},
{ 0, -1, sizeof(::opencv_tensorflow::TensorProto)},
};
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() {
@ -101,21 +101,22 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\014tensor.proto\022\ntensorflow\032\022tensor_shape"
".proto\032\013types.proto\"\345\002\n\013TensorProto\022#\n\005d"
"type\030\001 \001(\0162\024.tensorflow.DataType\0222\n\014tens"
"or_shape\030\002 \001(\0132\034.tensorflow.TensorShapeP"
"roto\022\026\n\016version_number\030\003 \001(\005\022\026\n\016tensor_c"
"ontent\030\004 \001(\014\022\024\n\010half_val\030\r \003(\005B\002\020\001\022\025\n\tfl"
"oat_val\030\005 \003(\002B\002\020\001\022\026\n\ndouble_val\030\006 \003(\001B\002\020"
"\001\022\023\n\007int_val\030\007 \003(\005B\002\020\001\022\022\n\nstring_val\030\010 \003"
"(\014\022\030\n\014scomplex_val\030\t \003(\002B\002\020\001\022\025\n\tint64_va"
"l\030\n \003(\003B\002\020\001\022\024\n\010bool_val\030\013 \003(\010B\002\020\001\022\030\n\014dco"
"mplex_val\030\014 \003(\001B\002\020\001B-\n\030org.tensorflow.fr"
"ameworkB\014TensorProtosP\001\370\001\001b\006proto3"
"\n\014tensor.proto\022\021opencv_tensorflow\032\022tenso"
"r_shape.proto\032\013types.proto\"\363\002\n\013TensorPro"
"to\022*\n\005dtype\030\001 \001(\0162\033.opencv_tensorflow.Da"
"taType\0229\n\014tensor_shape\030\002 \001(\0132#.opencv_te"
"nsorflow.TensorShapeProto\022\026\n\016version_num"
"ber\030\003 \001(\005\022\026\n\016tensor_content\030\004 \001(\014\022\024\n\010hal"
"f_val\030\r \003(\005B\002\020\001\022\025\n\tfloat_val\030\005 \003(\002B\002\020\001\022\026"
"\n\ndouble_val\030\006 \003(\001B\002\020\001\022\023\n\007int_val\030\007 \003(\005B"
"\002\020\001\022\022\n\nstring_val\030\010 \003(\014\022\030\n\014scomplex_val\030"
"\t \003(\002B\002\020\001\022\025\n\tint64_val\030\n \003(\003B\002\020\001\022\024\n\010bool"
"_val\030\013 \003(\010B\002\020\001\022\030\n\014dcomplex_val\030\014 \003(\001B\002\020\001"
"B-\n\030org.tensorflow.frameworkB\014TensorProt"
"osP\001\370\001\001b\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 474);
descriptor, 495);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"tensor.proto", &protobuf_RegisterTypes);
::protobuf_tensor_5fshape_2eproto::AddDescriptors();
@ -133,20 +134,20 @@ struct StaticDescriptorInitializer {
}
} static_descriptor_initializer;
} // namespace protobuf_tensor_2eproto
namespace tensorflow {
namespace opencv_tensorflow {
// ===================================================================
void TensorProto::InitAsDefaultInstance() {
::tensorflow::_TensorProto_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>(
::tensorflow::TensorShapeProto::internal_default_instance());
::opencv_tensorflow::_TensorProto_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::opencv_tensorflow::TensorShapeProto*>(
::opencv_tensorflow::TensorShapeProto::internal_default_instance());
}
void TensorProto::_slow_mutable_tensor_shape() {
tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >(
tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::TensorShapeProto >(
GetArenaNoVirtual());
}
void TensorProto::unsafe_arena_set_allocated_tensor_shape(
::tensorflow::TensorShapeProto* tensor_shape) {
::opencv_tensorflow::TensorShapeProto* tensor_shape) {
if (GetArenaNoVirtual() == NULL) {
delete tensor_shape_;
}
@ -156,7 +157,7 @@ void TensorProto::unsafe_arena_set_allocated_tensor_shape(
} 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() {
if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) {
@ -186,7 +187,7 @@ TensorProto::TensorProto()
::protobuf_tensor_2eproto::InitDefaultsTensorProto();
}
SharedCtor();
// @@protoc_insertion_point(constructor:tensorflow.TensorProto)
// @@protoc_insertion_point(constructor:opencv_tensorflow.TensorProto)
}
TensorProto::TensorProto(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(),
@ -203,7 +204,7 @@ TensorProto::TensorProto(::google::protobuf::Arena* arena)
::protobuf_tensor_2eproto::InitDefaultsTensorProto();
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorProto)
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.TensorProto)
}
TensorProto::TensorProto(const TensorProto& from)
: ::google::protobuf::Message(),
@ -225,14 +226,14 @@ TensorProto::TensorProto(const TensorProto& from)
GetArenaNoVirtual());
}
if (from.has_tensor_shape()) {
tensor_shape_ = new ::tensorflow::TensorShapeProto(*from.tensor_shape_);
tensor_shape_ = new ::opencv_tensorflow::TensorShapeProto(*from.tensor_shape_);
} else {
tensor_shape_ = NULL;
}
::memcpy(&dtype_, &from.dtype_,
static_cast<size_t>(reinterpret_cast<char*>(&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() {
@ -244,7 +245,7 @@ void TensorProto::SharedCtor() {
}
TensorProto::~TensorProto() {
// @@protoc_insertion_point(destructor:tensorflow.TensorProto)
// @@protoc_insertion_point(destructor:opencv_tensorflow.TensorProto)
SharedDtor();
}
@ -280,7 +281,7 @@ TensorProto* TensorProto::New(::google::protobuf::Arena* arena) const {
}
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;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@ -309,13 +310,13 @@ bool TensorProto::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:tensorflow.TensorProto)
// @@protoc_insertion_point(parse_start:opencv_tensorflow.TensorProto)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
@ -323,14 +324,14 @@ bool TensorProto::MergePartialFromCodedStream(
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
set_dtype(static_cast< ::tensorflow::DataType >(value));
set_dtype(static_cast< ::opencv_tensorflow::DataType >(value));
} else {
goto handle_unusual;
}
break;
}
// .tensorflow.TensorShapeProto tensor_shape = 2;
// .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
@ -544,27 +545,27 @@ bool TensorProto::MergePartialFromCodedStream(
}
}
success:
// @@protoc_insertion_point(parse_success:tensorflow.TensorProto)
// @@protoc_insertion_point(parse_success:opencv_tensorflow.TensorProto)
return true;
failure:
// @@protoc_insertion_point(parse_failure:tensorflow.TensorProto)
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.TensorProto)
return false;
#undef DO_
}
void TensorProto::SerializeWithCachedSizes(
::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;
(void) cached_has_bits;
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->dtype(), output);
}
// .tensorflow.TensorShapeProto tensor_shape = 2;
// .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->tensor_shape_, output);
@ -669,23 +670,23 @@ void TensorProto::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::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(
bool deterministic, ::google::protobuf::uint8* target) const {
(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;
(void) cached_has_bits;
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->dtype(), target);
}
// .tensorflow.TensorShapeProto tensor_shape = 2;
// .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
@ -818,12 +819,12 @@ void TensorProto::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::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;
}
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;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@ -974,14 +975,14 @@ size_t TensorProto::ByteSizeLong() const {
this->tensor_content());
}
// .tensorflow.TensorShapeProto tensor_shape = 2;
// .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
if (this->has_tensor_shape()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->tensor_shape_);
}
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
if (this->dtype() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype());
@ -1002,22 +1003,22 @@ size_t TensorProto::ByteSizeLong() const {
}
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);
const TensorProto* source =
::google::protobuf::internal::DynamicCastToGenerated<const TensorProto>(
&from);
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);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorProto)
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.TensorProto)
MergeFrom(*source);
}
}
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);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
@ -1036,7 +1037,7 @@ void TensorProto::MergeFrom(const TensorProto& from) {
set_tensor_content(from.tensor_content());
}
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) {
set_dtype(from.dtype());
@ -1047,14 +1048,14 @@ void TensorProto::MergeFrom(const TensorProto& 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;
Clear();
MergeFrom(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;
Clear();
MergeFrom(from);
@ -1109,6 +1110,6 @@ void TensorProto::InternalSwap(TensorProto* other) {
// @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow
} // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope)

View File

@ -50,16 +50,16 @@ inline void InitDefaults() {
InitDefaultsTensorProto();
}
} // namespace protobuf_tensor_2eproto
namespace tensorflow {
namespace opencv_tensorflow {
class TensorProto;
class TensorProtoDefaultTypeInternal;
extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
} // namespace tensorflow
namespace tensorflow {
} // namespace opencv_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:
TensorProto();
virtual ~TensorProto();
@ -294,26 +294,26 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
void unsafe_arena_set_allocated_tensor_content(
::std::string* tensor_content);
// .tensorflow.TensorShapeProto tensor_shape = 2;
// .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
bool has_tensor_shape() const;
void clear_tensor_shape();
static const int kTensorShapeFieldNumber = 2;
private:
void _slow_mutable_tensor_shape();
public:
const ::tensorflow::TensorShapeProto& tensor_shape() const;
::tensorflow::TensorShapeProto* release_tensor_shape();
::tensorflow::TensorShapeProto* mutable_tensor_shape();
void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape);
const ::opencv_tensorflow::TensorShapeProto& tensor_shape() const;
::opencv_tensorflow::TensorShapeProto* release_tensor_shape();
::opencv_tensorflow::TensorShapeProto* mutable_tensor_shape();
void set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape);
void unsafe_arena_set_allocated_tensor_shape(
::tensorflow::TensorShapeProto* tensor_shape);
::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
::opencv_tensorflow::TensorShapeProto* tensor_shape);
::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
void clear_dtype();
static const int kDtypeFieldNumber = 1;
::tensorflow::DataType dtype() const;
void set_dtype(::tensorflow::DataType value);
::opencv_tensorflow::DataType dtype() const;
void set_dtype(::opencv_tensorflow::DataType value);
// int32 version_number = 3;
void clear_version_number();
@ -321,7 +321,7 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
::google::protobuf::int32 version_number() const;
void set_version_number(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:tensorflow.TensorProto)
// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorProto)
private:
::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_;
mutable int _half_val_cached_byte_size_;
::google::protobuf::internal::ArenaStringPtr tensor_content_;
::tensorflow::TensorShapeProto* tensor_shape_;
::opencv_tensorflow::TensorShapeProto* tensor_shape_;
int dtype_;
::google::protobuf::int32 version_number_;
mutable int _cached_size_;
@ -364,56 +364,56 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
#endif // __GNUC__
// TensorProto
// .tensorflow.DataType dtype = 1;
// .opencv_tensorflow.DataType dtype = 1;
inline void TensorProto::clear_dtype() {
dtype_ = 0;
}
inline ::tensorflow::DataType TensorProto::dtype() const {
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.dtype)
return static_cast< ::tensorflow::DataType >(dtype_);
inline ::opencv_tensorflow::DataType TensorProto::dtype() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.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;
// @@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 {
return this != internal_default_instance() && tensor_shape_ != NULL;
}
inline const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
const ::tensorflow::TensorShapeProto* p = tensor_shape_;
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape)
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>(
&::tensorflow::_TensorShapeProto_default_instance_);
inline const ::opencv_tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
const ::opencv_tensorflow::TensorShapeProto* p = tensor_shape_;
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_shape)
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::TensorShapeProto*>(
&::opencv_tensorflow::_TensorShapeProto_default_instance_);
}
inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape)
inline ::opencv_tensorflow::TensorShapeProto* TensorProto::release_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) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
}
tensor_shape_ = NULL;
return temp;
}
inline ::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape)
inline ::opencv_tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_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;
return temp;
}
inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
inline ::opencv_tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
if (tensor_shape_ == NULL) {
_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_;
}
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();
if (message_arena == NULL) {
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;
// @@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;
@ -438,13 +438,13 @@ inline void TensorProto::clear_version_number() {
version_number_ = 0;
}
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_;
}
inline void TensorProto::set_version_number(::google::protobuf::int32 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;
@ -452,20 +452,20 @@ inline void TensorProto::clear_tensor_content() {
tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
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();
}
inline void TensorProto::set_tensor_content(const ::std::string& value) {
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
inline void TensorProto::set_tensor_content(::std::string&& value) {
tensor_content_.Set(
&::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
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),
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,
size_t size) {
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
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() {
// @@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());
}
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());
}
@ -500,10 +500,10 @@ inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_cont
}
tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content,
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() {
// @@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);
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, 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];
@ -530,25 +530,25 @@ inline void TensorProto::clear_half_val() {
half_val_.Clear();
}
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);
}
inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
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_;
}
@ -560,25 +560,25 @@ inline void TensorProto::clear_float_val() {
float_val_.Clear();
}
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);
}
inline void TensorProto::set_float_val(int index, float 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< float >*
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_;
}
@ -590,25 +590,25 @@ inline void TensorProto::clear_double_val() {
double_val_.Clear();
}
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);
}
inline void TensorProto::set_double_val(int index, double 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< double >*
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_;
}
@ -620,25 +620,25 @@ inline void TensorProto::clear_int_val() {
int_val_.Clear();
}
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);
}
inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
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_;
}
@ -650,64 +650,64 @@ inline void TensorProto::clear_string_val() {
string_val_.Clear();
}
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);
}
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);
}
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);
}
#if LANG_CXX11
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));
}
#endif
inline void TensorProto::set_string_val(int index, const char* value) {
GOOGLE_DCHECK(value != NULL);
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) {
string_val_.Mutable(index)->assign(
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() {
// @@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();
}
inline void TensorProto::add_string_val(const ::std::string& 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
inline void TensorProto::add_string_val(::std::string&& 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
inline void TensorProto::add_string_val(const char* value) {
GOOGLE_DCHECK(value != NULL);
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) {
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>&
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_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
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_;
}
@ -719,25 +719,25 @@ inline void TensorProto::clear_scomplex_val() {
scomplex_val_.Clear();
}
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);
}
inline void TensorProto::set_scomplex_val(int index, float 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< float >*
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_;
}
@ -749,25 +749,25 @@ inline void TensorProto::clear_int64_val() {
int64_val_.Clear();
}
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);
}
inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
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_;
}
@ -779,25 +779,25 @@ inline void TensorProto::clear_bool_val() {
bool_val_.Clear();
}
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);
}
inline void TensorProto::set_bool_val(int index, bool 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< bool >*
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_;
}
@ -809,25 +809,25 @@ inline void TensorProto::clear_dcomplex_val() {
dcomplex_val_.Clear();
}
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);
}
inline void TensorProto::set_dcomplex_val(int index, double 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) {
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 >&
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_;
}
inline ::google::protobuf::RepeatedField< double >*
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_;
}
@ -837,7 +837,7 @@ TensorProto::mutable_dcomplex_val() {
// @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow
} // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope)

View File

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

View File

@ -51,19 +51,19 @@ inline void InitDefaults() {
InitDefaultsTensorShapeProto();
}
} // namespace protobuf_tensor_5fshape_2eproto
namespace tensorflow {
namespace opencv_tensorflow {
class TensorShapeProto;
class TensorShapeProtoDefaultTypeInternal;
extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
class TensorShapeProto_Dim;
class TensorShapeProto_DimDefaultTypeInternal;
extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_;
} // namespace tensorflow
namespace tensorflow {
} // namespace opencv_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:
TensorShapeProto_Dim();
virtual ~TensorShapeProto_Dim();
@ -186,7 +186,7 @@ class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_inse
::google::protobuf::int64 size() const;
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:
::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:
TensorShapeProto();
virtual ~TensorShapeProto();
@ -297,16 +297,16 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio
// accessors -------------------------------------------------------
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
int dim_size() const;
void clear_dim();
static const int kDimFieldNumber = 2;
const ::tensorflow::TensorShapeProto_Dim& dim(int index) const;
::tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
::tensorflow::TensorShapeProto_Dim* add_dim();
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >*
const ::opencv_tensorflow::TensorShapeProto_Dim& dim(int index) const;
::opencv_tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
::opencv_tensorflow::TensorShapeProto_Dim* add_dim();
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
mutable_dim();
const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >&
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
dim() const;
// bool unknown_rank = 3;
@ -315,14 +315,14 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio
bool unknown_rank() const;
void set_unknown_rank(bool value);
// @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto)
// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_;
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim > dim_;
bool unknown_rank_;
mutable int _cached_size_;
friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;
@ -344,13 +344,13 @@ inline void TensorShapeProto_Dim::clear_size() {
size_ = GOOGLE_LONGLONG(0);
}
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_;
}
inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 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;
@ -358,20 +358,20 @@ inline void TensorShapeProto_Dim::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
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();
}
inline void TensorShapeProto_Dim::set_name(const ::std::string& value) {
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
inline void TensorShapeProto_Dim::set_name(::std::string&& value) {
name_.Set(
&::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
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),
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,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
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() {
// @@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());
}
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());
}
@ -406,10 +406,10 @@ inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
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() {
// @@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);
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, 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
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
inline int TensorShapeProto::dim_size() const {
return dim_.size();
}
inline void TensorShapeProto::clear_dim() {
dim_.Clear();
}
inline const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim)
inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Get(index);
}
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim)
inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Mutable(index);
}
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
// @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim)
inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
// @@protoc_insertion_point(field_add:opencv_tensorflow.TensorShapeProto.dim)
return dim_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >*
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_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_;
}
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >&
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
TensorShapeProto::dim() const {
// @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim)
// @@protoc_insertion_point(field_list:opencv_tensorflow.TensorShapeProto.dim)
return dim_;
}
@ -467,13 +467,13 @@ inline void TensorShapeProto::clear_unknown_rank() {
unknown_rank_ = false;
}
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_;
}
inline void TensorShapeProto::set_unknown_rank(bool 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__
@ -484,7 +484,7 @@ inline void TensorShapeProto::set_unknown_rank(bool value) {
// @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow
} // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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