Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ef2dfc15
提交
ef2dfc15
authored
8月 18, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pep8
上级
60c64280
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
4 行删除
+11
-4
test_conv_cuda_ndarray.py
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
+11
-4
没有找到文件。
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
浏览文件 @
ef2dfc15
...
@@ -635,7 +635,8 @@ def test_valid(conv_gemm=False):
...
@@ -635,7 +635,8 @@ def test_valid(conv_gemm=False):
# Test the GpuCorrMM version
# Test the GpuCorrMM version
mode
=
theano_mode
.
including
(
"conv_gemm"
)
mode
=
theano_mode
.
including
(
"conv_gemm"
)
cls
=
cuda
.
blas
.
GpuCorrMM
cls
=
cuda
.
blas
.
GpuCorrMM
version
=
[
-
1
]
# dummy version; not used by GpuCorrMM so one version is enough
# dummy version; not used by GpuCorrMM so one version is enough
version
=
[
-
1
]
# Add tests with strided inputs by still square images and filters.
# Add tests with strided inputs by still square images and filters.
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
img_stride
=
(
2
,
2
))
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
img_stride
=
(
2
,
2
))
shapes
+=
get_shapes2
(
scales_kern
=
(
2
,
2
),
kern_stride
=
(
2
,
2
))
shapes
+=
get_shapes2
(
scales_kern
=
(
2
,
2
),
kern_stride
=
(
2
,
2
))
...
@@ -645,6 +646,7 @@ def test_valid(conv_gemm=False):
...
@@ -645,6 +646,7 @@ def test_valid(conv_gemm=False):
print_
=
print_
,
ones
=
ones
,
rtol
=
1.1e-5
,
print_
=
print_
,
ones
=
ones
,
rtol
=
1.1e-5
,
theano_mode
=
mode
,
cls
=
cls
)
theano_mode
=
mode
,
cls
=
cls
)
def
test_gemm_valid
():
def
test_gemm_valid
():
test_valid
(
conv_gemm
=
True
)
test_valid
(
conv_gemm
=
True
)
...
@@ -712,12 +714,14 @@ def test_full(conv_gemm=False):
...
@@ -712,12 +714,14 @@ def test_full(conv_gemm=False):
# Test the GpuCorrMM version
# Test the GpuCorrMM version
mode
=
theano_mode
.
including
(
"conv_gemm"
)
mode
=
theano_mode
.
including
(
"conv_gemm"
)
cls
=
cuda
.
blas
.
GpuCorrMM
cls
=
cuda
.
blas
.
GpuCorrMM
version
=
[
-
1
]
# dummy version; not used by GpuCorrMM so one version is enough
# dummy version; not used by GpuCorrMM so one version is enough
version
=
[
-
1
]
else
:
else
:
mode
=
cls
=
None
mode
=
cls
=
None
exec_conv
(
version
,
shapes
,
verbose
,
random
,
'full'
,
exec_conv
(
version
,
shapes
,
verbose
,
random
,
'full'
,
theano_mode
=
mode
,
cls
=
cls
)
theano_mode
=
mode
,
cls
=
cls
)
def
test_gemm_full
():
def
test_gemm_full
():
test_full
(
conv_gemm
=
True
)
test_full
(
conv_gemm
=
True
)
...
@@ -735,7 +739,8 @@ def test_subsample(conv_gemm=False):
...
@@ -735,7 +739,8 @@ def test_subsample(conv_gemm=False):
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
subsample
=
(
2
,
1
))
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
subsample
=
(
2
,
1
))
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
subsample
=
(
2
,
2
))
shapes
+=
get_shapes2
(
scales_img
=
(
2
,
2
),
subsample
=
(
2
,
2
))
#We put only the version that implement the subsample to make the test faster.
# We put only the version that implement the subsample to make the
# test faster.
version_valid
=
[
-
2
,
-
1
,
1
,
3
,
11
,
12
]
version_valid
=
[
-
2
,
-
1
,
1
,
3
,
11
,
12
]
version_full
=
[
-
2
,
-
1
]
version_full
=
[
-
2
,
-
1
]
verbose
=
0
verbose
=
0
...
@@ -749,7 +754,8 @@ def test_subsample(conv_gemm=False):
...
@@ -749,7 +754,8 @@ def test_subsample(conv_gemm=False):
# Test the GpuCorrMM version
# Test the GpuCorrMM version
mode
=
theano_mode
.
including
(
"conv_gemm"
)
mode
=
theano_mode
.
including
(
"conv_gemm"
)
cls
=
cuda
.
blas
.
GpuCorrMM
cls
=
cuda
.
blas
.
GpuCorrMM
version_valid
=
version_full
=
[
-
1
]
# dummy version; not used by GpuCorrMM so one version is enough
# dummy version; not used by GpuCorrMM so one version is enough
version_valid
=
version_full
=
[
-
1
]
else
:
else
:
mode
=
cls
=
None
mode
=
cls
=
None
...
@@ -760,6 +766,7 @@ def test_subsample(conv_gemm=False):
...
@@ -760,6 +766,7 @@ def test_subsample(conv_gemm=False):
print_
=
print_
,
ones
=
ones
,
print_
=
print_
,
ones
=
ones
,
theano_mode
=
mode
,
cls
=
cls
)
theano_mode
=
mode
,
cls
=
cls
)
def
test_gemm_subsample
():
def
test_gemm_subsample
():
test_subsample
(
conv_gemm
=
True
)
test_subsample
(
conv_gemm
=
True
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论