Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
130c01f8
提交
130c01f8
authored
2月 20, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes for Python 2.4
上级
766e8124
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
test_basic.py
theano/sparse/tests/test_basic.py
+1
-1
test_blas.py
theano/tensor/tests/test_blas.py
+6
-6
没有找到文件。
theano/sparse/tests/test_basic.py
浏览文件 @
130c01f8
...
@@ -12,7 +12,7 @@ except ImportError:
...
@@ -12,7 +12,7 @@ except ImportError:
import
theano
import
theano
from
theano
import
compile
,
config
from
theano
import
compile
,
config
from
theano.sparse
import
enable_sparse
from
theano.sparse
import
enable_sparse
from
theano.gof.python25
import
all
,
product
from
theano.gof.python25
import
all
,
any
,
product
if
enable_sparse
==
False
:
if
enable_sparse
==
False
:
raise
SkipTest
(
'Optional package sparse disabled'
)
raise
SkipTest
(
'Optional package sparse disabled'
)
...
...
theano/tensor/tests/test_blas.py
浏览文件 @
130c01f8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
itertools
,
sys
import
itertools
,
sys
import
theano.tensor
as
T
import
theano.tensor
as
T
from
theano
import
tensor
from
theano
import
tensor
#from theano.gof import Env
from
theano.gof.python25
import
product
as
itertools_product
from
theano.printing
import
pp
from
theano.printing
import
pp
import
numpy
import
numpy
...
@@ -1535,7 +1535,7 @@ class TestBlasStrides(TestCase):
...
@@ -1535,7 +1535,7 @@ class TestBlasStrides(TestCase):
mode
=
self
.
mode
)
mode
=
self
.
mode
)
# Try with all stride patterns, and all transposed pattern
# Try with all stride patterns, and all transposed pattern
for
step_signs
in
itertools
.
product
((
-
1
,
1
),
repeat
=
4
):
for
step_signs
in
itertools
_
product
((
-
1
,
1
),
repeat
=
4
):
for
step
in
(
1
,
2
):
for
step
in
(
1
,
2
):
b_step1
,
b_step2
,
c_step1
,
c_step2
=
(
s
*
step
b_step1
,
b_step2
,
c_step1
,
c_step2
=
(
s
*
step
for
s
in
step_signs
)
for
s
in
step_signs
)
...
@@ -1605,7 +1605,7 @@ class TestBlasStrides(TestCase):
...
@@ -1605,7 +1605,7 @@ class TestBlasStrides(TestCase):
mode
=
self
.
mode
)
mode
=
self
.
mode
)
# Try with all stride patterns, and all transposed pattern
# Try with all stride patterns, and all transposed pattern
for
step_signs
in
itertools
.
product
((
-
1
,
1
),
repeat
=
4
):
for
step_signs
in
itertools
_
product
((
-
1
,
1
),
repeat
=
4
):
for
step
in
(
1
,
2
):
for
step
in
(
1
,
2
):
b_step1
,
b_step2
,
c_step1
,
c_step2
=
(
s
*
step
b_step1
,
b_step2
,
c_step1
,
c_step2
=
(
s
*
step
for
s
in
step_signs
)
for
s
in
step_signs
)
...
@@ -1692,7 +1692,7 @@ class TestBlasStrides(TestCase):
...
@@ -1692,7 +1692,7 @@ class TestBlasStrides(TestCase):
mode
=
self
.
mode
)
mode
=
self
.
mode
)
# Try with all stride patterns, and all transposed pattern
# Try with all stride patterns, and all transposed pattern
for
step_signs
in
itertools
.
product
((
-
1
,
1
),
repeat
=
6
):
for
step_signs
in
itertools
_
product
((
-
1
,
1
),
repeat
=
6
):
for
step
in
(
1
,
2
):
for
step
in
(
1
,
2
):
a_step1
,
a_step2
,
b_step1
,
b_step2
,
c_step1
,
c_step2
=
\
a_step1
,
a_step2
,
b_step1
,
b_step2
,
c_step1
,
c_step2
=
\
(
s
*
step
for
s
in
step_signs
)
(
s
*
step
for
s
in
step_signs
)
...
@@ -1785,7 +1785,7 @@ class TestBlasStrides(TestCase):
...
@@ -1785,7 +1785,7 @@ class TestBlasStrides(TestCase):
mode
=
self
.
mode
)
mode
=
self
.
mode
)
# Try with all stride patterns, and all transposed pattern
# Try with all stride patterns, and all transposed pattern
for
step_signs
in
itertools
.
product
((
1
,
-
1
),
repeat
=
4
):
for
step_signs
in
itertools
_
product
((
1
,
-
1
),
repeat
=
4
):
for
step
in
(
1
,
2
):
for
step
in
(
1
,
2
):
a_step
,
b_step1
,
b_step2
,
c_step
=
(
s
*
step
a_step
,
b_step1
,
b_step2
,
c_step
=
(
s
*
step
for
s
in
step_signs
)
for
s
in
step_signs
)
...
@@ -1841,7 +1841,7 @@ class TestBlasStrides(TestCase):
...
@@ -1841,7 +1841,7 @@ class TestBlasStrides(TestCase):
mode
=
self
.
mode
)
mode
=
self
.
mode
)
# Try with all stride patterns, and all transposed patterns
# Try with all stride patterns, and all transposed patterns
for
step_signs
in
itertools
.
product
((
1
,
-
1
),
repeat
=
4
):
for
step_signs
in
itertools
_
product
((
1
,
-
1
),
repeat
=
4
):
for
step
in
(
1
,
2
):
for
step
in
(
1
,
2
):
a_step1
,
a_step2
,
b_step
,
c_step
=
(
s
*
step
a_step1
,
a_step2
,
b_step
,
c_step
=
(
s
*
step
for
s
in
step_signs
)
for
s
in
step_signs
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论