Commit 347e09cd authored by Alexander Alekhin's avatar Alexander Alekhin

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

parents 796795ac b7b82c1c
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include "third_party/protobuf/version.h" #include "third_party/protobuf/version.h"
#endif #endif
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
namespace tensorflow { namespace opencv_tensorflow {
} // namespace tensorflow } // namespace opencv_tensorflow
namespace protobuf_types_2eproto { namespace protobuf_types_2eproto {
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
...@@ -48,28 +48,28 @@ void protobuf_RegisterTypes(const ::std::string&) { ...@@ -48,28 +48,28 @@ void protobuf_RegisterTypes(const ::std::string&) {
void AddDescriptorsImpl() { void AddDescriptorsImpl() {
InitDefaults(); InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\013types.proto\022\ntensorflow*\234\005\n\010DataType\022\016" "\n\013types.proto\022\021opencv_tensorflow*\234\005\n\010Dat"
"\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_DOUBL" "aType\022\016\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tD"
"E\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010DT_IN" "T_DOUBLE\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014"
"T16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020\n\014DT_" "\n\010DT_INT16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007"
"COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOOL\020\n\022\014" "\022\020\n\014DT_COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_B"
"\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_QINT32" "OOL\020\n\022\014\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT"
"\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022\016\n\nDT" "_QINT32\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020"
"_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COMPLEX1" "\017\022\016\n\nDT_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_C"
"28\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rD" "OMPLEX128\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF"
"T_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_U" "\020e\022\021\n\rDT_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022"
"INT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_" "\020\n\014DT_UINT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013D"
"REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_COMPLEX64" "T_INT8_REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_CO"
"_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020" "MPLEX64_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BO"
"n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021" "OL_REF\020n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_"
"\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021" "REF\020p\022\021\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_"
"\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n" "REF\020r\022\021\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_R"
"\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022" "EF\020t\022\021\n\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128"
"\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflow.frame" "_REF\020v\022\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflo"
"workB\013TypesProtosP\001\370\001\001b\006proto3" "w.frameworkB\013TypesProtosP\001\370\001\001b\006proto3"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 750); descriptor, 757);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"types.proto", &protobuf_RegisterTypes); "types.proto", &protobuf_RegisterTypes);
} }
...@@ -85,7 +85,7 @@ struct StaticDescriptorInitializer { ...@@ -85,7 +85,7 @@ struct StaticDescriptorInitializer {
} }
} static_descriptor_initializer; } static_descriptor_initializer;
} // namespace protobuf_types_2eproto } // namespace protobuf_types_2eproto
namespace tensorflow { namespace opencv_tensorflow {
const ::google::protobuf::EnumDescriptor* DataType_descriptor() { const ::google::protobuf::EnumDescriptor* DataType_descriptor() {
protobuf_types_2eproto::protobuf_AssignDescriptorsOnce(); protobuf_types_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_types_2eproto::file_level_enum_descriptors[0]; return protobuf_types_2eproto::file_level_enum_descriptors[0];
...@@ -139,6 +139,6 @@ bool DataType_IsValid(int value) { ...@@ -139,6 +139,6 @@ bool DataType_IsValid(int value) {
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
...@@ -44,9 +44,9 @@ void AddDescriptors(); ...@@ -44,9 +44,9 @@ void AddDescriptors();
inline void InitDefaults() { inline void InitDefaults() {
} }
} // namespace protobuf_types_2eproto } // namespace protobuf_types_2eproto
namespace tensorflow { namespace opencv_tensorflow {
} // namespace tensorflow } // namespace opencv_tensorflow
namespace tensorflow { namespace opencv_tensorflow {
enum DataType { enum DataType {
DT_INVALID = 0, DT_INVALID = 0,
...@@ -124,15 +124,15 @@ inline bool DataType_Parse( ...@@ -124,15 +124,15 @@ inline bool DataType_Parse(
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace tensorflow } // namespace opencv_tensorflow
namespace google { namespace google {
namespace protobuf { namespace protobuf {
template <> struct is_proto_enum< ::tensorflow::DataType> : ::google::protobuf::internal::true_type {}; template <> struct is_proto_enum< ::opencv_tensorflow::DataType> : ::google::protobuf::internal::true_type {};
template <> template <>
inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() { inline const EnumDescriptor* GetEnumDescriptor< ::opencv_tensorflow::DataType>() {
return ::tensorflow::DataType_descriptor(); return ::opencv_tensorflow::DataType_descriptor();
} }
} // namespace protobuf } // namespace protobuf
......
This diff is collapsed.
This diff is collapsed.
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "AttrValueProtos"; option java_outer_classname = "AttrValueProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "FunctionProtos"; option java_outer_classname = "FunctionProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "GraphProtos"; option java_outer_classname = "GraphProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "OpDefProtos"; option java_outer_classname = "OpDefProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "TensorProtos"; option java_outer_classname = "TensorProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
...@@ -6,7 +6,7 @@ option java_outer_classname = "TensorShapeProtos"; ...@@ -6,7 +6,7 @@ option java_outer_classname = "TensorShapeProtos";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.tensorflow.framework"; option java_package = "org.tensorflow.framework";
package tensorflow; package opencv_tensorflow;
// Dimensions of a tensor. // Dimensions of a tensor.
message TensorShapeProto { message TensorShapeProto {
......
...@@ -26,6 +26,7 @@ Declaration of various functions which are related to Tensorflow models reading. ...@@ -26,6 +26,7 @@ Declaration of various functions which are related to Tensorflow models reading.
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
namespace tensorflow { using namespace opencv_tensorflow; }
namespace cv { namespace cv {
namespace dnn { namespace dnn {
......
syntax = "proto3"; syntax = "proto3";
package tensorflow; package opencv_tensorflow;
option cc_enable_arenas = true; option cc_enable_arenas = true;
option java_outer_classname = "TypesProtos"; option java_outer_classname = "TypesProtos";
option java_multiple_files = true; option java_multiple_files = true;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment