Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
fd3be087
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fd3be087
编写于
3月 01, 2017
作者:
Q
qiaolongfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
restore recurrent_group in v1
上级
73af1942
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
15 deletion
+2
-15
python/paddle/trainer_config_helpers/layers.py
python/paddle/trainer_config_helpers/layers.py
+2
-10
python/paddle/v2/layer.py
python/paddle/v2/layer.py
+0
-5
未找到文件。
python/paddle/trainer_config_helpers/layers.py
浏览文件 @
fd3be087
...
@@ -3115,9 +3115,7 @@ def recurrent_group(step,
...
@@ -3115,9 +3115,7 @@ def recurrent_group(step,
reverse
=
False
,
reverse
=
False
,
name
=
None
,
name
=
None
,
targetInlink
=
None
,
targetInlink
=
None
,
is_generating
=
False
,
is_generating
=
False
):
in_args_converter
=
None
,
boot_layer
=
None
):
"""
"""
Recurrent layer group is an extremely flexible recurrent unit in
Recurrent layer group is an extremely flexible recurrent unit in
PaddlePaddle. As long as the user defines the calculation done within a
PaddlePaddle. As long as the user defines the calculation done within a
...
@@ -3260,13 +3258,7 @@ def recurrent_group(step,
...
@@ -3260,13 +3258,7 @@ def recurrent_group(step,
assert
(
is_generating
!=
has_LayerOutput
)
assert
(
is_generating
!=
has_LayerOutput
)
if
in_args_converter
is
None
:
layer_outs
=
step
(
*
in_args
)
layer_outs
=
step
(
*
in_args
)
else
:
# append boot_layer to the last of in_args
if
boot_layer
is
not
None
:
in_args
.
append
(
boot_layer
)
layer_outs
=
step
(
*
in_args_converter
(
*
in_args
)).
to_proto
(
dict
())
if
isinstance
(
layer_outs
,
LayerOutput
):
if
isinstance
(
layer_outs
,
LayerOutput
):
layer_outs
=
[
layer_outs
]
layer_outs
=
[
layer_outs
]
...
...
python/paddle/v2/layer.py
浏览文件 @
fd3be087
...
@@ -131,11 +131,6 @@ class Layer(object):
...
@@ -131,11 +131,6 @@ class Layer(object):
if
self
.
context_name
()
is
None
:
if
self
.
context_name
()
is
None
:
return
self
.
to_proto_impl
(
**
kwargs
)
return
self
.
to_proto_impl
(
**
kwargs
)
elif
isinstance
(
self
,
MemoryV2
):
name
=
self
.
name
+
"#__memory__"
if
name
not
in
context
:
context
[
name
]
=
self
.
to_proto_impl
(
**
kwargs
)
return
context
[
name
]
elif
self
.
context_name
()
not
in
context
:
elif
self
.
context_name
()
not
in
context
:
context
[
self
.
context_name
()]
=
self
.
to_proto_impl
(
**
kwargs
)
context
[
self
.
context_name
()]
=
self
.
to_proto_impl
(
**
kwargs
)
return
context
[
self
.
name
]
return
context
[
self
.
name
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录