Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
95fad327
提交
95fad327
authored
3月 06, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove old comments.
上级
c5206446
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
2 行增加
和
26 行删除
+2
-26
test_scan.py
theano/scan_module/tests/test_scan.py
+2
-26
没有找到文件。
theano/scan_module/tests/test_scan.py
浏览文件 @
95fad327
...
@@ -983,14 +983,6 @@ class T_Scan(unittest.TestCase):
...
@@ -983,14 +983,6 @@ class T_Scan(unittest.TestCase):
# assert that theano does what it should
# assert that theano does what it should
utt
.
assert_allclose
(
theano_x0
,
numpy_x0
)
utt
.
assert_allclose
(
theano_x0
,
numpy_x0
)
utt
.
assert_allclose
(
theano_x1
,
numpy_x1
)
utt
.
assert_allclose
(
theano_x1
,
numpy_x1
)
# assert that it was done in place
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is deprecated .. tests don't
# make sense anymore.
## utt.assert_allclose(theano_x0 , vu2)
## utt.assert_allclose(theano_x1 , vu1)
# simple rnn ; compute inplace version 2
# simple rnn ; compute inplace version 2
def
test_inplace2
(
self
):
def
test_inplace2
(
self
):
...
@@ -1063,16 +1055,6 @@ class T_Scan(unittest.TestCase):
...
@@ -1063,16 +1055,6 @@ class T_Scan(unittest.TestCase):
# assert that theano does what it should
# assert that theano does what it should
utt
.
assert_allclose
(
theano_x0
,
numpy_x0
)
utt
.
assert_allclose
(
theano_x0
,
numpy_x0
)
utt
.
assert_allclose
(
theano_x1
,
numpy_x1
)
utt
.
assert_allclose
(
theano_x1
,
numpy_x1
)
# assert that it was done in place
# not that x0 should not be inplace of vu2 because you are using
# past values of u2, and therefore you are not allowed to work
# inplace !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is deprecated .. tests don't
# make sense anymore.
#assert not numpy.allclose( theano_x0 , vu2[1:4])
#utt.assert_allclose( theano_x1 , vu1[0:3])
def
test_inplace3
(
self
):
def
test_inplace3
(
self
):
rng
=
numpy
.
random
.
RandomState
(
utt
.
fetch_seed
())
rng
=
numpy
.
random
.
RandomState
(
utt
.
fetch_seed
())
...
@@ -2056,16 +2038,10 @@ class T_Scan(unittest.TestCase):
...
@@ -2056,16 +2038,10 @@ class T_Scan(unittest.TestCase):
required in order to mimic this interface. Scan thus calls
required in order to mimic this interface. Scan thus calls
tensor.shape_padleft on the inner function outputs.
tensor.shape_padleft on the inner function outputs.
However, this is not the proper behavior for:
However, this is not the proper behavior for shared variables,
* shared variables : these should not be padded in any way
they should not be padded in any way
* when return_steps is explicitely set to 1. Output should NOT be
a list, but a tensor corresponding to the result of the last
iteration.
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
deprecated !!!
"""
"""
a
=
theano
.
tensor
.
vector
()
a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论