Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
99835e3c
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
接近 2 年 前同步成功
通知
284
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
99835e3c
编写于
1月 04, 2019
作者:
Z
Zeyu Chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add gen_proto.sh
上级
5136a2b6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
216 addition
and
152 deletion
+216
-152
paddle_hub/gen_proto.sh
paddle_hub/gen_proto.sh
+1
-0
paddle_hub/module_desc_pb2.py
paddle_hub/module_desc_pb2.py
+215
-152
未找到文件。
paddle_hub/gen_proto.sh
0 → 100644
浏览文件 @
99835e3c
protoc
-I
=
./
--python_out
=
./ module_desc.proto
paddle_hub/module_desc_pb2.py
浏览文件 @
99835e3c
...
@@ -2,184 +2,247 @@
...
@@ -2,184 +2,247 @@
# source: module_desc.proto
# source: module_desc.proto
import
sys
import
sys
_b
=
sys
.
version_info
[
0
]
<
3
and
(
lambda
x
:
x
)
or
(
lambda
x
:
x
.
encode
(
'latin1'
))
_b
=
sys
.
version_info
[
0
]
<
3
and
(
lambda
x
:
x
)
or
(
lambda
x
:
x
.
encode
(
'latin1'
))
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
symbol_database
as
_symbol_database
from
google.protobuf
import
symbol_database
as
_symbol_database
from
google.protobuf
import
descriptor_pb2
# @@protoc_insertion_point(imports)
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
_sym_db
=
_symbol_database
.
Default
()
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
name
=
'module_desc.proto'
,
name
=
'module_desc.proto'
,
package
=
'paddle_hub'
,
package
=
'paddle_hub'
,
syntax
=
'proto3'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'H
\003
'
),
serialized_pb
=
_b
(
serialized_pb
=
_b
(
'
\n\x11
module_desc.proto
\x12\n
paddle_hub
\"\x19\n\t
InputDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\"\x1a\n\n
OutputDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\"\xb3\x01\n\n
ModuleDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
)
\n\n
input_desc
\x18\x02
\x03
(
\x0b\x32\x15
.paddle_hub.InputDesc
\x12
+
\n\x0b
output_desc
\x18\x03
\x03
(
\x0b\x32\x16
.paddle_hub.OutputDesc
\x12\x11\n\t
signature
\x18\x04
\x01
(
\t\x12\x14\n\x0c
return_numpy
\x18\x05
\x01
(
\x08\x12\x16\n\x0e\x63
ontain_assets
\x18\x06
\x01
(
\x08\x42\x02
H
\x03\x62\x06
proto3'
)
'
\n\x11
module_desc.proto
\x12\n
paddle_hub
\"\x19\n\t
InputDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\"\x1a\n\n
OutputDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\"\xb3\x01\n\n
ModuleDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
)
\n\n
input_desc
\x18\x02
\x03
(
\x0b\x32\x15
.paddle_hub.InputDesc
\x12
+
\n\x0b
output_desc
\x18\x03
\x03
(
\x0b\x32\x16
.paddle_hub.OutputDesc
\x12\x11\n\t
signature
\x18\x04
\x01
(
\t\x12\x14\n\x0c
return_numpy
\x18\x05
\x01
(
\x08\x12\x16\n\x0e\x63
ontain_assets
\x18\x06
\x01
(
\x08\x42\x02
H
\x03\x62\x06
proto3'
)
))
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
_INPUTDESC
=
_descriptor
.
Descriptor
(
_INPUTDESC
=
_descriptor
.
Descriptor
(
name
=
'InputDesc'
,
name
=
'InputDesc'
,
full_name
=
'paddle_hub.InputDesc'
,
full_name
=
'paddle_hub.InputDesc'
,
filename
=
None
,
filename
=
None
,
file
=
DESCRIPTOR
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
containing_type
=
None
,
fields
=
[
fields
=
[
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'name'
,
full_name
=
'paddle_hub.InputDesc.name'
,
index
=
0
,
name
=
'name'
,
number
=
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
full_name
=
'paddle_hub.InputDesc.name'
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
index
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
number
=
1
,
is_extension
=
False
,
extension_scope
=
None
,
type
=
9
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
cpp_type
=
9
,
],
label
=
1
,
extensions
=
[
has_default_value
=
False
,
],
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
nested_types
=
[],
message_type
=
None
,
enum_types
=
[
enum_type
=
None
,
],
containing_type
=
None
,
serialized_options
=
None
,
is_extension
=
False
,
is_extendable
=
False
,
extension_scope
=
None
,
syntax
=
'proto3'
,
options
=
None
),
extension_ranges
=
[],
],
oneofs
=
[
extensions
=
[],
],
nested_types
=
[],
serialized_start
=
33
,
enum_types
=
[],
serialized_end
=
58
,
options
=
None
,
)
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
33
,
serialized_end
=
58
,
)
_OUTPUTDESC
=
_descriptor
.
Descriptor
(
_OUTPUTDESC
=
_descriptor
.
Descriptor
(
name
=
'OutputDesc'
,
name
=
'OutputDesc'
,
full_name
=
'paddle_hub.OutputDesc'
,
full_name
=
'paddle_hub.OutputDesc'
,
filename
=
None
,
filename
=
None
,
file
=
DESCRIPTOR
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
containing_type
=
None
,
fields
=
[
fields
=
[
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'name'
,
full_name
=
'paddle_hub.OutputDesc.name'
,
index
=
0
,
name
=
'name'
,
number
=
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
full_name
=
'paddle_hub.OutputDesc.name'
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
index
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
number
=
1
,
is_extension
=
False
,
extension_scope
=
None
,
type
=
9
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
cpp_type
=
9
,
],
label
=
1
,
extensions
=
[
has_default_value
=
False
,
],
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
nested_types
=
[],
message_type
=
None
,
enum_types
=
[
enum_type
=
None
,
],
containing_type
=
None
,
serialized_options
=
None
,
is_extension
=
False
,
is_extendable
=
False
,
extension_scope
=
None
,
syntax
=
'proto3'
,
options
=
None
),
extension_ranges
=
[],
],
oneofs
=
[
extensions
=
[],
],
nested_types
=
[],
serialized_start
=
60
,
enum_types
=
[],
serialized_end
=
86
,
options
=
None
,
)
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
60
,
serialized_end
=
86
,
)
_MODULEDESC
=
_descriptor
.
Descriptor
(
_MODULEDESC
=
_descriptor
.
Descriptor
(
name
=
'ModuleDesc'
,
name
=
'ModuleDesc'
,
full_name
=
'paddle_hub.ModuleDesc'
,
full_name
=
'paddle_hub.ModuleDesc'
,
filename
=
None
,
filename
=
None
,
file
=
DESCRIPTOR
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
containing_type
=
None
,
fields
=
[
fields
=
[
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'name'
,
full_name
=
'paddle_hub.ModuleDesc.name'
,
index
=
0
,
name
=
'name'
,
number
=
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
full_name
=
'paddle_hub.ModuleDesc.name'
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
index
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
number
=
1
,
is_extension
=
False
,
extension_scope
=
None
,
type
=
9
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
cpp_type
=
9
,
_descriptor
.
FieldDescriptor
(
label
=
1
,
name
=
'input_desc'
,
full_name
=
'paddle_hub.ModuleDesc.input_desc'
,
index
=
1
,
has_default_value
=
False
,
number
=
2
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
[],
message_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
enum_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
containing_type
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
is_extension
=
False
,
_descriptor
.
FieldDescriptor
(
extension_scope
=
None
,
name
=
'output_desc'
,
full_name
=
'paddle_hub.ModuleDesc.output_desc'
,
index
=
2
,
options
=
None
),
number
=
3
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
_descriptor
.
FieldDescriptor
(
has_default_value
=
False
,
default_value
=
[],
name
=
'input_desc'
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
full_name
=
'paddle_hub.ModuleDesc.input_desc'
,
is_extension
=
False
,
extension_scope
=
None
,
index
=
1
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
number
=
2
,
_descriptor
.
FieldDescriptor
(
type
=
11
,
name
=
'signature'
,
full_name
=
'paddle_hub.ModuleDesc.signature'
,
index
=
3
,
cpp_type
=
10
,
number
=
4
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
label
=
3
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
default_value
=
[],
is_extension
=
False
,
extension_scope
=
None
,
message_type
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
enum_type
=
None
,
_descriptor
.
FieldDescriptor
(
containing_type
=
None
,
name
=
'return_numpy'
,
full_name
=
'paddle_hub.ModuleDesc.return_numpy'
,
index
=
4
,
is_extension
=
False
,
number
=
5
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
extension_scope
=
None
,
has_default_value
=
False
,
default_value
=
False
,
options
=
None
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
_descriptor
.
FieldDescriptor
(
is_extension
=
False
,
extension_scope
=
None
,
name
=
'output_desc'
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
full_name
=
'paddle_hub.ModuleDesc.output_desc'
,
_descriptor
.
FieldDescriptor
(
index
=
2
,
name
=
'contain_assets'
,
full_name
=
'paddle_hub.ModuleDesc.contain_assets'
,
index
=
5
,
number
=
3
,
number
=
6
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
type
=
11
,
has_default_value
=
False
,
default_value
=
False
,
cpp_type
=
10
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
label
=
3
,
is_extension
=
False
,
extension_scope
=
None
,
has_default_value
=
False
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
default_value
=
[],
],
message_type
=
None
,
extensions
=
[
enum_type
=
None
,
],
containing_type
=
None
,
nested_types
=
[],
is_extension
=
False
,
enum_types
=
[
extension_scope
=
None
,
],
options
=
None
),
serialized_options
=
None
,
_descriptor
.
FieldDescriptor
(
is_extendable
=
False
,
name
=
'signature'
,
syntax
=
'proto3'
,
full_name
=
'paddle_hub.ModuleDesc.signature'
,
extension_ranges
=
[],
index
=
3
,
oneofs
=
[
number
=
4
,
],
type
=
9
,
serialized_start
=
89
,
cpp_type
=
9
,
serialized_end
=
268
,
label
=
1
,
)
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'return_numpy'
,
full_name
=
'paddle_hub.ModuleDesc.return_numpy'
,
index
=
4
,
number
=
5
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
False
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'contain_assets'
,
full_name
=
'paddle_hub.ModuleDesc.contain_assets'
,
index
=
5
,
number
=
6
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
False
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
],
extensions
=
[],
nested_types
=
[],
enum_types
=
[],
options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
89
,
serialized_end
=
268
,
)
_MODULEDESC
.
fields_by_name
[
'input_desc'
].
message_type
=
_INPUTDESC
_MODULEDESC
.
fields_by_name
[
'input_desc'
].
message_type
=
_INPUTDESC
_MODULEDESC
.
fields_by_name
[
'output_desc'
].
message_type
=
_OUTPUTDESC
_MODULEDESC
.
fields_by_name
[
'output_desc'
].
message_type
=
_OUTPUTDESC
DESCRIPTOR
.
message_types_by_name
[
'InputDesc'
]
=
_INPUTDESC
DESCRIPTOR
.
message_types_by_name
[
'InputDesc'
]
=
_INPUTDESC
DESCRIPTOR
.
message_types_by_name
[
'OutputDesc'
]
=
_OUTPUTDESC
DESCRIPTOR
.
message_types_by_name
[
'OutputDesc'
]
=
_OUTPUTDESC
DESCRIPTOR
.
message_types_by_name
[
'ModuleDesc'
]
=
_MODULEDESC
DESCRIPTOR
.
message_types_by_name
[
'ModuleDesc'
]
=
_MODULEDESC
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
InputDesc
=
_reflection
.
GeneratedProtocolMessageType
(
'InputDesc'
,
(
_message
.
Message
,),
dict
(
InputDesc
=
_reflection
.
GeneratedProtocolMessageType
(
DESCRIPTOR
=
_INPUTDESC
,
'InputDesc'
,
__module__
=
'module_desc_pb2'
(
_message
.
Message
,
),
# @@protoc_insertion_point(class_scope:paddle_hub.InputDesc)
dict
(
))
DESCRIPTOR
=
_INPUTDESC
,
__module__
=
'module_desc_pb2'
# @@protoc_insertion_point(class_scope:paddle_hub.InputDesc)
))
_sym_db
.
RegisterMessage
(
InputDesc
)
_sym_db
.
RegisterMessage
(
InputDesc
)
OutputDesc
=
_reflection
.
GeneratedProtocolMessageType
(
'OutputDesc'
,
(
_message
.
Message
,),
dict
(
OutputDesc
=
_reflection
.
GeneratedProtocolMessageType
(
DESCRIPTOR
=
_OUTPUTDESC
,
'OutputDesc'
,
__module__
=
'module_desc_pb2'
(
_message
.
Message
,
),
# @@protoc_insertion_point(class_scope:paddle_hub.OutputDesc)
dict
(
))
DESCRIPTOR
=
_OUTPUTDESC
,
__module__
=
'module_desc_pb2'
# @@protoc_insertion_point(class_scope:paddle_hub.OutputDesc)
))
_sym_db
.
RegisterMessage
(
OutputDesc
)
_sym_db
.
RegisterMessage
(
OutputDesc
)
ModuleDesc
=
_reflection
.
GeneratedProtocolMessageType
(
'ModuleDesc'
,
(
_message
.
Message
,),
dict
(
ModuleDesc
=
_reflection
.
GeneratedProtocolMessageType
(
DESCRIPTOR
=
_MODULEDESC
,
'ModuleDesc'
,
__module__
=
'module_desc_pb2'
(
_message
.
Message
,
),
# @@protoc_insertion_point(class_scope:paddle_hub.ModuleDesc)
dict
(
))
DESCRIPTOR
=
_MODULEDESC
,
__module__
=
'module_desc_pb2'
# @@protoc_insertion_point(class_scope:paddle_hub.ModuleDesc)
))
_sym_db
.
RegisterMessage
(
ModuleDesc
)
_sym_db
.
RegisterMessage
(
ModuleDesc
)
DESCRIPTOR
.
has_options
=
True
DESCRIPTOR
.
_options
=
None
DESCRIPTOR
.
_options
=
_descriptor
.
_ParseOptions
(
descriptor_pb2
.
FileOptions
(),
_b
(
'H
\003
'
))
# @@protoc_insertion_point(module_scope)
# @@protoc_insertion_point(module_scope)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录