Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
df5cb3b2
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
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看板
提交
df5cb3b2
编写于
4月 01, 2019
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
check info add requires
上级
83dd8621
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
165 addition
and
5 deletion
+165
-5
paddle_hub/module/check_info.proto
paddle_hub/module/check_info.proto
+16
-0
paddle_hub/module/check_info_pb2.py
paddle_hub/module/check_info_pb2.py
+149
-5
未找到文件。
paddle_hub/module/check_info.proto
浏览文件 @
df5cb3b2
...
...
@@ -23,6 +23,14 @@ enum FILE_TYPE {
DIR
=
1
;
}
enum
REQUIRE_TYPE
{
PYTHON_PACKAGE
=
0
;
HUB_MODULE
=
1
;
SYSTEM
=
2
;
COMMAND
=
3
;
PY_VERSION
=
4
;
}
message
FileInfo
{
string
file_name
=
1
;
FILE_TYPE
type
=
2
;
...
...
@@ -31,9 +39,17 @@ message FileInfo {
string
description
=
5
;
}
message
Requires
{
REQUIRE_TYPE
require_type
=
1
;
string
version
=
2
;
bool
great_than
=
3
;
string
description
=
4
;
}
message
CheckInfo
{
string
paddle_version
=
1
;
string
hub_version
=
2
;
string
module_proto_version
=
3
;
repeated
FileInfo
file_infos
=
4
;
repeated
Requires
requires
=
5
;
};
paddle_hub/module/check_info_pb2.py
浏览文件 @
df5cb3b2
...
...
@@ -18,7 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'paddle_hub_check_info'
,
syntax
=
'proto3'
,
serialized_pb
=
_b
(
'
\n\x10\x63
heck_info.proto
\x12\x15
paddle_hub_check_info
\"\x80\x01\n\x08\x46
ileInfo
\x12\x11\n\t
file_name
\x18\x01
\x01
(
\t\x12
.
\n\x04
type
\x18\x02
\x01
(
\x0e\x32
.paddle_hub_check_info.FILE_TYPE
\x12\x0f\n\x07
is_need
\x18\x03
\x01
(
\x08\x12\x0b\n\x03
md5
\x18\x04
\x01
(
\t\x12\x13\n\x0b\x64\x65
scription
\x18\x05
\x01
(
\t\"\x
8b\x01\n\t
CheckInfo
\x12\x16\n\x0e
paddle_version
\x18\x01
\x01
(
\t\x12\x13\n\x0b
hub_version
\x18\x02
\x01
(
\t\x12\x1c\n\x14
module_proto_version
\x18\x03
\x01
(
\t\x12\x33\n\n
file_infos
\x18\x04
\x03
(
\x0b\x32\x1f
.paddle_hub_check_info.FileInfo*
\x1e\n\t
FILE_TYPE
\x12\x08\n\x04\x46
ILE
\x10\x00\x12\x07\n\x03\x44
IR
\x10\x01
\x42\x02
H
\x03\x62\x06
proto3'
'
\n\x10\x63
heck_info.proto
\x12\x15
paddle_hub_check_info
\"\x80\x01\n\x08\x46
ileInfo
\x12\x11\n\t
file_name
\x18\x01
\x01
(
\t\x12
.
\n\x04
type
\x18\x02
\x01
(
\x0e\x32
.paddle_hub_check_info.FILE_TYPE
\x12\x0f\n\x07
is_need
\x18\x03
\x01
(
\x08\x12\x0b\n\x03
md5
\x18\x04
\x01
(
\t\x12\x13\n\x0b\x64\x65
scription
\x18\x05
\x01
(
\t\"\x
7f\n\x08
Requires
\x12\x39\n\x0c
require_type
\x18\x01
\x01
(
\x0e\x32
#.paddle_hub_check_info.REQUIRE_TYPE
\x12\x0f\n\x07
version
\x18\x02
\x01
(
\t\x12\x12\n\n
great_than
\x18\x03
\x01
(
\x08\x12\x13\n\x0b\x64\x65
scription
\x18\x04
\x01
(
\t\"\xbe\x01\n\t
CheckInfo
\x12\x16\n\x0e
paddle_version
\x18\x01
\x01
(
\t\x12\x13\n\x0b
hub_version
\x18\x02
\x01
(
\t\x12\x1c\n\x14
module_proto_version
\x18\x03
\x01
(
\t\x12\x33\n\n
file_infos
\x18\x04
\x03
(
\x0b\x32\x1f
.paddle_hub_check_info.FileInfo
\x12\x31\n\x08
requires
\x18\x05
\x03
(
\x0b\x32\x1f
.paddle_hub_check_info.Requires*
\x1e\n\t
FILE_TYPE
\x12\x08\n\x04\x46
ILE
\x10\x00\x12\x07\n\x03\x44
IR
\x10\x01
*[
\n\x0c
REQUIRE_TYPE
\x12\x12\n\x0e
PYTHON_PACKAGE
\x10\x00\x12\x0e\n\n
HUB_MODULE
\x10\x01\x12\n\n\x06
SYSTEM
\x10\x02\x12\x0b\n\x07\x43
OMMAND
\x10\x03\x12\x0e\n\n
PY_VERSION
\x10\x04
\x42\x02
H
\x03\x62\x06
proto3'
))
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
...
...
@@ -35,14 +35,44 @@ _FILE_TYPE = _descriptor.EnumDescriptor(
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
31
6
,
serialized_end
=
34
6
,
serialized_start
=
49
6
,
serialized_end
=
52
6
,
)
_sym_db
.
RegisterEnumDescriptor
(
_FILE_TYPE
)
FILE_TYPE
=
enum_type_wrapper
.
EnumTypeWrapper
(
_FILE_TYPE
)
_REQUIRE_TYPE
=
_descriptor
.
EnumDescriptor
(
name
=
'REQUIRE_TYPE'
,
full_name
=
'paddle_hub_check_info.REQUIRE_TYPE'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'PYTHON_PACKAGE'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'HUB_MODULE'
,
index
=
1
,
number
=
1
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'SYSTEM'
,
index
=
2
,
number
=
2
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'COMMAND'
,
index
=
3
,
number
=
3
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'PY_VERSION'
,
index
=
4
,
number
=
4
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
528
,
serialized_end
=
619
,
)
_sym_db
.
RegisterEnumDescriptor
(
_REQUIRE_TYPE
)
REQUIRE_TYPE
=
enum_type_wrapper
.
EnumTypeWrapper
(
_REQUIRE_TYPE
)
FILE
=
0
DIR
=
1
PYTHON_PACKAGE
=
0
HUB_MODULE
=
1
SYSTEM
=
2
COMMAND
=
3
PY_VERSION
=
4
_FILEINFO
=
_descriptor
.
Descriptor
(
name
=
'FileInfo'
,
...
...
@@ -144,6 +174,90 @@ _FILEINFO = _descriptor.Descriptor(
serialized_end
=
172
,
)
_REQUIRES
=
_descriptor
.
Descriptor
(
name
=
'Requires'
,
full_name
=
'paddle_hub_check_info.Requires'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'require_type'
,
full_name
=
'paddle_hub_check_info.Requires.require_type'
,
index
=
0
,
number
=
1
,
type
=
14
,
cpp_type
=
8
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'version'
,
full_name
=
'paddle_hub_check_info.Requires.version'
,
index
=
1
,
number
=
2
,
type
=
9
,
cpp_type
=
9
,
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
=
'great_than'
,
full_name
=
'paddle_hub_check_info.Requires.great_than'
,
index
=
2
,
number
=
3
,
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
=
'description'
,
full_name
=
'paddle_hub_check_info.Requires.description'
,
index
=
3
,
number
=
4
,
type
=
9
,
cpp_type
=
9
,
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
),
],
extensions
=
[],
nested_types
=
[],
enum_types
=
[],
options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
174
,
serialized_end
=
301
,
)
_CHECKINFO
=
_descriptor
.
Descriptor
(
name
=
'CheckInfo'
,
full_name
=
'paddle_hub_check_info.CheckInfo'
,
...
...
@@ -215,6 +329,22 @@ _CHECKINFO = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'requires'
,
full_name
=
'paddle_hub_check_info.CheckInfo.requires'
,
index
=
4
,
number
=
5
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
has_default_value
=
False
,
default_value
=
[],
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
],
extensions
=
[],
nested_types
=
[],
...
...
@@ -224,15 +354,19 @@ _CHECKINFO = _descriptor.Descriptor(
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
175
,
serialized_end
=
31
4
,
serialized_start
=
304
,
serialized_end
=
49
4
,
)
_FILEINFO
.
fields_by_name
[
'type'
].
enum_type
=
_FILE_TYPE
_REQUIRES
.
fields_by_name
[
'require_type'
].
enum_type
=
_REQUIRE_TYPE
_CHECKINFO
.
fields_by_name
[
'file_infos'
].
message_type
=
_FILEINFO
_CHECKINFO
.
fields_by_name
[
'requires'
].
message_type
=
_REQUIRES
DESCRIPTOR
.
message_types_by_name
[
'FileInfo'
]
=
_FILEINFO
DESCRIPTOR
.
message_types_by_name
[
'Requires'
]
=
_REQUIRES
DESCRIPTOR
.
message_types_by_name
[
'CheckInfo'
]
=
_CHECKINFO
DESCRIPTOR
.
enum_types_by_name
[
'FILE_TYPE'
]
=
_FILE_TYPE
DESCRIPTOR
.
enum_types_by_name
[
'REQUIRE_TYPE'
]
=
_REQUIRE_TYPE
FileInfo
=
_reflection
.
GeneratedProtocolMessageType
(
'FileInfo'
,
...
...
@@ -244,6 +378,16 @@ FileInfo = _reflection.GeneratedProtocolMessageType(
))
_sym_db
.
RegisterMessage
(
FileInfo
)
Requires
=
_reflection
.
GeneratedProtocolMessageType
(
'Requires'
,
(
_message
.
Message
,
),
dict
(
DESCRIPTOR
=
_REQUIRES
,
__module__
=
'check_info_pb2'
# @@protoc_insertion_point(class_scope:paddle_hub_check_info.Requires)
))
_sym_db
.
RegisterMessage
(
Requires
)
CheckInfo
=
_reflection
.
GeneratedProtocolMessageType
(
'CheckInfo'
,
(
_message
.
Message
,
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录