Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
a2c8ce98
提交
a2c8ce98
authored
7月 20, 2017
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Disable test values for tests that can't handle them.
上级
8cda5a86
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
3 行删除
+9
-3
test_destroyhandler.py
theano/gof/tests/test_destroyhandler.py
+3
-0
test_rng_mrg.py
theano/sandbox/tests/test_rng_mrg.py
+6
-3
没有找到文件。
theano/gof/tests/test_destroyhandler.py
浏览文件 @
a2c8ce98
...
@@ -12,6 +12,8 @@ from theano.gof import destroyhandler
...
@@ -12,6 +12,8 @@ from theano.gof import destroyhandler
from
theano.gof.fg
import
FunctionGraph
,
InconsistencyError
from
theano.gof.fg
import
FunctionGraph
,
InconsistencyError
from
theano.gof.toolbox
import
ReplaceValidate
from
theano.gof.toolbox
import
ReplaceValidate
from
theano.configparser
import
change_flags
from
copy
import
copy
from
copy
import
copy
...
@@ -429,6 +431,7 @@ def test_value_repl():
...
@@ -429,6 +431,7 @@ def test_value_repl():
consistent
(
g
)
consistent
(
g
)
@change_flags
(
compute_test_value
=
'off'
)
def
test_value_repl_2
():
def
test_value_repl_2
():
x
,
y
,
z
=
inputs
()
x
,
y
,
z
=
inputs
()
sy
=
sigmoid
(
y
)
sy
=
sigmoid
(
y
)
...
...
theano/sandbox/tests/test_rng_mrg.py
浏览文件 @
a2c8ce98
...
@@ -15,6 +15,8 @@ from theano.sandbox.rng_mrg import MRG_RandomStreams
...
@@ -15,6 +15,8 @@ from theano.sandbox.rng_mrg import MRG_RandomStreams
from
theano.tests
import
unittest_tools
as
utt
from
theano.tests
import
unittest_tools
as
utt
from
theano.tests.unittest_tools
import
attr
from
theano.tests.unittest_tools
import
attr
from
theano.configparser
import
change_flags
# TODO: test MRG_RandomStreams
# TODO: test MRG_RandomStreams
# Partly done in test_consistency_randomstreams
# Partly done in test_consistency_randomstreams
...
@@ -666,9 +668,10 @@ def test_overflow_cpu():
...
@@ -666,9 +668,10 @@ def test_overflow_cpu():
# run with THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32
# run with THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32
rng
=
MRG_RandomStreams
(
np
.
random
.
randint
(
1234
))
rng
=
MRG_RandomStreams
(
np
.
random
.
randint
(
1234
))
fct
=
rng
.
uniform
fct
=
rng
.
uniform
# should raise error as the size overflows
with
change_flags
(
compute_test_value
=
'off'
):
sizes
=
[(
2
**
31
,
),
(
2
**
32
,
),
(
2
**
15
,
2
**
16
,),
(
2
,
2
**
15
,
2
**
15
)]
# should raise error as the size overflows
rng_mrg_overflow
(
sizes
,
fct
,
config
.
mode
,
should_raise_error
=
True
)
sizes
=
[(
2
**
31
,
),
(
2
**
32
,
),
(
2
**
15
,
2
**
16
,),
(
2
,
2
**
15
,
2
**
15
)]
rng_mrg_overflow
(
sizes
,
fct
,
config
.
mode
,
should_raise_error
=
True
)
# should not raise error
# should not raise error
sizes
=
[(
2
**
5
,
),
(
2
**
5
,
2
**
5
),
(
2
**
5
,
2
**
5
,
2
**
5
)]
sizes
=
[(
2
**
5
,
),
(
2
**
5
,
2
**
5
),
(
2
**
5
,
2
**
5
,
2
**
5
)]
rng_mrg_overflow
(
sizes
,
fct
,
config
.
mode
,
should_raise_error
=
False
)
rng_mrg_overflow
(
sizes
,
fct
,
config
.
mode
,
should_raise_error
=
False
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论