Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d553d6a9
提交
d553d6a9
authored
10月 04, 2011
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
depricated -> deprecated
上级
f97e6098
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
NEWS.txt
NEWS.txt
+1
-1
NEWS.txt
doc/NEWS.txt
+1
-1
scan.py
theano/scan_module/scan.py
+2
-2
test_scan.py
theano/scan_module/tests/test_scan.py
+5
-5
没有找到文件。
NEWS.txt
浏览文件 @
d553d6a9
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change:
* scan interface change:
* The use of `return_steps` for specifying how many entries of the output
* The use of `return_steps` for specifying how many entries of the output
scan has been depr
i
cated
scan has been depr
e
cated
* The same thing can be done by applying a subtensor on the output
* The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice
return by scan to select a certain slice
...
...
doc/NEWS.txt
浏览文件 @
d553d6a9
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change:
* scan interface change:
* The use of `return_steps` for specifying how many entries of the output
* The use of `return_steps` for specifying how many entries of the output
scan has been depr
i
cated
scan has been depr
e
cated
* The same thing can be done by applying a subtensor on the output
* The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice
return by scan to select a certain slice
...
...
theano/scan_module/scan.py
浏览文件 @
d553d6a9
...
@@ -389,10 +389,10 @@ def scan(fn,
...
@@ -389,10 +389,10 @@ def scan(fn,
for
i
in
xrange
(
n_outs
):
for
i
in
xrange
(
n_outs
):
if
outs_info
[
i
]
is
not
None
:
if
outs_info
[
i
]
is
not
None
:
if
isinstance
(
outs_info
[
i
],
dict
):
if
isinstance
(
outs_info
[
i
],
dict
):
# DEPR
I
CATED :
# DEPR
E
CATED :
if
outs_info
[
i
]
.
get
(
'return_steps'
,
None
):
if
outs_info
[
i
]
.
get
(
'return_steps'
,
None
):
_logger
.
warning
((
"Using `return_steps` has been "
_logger
.
warning
((
"Using `return_steps` has been "
"depr
i
cated. Simply select the entries you "
"depr
e
cated. Simply select the entries you "
"need using a subtensor. Scan will optimize "
"need using a subtensor. Scan will optimize "
"memory consumption, so do not worry about "
"memory consumption, so do not worry about "
"that."
))
"that."
))
...
...
theano/scan_module/tests/test_scan.py
浏览文件 @
d553d6a9
...
@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase):
...
@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase):
# assert that it was done in place
# assert that it was done in place
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depr
i
cated .. tests don't
# Old way of doing inplace operations is depr
e
cated .. tests don't
# make sense anym
roe
# make sense anym
ore.
##assert numpy.allclose( theano_x0 , vu2)
##assert numpy.allclose( theano_x0 , vu2)
## assert numpy.allclose( theano_x1 , vu1)
## assert numpy.allclose( theano_x1 , vu1)
...
@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase):
...
@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase):
# inplace !!
# inplace !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depr
i
cated .. tests don't
# Old way of doing inplace operations is depr
e
cated .. tests don't
# make sense anym
roe
# make sense anym
ore.
#assert not numpy.allclose( theano_x0 , vu2[1:4])
#assert not numpy.allclose( theano_x0 , vu2[1:4])
#assert numpy.allclose( theano_x1 , vu1[0:3])
#assert numpy.allclose( theano_x1 , vu1[0:3])
...
@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase):
...
@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase):
This unit test addresses the bug fix of changeset ba7157e95cb1.
This unit test addresses the bug fix of changeset ba7157e95cb1.
!!! test lost some of its meaning because return_steps has been
!!! test lost some of its meaning because return_steps has been
depr
i
cated !!!
depr
e
cated !!!
"""
"""
a
=
theano
.
tensor
.
vector
()
a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论