Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
151ec94b
提交
151ec94b
authored
1月 16, 2014
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mark first batch of really slow tests.
上级
e7b90016
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
0 行删除
+8
-0
test_scan.py
theano/scan_module/tests/test_scan.py
+3
-0
test_basic.py
theano/sparse/tests/test_basic.py
+1
-0
test_basic.py
theano/tensor/tests/test_basic.py
+2
-0
test_opt.py
theano/tensor/tests/test_opt.py
+2
-0
没有找到文件。
theano/scan_module/tests/test_scan.py
浏览文件 @
151ec94b
...
@@ -8,6 +8,7 @@ import unittest
...
@@ -8,6 +8,7 @@ import unittest
import
cPickle
import
cPickle
import
numpy
import
numpy
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.attrib
import
attr
from
numpy.testing
import
dec
from
numpy.testing
import
dec
import
theano
import
theano
...
@@ -1525,6 +1526,7 @@ class T_Scan(unittest.TestCase):
...
@@ -1525,6 +1526,7 @@ class T_Scan(unittest.TestCase):
analytic_grad
[
max_err_pos
],
analytic_grad
[
max_err_pos
],
num_grad
.
gx
[
max_err_pos
]))
num_grad
.
gx
[
max_err_pos
]))
@attr
(
'slow'
)
def
test_grad_multiple_outs_taps
(
self
):
def
test_grad_multiple_outs_taps
(
self
):
l
=
5
l
=
5
rng
=
numpy
.
random
.
RandomState
(
utt
.
fetch_seed
())
rng
=
numpy
.
random
.
RandomState
(
utt
.
fetch_seed
())
...
@@ -3659,6 +3661,7 @@ class T_Scan(unittest.TestCase):
...
@@ -3659,6 +3661,7 @@ class T_Scan(unittest.TestCase):
inp
=
scan_node
.
op
.
outer_non_seqs
(
scan_node
)
inp
=
scan_node
.
op
.
outer_non_seqs
(
scan_node
)
assert
len
(
inp
)
==
1
assert
len
(
inp
)
==
1
@attr
(
'slow'
)
def
test_hessian_bug_grad_grad_two_scans
(
self
):
def
test_hessian_bug_grad_grad_two_scans
(
self
):
#Bug reported by Bitton Tenessi
#Bug reported by Bitton Tenessi
...
...
theano/sparse/tests/test_basic.py
浏览文件 @
151ec94b
...
@@ -1266,6 +1266,7 @@ class UsmmTests(unittest.TestCase):
...
@@ -1266,6 +1266,7 @@ class UsmmTests(unittest.TestCase):
self
.
z
=
numpy
.
asarray
(
self
.
rng
.
uniform
(
-
1
,
1
,
z_size
),
self
.
z
=
numpy
.
asarray
(
self
.
rng
.
uniform
(
-
1
,
1
,
z_size
),
dtype
=
theano
.
config
.
floatX
)
dtype
=
theano
.
config
.
floatX
)
# this is slow, but it's the only test for the op.
def
test
(
self
):
def
test
(
self
):
def
mat
(
format
,
name
,
dtype
):
def
mat
(
format
,
name
,
dtype
):
if
format
==
'dense'
:
if
format
==
'dense'
:
...
...
theano/tensor/tests/test_basic.py
浏览文件 @
151ec94b
...
@@ -13,6 +13,7 @@ import __builtin__
...
@@ -13,6 +13,7 @@ import __builtin__
builtin_min
=
__builtin__
.
min
builtin_min
=
__builtin__
.
min
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.attrib
import
attr
import
numpy
import
numpy
from
numpy.testing
import
dec
,
assert_array_equal
,
assert_allclose
from
numpy.testing
import
dec
,
assert_array_equal
,
assert_allclose
from
numpy.testing.noseclasses
import
KnownFailureTest
from
numpy.testing.noseclasses
import
KnownFailureTest
...
@@ -4050,6 +4051,7 @@ class t_dot(unittest.TestCase):
...
@@ -4050,6 +4051,7 @@ class t_dot(unittest.TestCase):
utt
.
verify_grad
(
dot
,
[
rand
(
2
,
3
,
4
),
rand
(
4
,
5
)])
utt
.
verify_grad
(
dot
,
[
rand
(
2
,
3
,
4
),
rand
(
4
,
5
)])
utt
.
verify_grad
(
dot
,
[
rand
(
2
,
3
,
4
),
rand
(
3
,
4
,
5
)])
utt
.
verify_grad
(
dot
,
[
rand
(
2
,
3
,
4
),
rand
(
3
,
4
,
5
)])
@attr
(
'slow'
)
def
test_broadcastable_patterns
(
self
):
def
test_broadcastable_patterns
(
self
):
#
#
...
...
theano/tensor/tests/test_opt.py
浏览文件 @
151ec94b
...
@@ -10,6 +10,7 @@ import unittest
...
@@ -10,6 +10,7 @@ import unittest
import
numpy
import
numpy
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.attrib
import
attr
from
numpy.testing
import
dec
from
numpy.testing
import
dec
from
numpy.testing.noseclasses
import
KnownFailureTest
from
numpy.testing.noseclasses
import
KnownFailureTest
...
@@ -2142,6 +2143,7 @@ class test_local_subtensor_merge(unittest.TestCase):
...
@@ -2142,6 +2143,7 @@ class test_local_subtensor_merge(unittest.TestCase):
print
'shape:
%
s'
%
(
x_s
,)
print
'shape:
%
s'
%
(
x_s
,)
print
'
%%
OK:
%
f'
%
(
float
(
n_ok
)
*
100
/
(
n_ok
+
n_index_err
))
print
'
%%
OK:
%
f'
%
(
float
(
n_ok
)
*
100
/
(
n_ok
+
n_index_err
))
@attr
(
'slow'
)
def
test_none_slice
(
self
):
def
test_none_slice
(
self
):
# Test case of two slices, var[b1:e1:s1][b2:e2:s2]
# Test case of two slices, var[b1:e1:s1][b2:e2:s2]
# where any of the b, e, and s can be None
# where any of the b, e, and s can be None
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论