Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
4d6a5b56
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看板
提交
4d6a5b56
编写于
1月 09, 2019
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete redundant fields in proto
上级
a96ef721
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
115 deletion
+11
-115
paddle_hub/module_desc.proto
paddle_hub/module_desc.proto
+2
-10
paddle_hub/module_desc_pb2.py
paddle_hub/module_desc_pb2.py
+9
-105
未找到文件。
paddle_hub/module_desc.proto
浏览文件 @
4d6a5b56
...
...
@@ -36,12 +36,6 @@ message ModuleVar {
repeated
FeedDesc
feed_desc
=
2
;
}
message
Parameter
{
string
name
=
1
;
double
learning_rate
=
2
;
bool
trainable
=
3
;
};
// A Hub Module is stored in a directory with a file 'paddlehub.pb'
// containing a serialized protocol message of this type. The further contents
// of the directory depend on the storage format described by the message.
...
...
@@ -51,11 +45,9 @@ message ModuleDesc {
// signature to module variable
map
<
string
,
ModuleVar
>
sign2var
=
2
;
repeated
Parameter
parameters
=
3
;
bool
return_numpy
=
4
;
bool
return_numpy
=
3
;
bool
contain_assets
=
5
;
bool
contain_assets
=
4
;
};
paddle_hub/module_desc_pb2.py
浏览文件 @
4d6a5b56
...
...
@@ -17,7 +17,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'paddle_hub'
,
syntax
=
'proto3'
,
serialized_pb
=
_b
(
'
\n\x11
module_desc.proto
\x12\n
paddle_hub
\"
)
\n\x08\x46\x65\x65\x64\x44\x65
sc
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\x10\n\x08
var_name
\x18\x02
\x01
(
\t\"
*
\n\t
FetchDesc
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\x10\n\x08
var_name
\x18\x02
\x01
(
\t\"
_
\n\t
ModuleVar
\x12
)
\n\n
fetch_desc
\x18\x01
\x03
(
\x0b\x32\x15
.paddle_hub.FetchDesc
\x12\'\n\t
feed_desc
\x18\x02
\x03
(
\x0b\x32\x14
.paddle_hub.FeedDesc
\"
C
\n\t
Parameter
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12\x15\n\r
learning_rate
\x18\x02
\x01
(
\x01\x12\x11\n\t
trainable
\x18\x03
\x01
(
\x08\"\xf3\x01\n\n
ModuleDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12\x36\n\x08
sign2var
\x18\x02
\x03
(
\x0b\x32
$.paddle_hub.ModuleDesc.Sign2varEntry
\x12
)
\n\n
parameters
\x18\x03
\x03
(
\x0b\x32\x15
.paddle_hub.Parameter
\x12\x14\n\x0c
return_numpy
\x18\x04
\x01
(
\x08\x12\x16\n\x0e\x63
ontain_assets
\x18\x05
\x01
(
\x08\x1a\x46\n\r
Sign2varEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12
$
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x15
.paddle_hub.ModuleVar:
\x02\x38\x01\x42\x02
H
\x03\x62\x06
proto3'
'
\n\x11
module_desc.proto
\x12\n
paddle_hub
\"
)
\n\x08\x46\x65\x65\x64\x44\x65
sc
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\x10\n\x08
var_name
\x18\x02
\x01
(
\t\"
*
\n\t
FetchDesc
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\x10\n\x08
var_name
\x18\x02
\x01
(
\t\"
_
\n\t
ModuleVar
\x12
)
\n\n
fetch_desc
\x18\x01
\x03
(
\x0b\x32\x15
.paddle_hub.FetchDesc
\x12\'\n\t
feed_desc
\x18\x02
\x03
(
\x0b\x32\x14
.paddle_hub.FeedDesc
\"
\xc8\x01\n\n
ModuleDesc
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12\x36\n\x08
sign2var
\x18\x02
\x03
(
\x0b\x32
$.paddle_hub.ModuleDesc.Sign2varEntry
\x12\x14\n\x0c
return_numpy
\x18\x03
\x01
(
\x08\x12\x16\n\x0e\x63
ontain_assets
\x18\x04
\x01
(
\x08\x1a\x46\n\r
Sign2varEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12
$
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x15
.paddle_hub.ModuleVar:
\x02\x38\x01\x42\x02
H
\x03\x62\x06
proto3'
))
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
...
...
@@ -177,74 +177,6 @@ _MODULEVAR = _descriptor.Descriptor(
serialized_end
=
215
,
)
_PARAMETER
=
_descriptor
.
Descriptor
(
name
=
'Parameter'
,
full_name
=
'paddle_hub.Parameter'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'name'
,
full_name
=
'paddle_hub.Parameter.name'
,
index
=
0
,
number
=
1
,
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
=
'learning_rate'
,
full_name
=
'paddle_hub.Parameter.learning_rate'
,
index
=
1
,
number
=
2
,
type
=
1
,
cpp_type
=
5
,
label
=
1
,
has_default_value
=
False
,
default_value
=
float
(
0
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'trainable'
,
full_name
=
'paddle_hub.Parameter.trainable'
,
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
),
],
extensions
=
[],
nested_types
=
[],
enum_types
=
[],
options
=
None
,
is_extendable
=
False
,
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
217
,
serialized_end
=
284
,
)
_MODULEDESC_SIGN2VARENTRY
=
_descriptor
.
Descriptor
(
name
=
'Sign2varEntry'
,
full_name
=
'paddle_hub.ModuleDesc.Sign2varEntry'
,
...
...
@@ -294,8 +226,8 @@ _MODULEDESC_SIGN2VARENTRY = _descriptor.Descriptor(
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
460
,
serialized_end
=
530
,
serialized_start
=
348
,
serialized_end
=
418
,
)
_MODULEDESC
=
_descriptor
.
Descriptor
(
...
...
@@ -337,27 +269,11 @@ _MODULEDESC = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'parameters'
,
full_name
=
'paddle_hub.ModuleDesc.parameters'
,
index
=
2
,
number
=
3
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'return_numpy'
,
full_name
=
'paddle_hub.ModuleDesc.return_numpy'
,
index
=
3
,
number
=
4
,
index
=
2
,
number
=
3
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
...
...
@@ -372,8 +288,8 @@ _MODULEDESC = _descriptor.Descriptor(
_descriptor
.
FieldDescriptor
(
name
=
'contain_assets'
,
full_name
=
'paddle_hub.ModuleDesc.contain_assets'
,
index
=
4
,
number
=
5
,
index
=
3
,
number
=
4
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
...
...
@@ -396,8 +312,8 @@ _MODULEDESC = _descriptor.Descriptor(
syntax
=
'proto3'
,
extension_ranges
=
[],
oneofs
=
[],
serialized_start
=
2
87
,
serialized_end
=
530
,
serialized_start
=
2
18
,
serialized_end
=
418
,
)
_MODULEVAR
.
fields_by_name
[
'fetch_desc'
].
message_type
=
_FETCHDESC
...
...
@@ -405,11 +321,9 @@ _MODULEVAR.fields_by_name['feed_desc'].message_type = _FEEDDESC
_MODULEDESC_SIGN2VARENTRY
.
fields_by_name
[
'value'
].
message_type
=
_MODULEVAR
_MODULEDESC_SIGN2VARENTRY
.
containing_type
=
_MODULEDESC
_MODULEDESC
.
fields_by_name
[
'sign2var'
].
message_type
=
_MODULEDESC_SIGN2VARENTRY
_MODULEDESC
.
fields_by_name
[
'parameters'
].
message_type
=
_PARAMETER
DESCRIPTOR
.
message_types_by_name
[
'FeedDesc'
]
=
_FEEDDESC
DESCRIPTOR
.
message_types_by_name
[
'FetchDesc'
]
=
_FETCHDESC
DESCRIPTOR
.
message_types_by_name
[
'ModuleVar'
]
=
_MODULEVAR
DESCRIPTOR
.
message_types_by_name
[
'Parameter'
]
=
_PARAMETER
DESCRIPTOR
.
message_types_by_name
[
'ModuleDesc'
]
=
_MODULEDESC
FeedDesc
=
_reflection
.
GeneratedProtocolMessageType
(
...
...
@@ -442,16 +356,6 @@ ModuleVar = _reflection.GeneratedProtocolMessageType(
))
_sym_db
.
RegisterMessage
(
ModuleVar
)
Parameter
=
_reflection
.
GeneratedProtocolMessageType
(
'Parameter'
,
(
_message
.
Message
,
),
dict
(
DESCRIPTOR
=
_PARAMETER
,
__module__
=
'module_desc_pb2'
# @@protoc_insertion_point(class_scope:paddle_hub.Parameter)
))
_sym_db
.
RegisterMessage
(
Parameter
)
ModuleDesc
=
_reflection
.
GeneratedProtocolMessageType
(
'ModuleDesc'
,
(
_message
.
Message
,
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录