Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
96be471e
提交
96be471e
authored
10月 20, 2016
作者:
Frédéric Bastien
提交者:
GitHub
10月 20, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5122 from gvtulder/f-faster-conv3d-tests
Somewhat smaller/faster 3d convolution tests
上级
67f31fb4
cb0e84e0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
16 行删除
+13
-16
test_abstract_conv.py
theano/tensor/nnet/tests/test_abstract_conv.py
+2
-2
test_corr3d.py
theano/tensor/nnet/tests/test_corr3d.py
+11
-14
没有找到文件。
theano/tensor/nnet/tests/test_abstract_conv.py
浏览文件 @
96be471e
...
@@ -598,8 +598,8 @@ class BaseTestConv3d(BaseTestConv):
...
@@ -598,8 +598,8 @@ class BaseTestConv3d(BaseTestConv):
def
setup_class
(
cls
):
def
setup_class
(
cls
):
if
theano
.
config
.
blas
.
ldflags
==
''
:
if
theano
.
config
.
blas
.
ldflags
==
''
:
raise
SkipTest
(
"BLAS required for reference"
)
raise
SkipTest
(
"BLAS required for reference"
)
cls
.
inputs_shapes
=
[(
2
,
1
,
6
,
6
,
6
),
(
2
,
2
,
7
,
5
,
6
)]
cls
.
inputs_shapes
=
[(
2
,
1
,
5
,
5
,
5
),
(
1
,
2
,
7
,
5
,
6
)]
cls
.
filters_shapes
=
[(
3
,
1
,
2
,
2
,
2
),
(
1
,
2
,
2
,
3
,
1
)]
cls
.
filters_shapes
=
[(
2
,
1
,
2
,
2
,
2
),
(
1
,
2
,
2
,
1
,
3
)]
cls
.
subsamples
=
[(
1
,
1
,
1
),
(
2
,
2
,
2
),
(
1
,
2
,
3
)]
cls
.
subsamples
=
[(
1
,
1
,
1
),
(
2
,
2
,
2
),
(
1
,
2
,
3
)]
cls
.
default_subsamples
=
(
1
,
1
,
1
)
cls
.
default_subsamples
=
(
1
,
1
,
1
)
cls
.
filters_dilations
=
[(
1
,
1
,
1
),
(
1
,
2
,
1
),
(
2
,
1
,
2
)]
cls
.
filters_dilations
=
[(
1
,
1
,
1
),
(
1
,
2
,
1
),
(
2
,
1
,
2
)]
...
...
theano/tensor/nnet/tests/test_corr3d.py
浏览文件 @
96be471e
...
@@ -167,7 +167,7 @@ class TestCorr3D(utt.InferShapeTester):
...
@@ -167,7 +167,7 @@ class TestCorr3D(utt.InferShapeTester):
self
.
validate
(
img
,
fil
,
border_mode
,
verify_grad
=
False
)
self
.
validate
(
img
,
fil
,
border_mode
,
verify_grad
=
False
)
# Very slow on with 'full' or 'half'
# Very slow on with 'full' or 'half'
self
.
validate
((
1
,
10
,
213
,
129
,
129
),
(
46
,
10
,
2
12
,
1
,
1
),
'valid'
,
verify_grad
=
False
)
self
.
validate
((
1
,
2
,
53
,
29
,
11
),
(
13
,
2
,
12
,
1
,
1
),
'valid'
,
verify_grad
=
False
)
def
test_img_kernel_same_shape
(
self
):
def
test_img_kernel_same_shape
(
self
):
self
.
validate
((
3
,
2
,
3
,
3
,
3
),
(
1
,
2
,
3
,
3
,
3
),
'full'
)
self
.
validate
((
3
,
2
,
3
,
3
,
3
),
(
1
,
2
,
3
,
3
,
3
),
'full'
)
...
@@ -254,7 +254,7 @@ class TestCorr3D(utt.InferShapeTester):
...
@@ -254,7 +254,7 @@ class TestCorr3D(utt.InferShapeTester):
Tests basic correlation in full mode and case where filter
Tests basic correlation in full mode and case where filter
is larger than the input image.
is larger than the input image.
"""
"""
self
.
validate
((
3
,
2
,
5
,
5
,
5
),
(
4
,
2
,
8
,
8
,
8
),
'full'
)
self
.
validate
((
3
,
1
,
4
,
4
,
4
),
(
2
,
1
,
5
,
5
,
5
),
'full'
)
def
f
():
def
f
():
self
.
validate
((
3
,
2
,
5
,
5
,
5
),
(
4
,
2
,
8
,
8
,
8
),
'valid'
)
self
.
validate
((
3
,
2
,
5
,
5
,
5
),
(
4
,
2
,
8
,
8
,
8
),
'valid'
)
...
@@ -410,18 +410,15 @@ class TestCorr3D(utt.InferShapeTester):
...
@@ -410,18 +410,15 @@ class TestCorr3D(utt.InferShapeTester):
def
test_non_contiguous
(
self
):
def
test_non_contiguous
(
self
):
self
.
validate
((
2
,
2
,
3
,
3
,
3
),
(
2
,
2
,
2
,
2
,
2
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
2
,
2
,
3
,
3
,
3
),
(
2
,
2
,
2
,
2
,
2
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
8
,
8
,
8
),
(
4
,
2
,
5
,
5
,
5
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
8
,
8
,
8
),
(
2
,
2
,
5
,
5
,
5
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
3
,
2
,
2
,
3
,
3
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
3
,
2
,
2
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
3
,
2
,
3
,
2
,
2
),
'valid'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
8
,
8
,
8
),
(
4
,
2
,
5
,
5
,
5
),
'full'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
8
,
8
,
8
),
(
2
,
1
,
5
,
5
,
5
),
'full'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
'full'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
8
,
8
,
8
),
(
2
,
1
,
5
,
5
,
5
),
'half'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
8
,
8
,
8
),
(
4
,
2
,
5
,
5
,
5
),
'half'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
8
,
8
,
8
),
(
2
,
1
,
5
,
5
,
5
),
(
1
,
1
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
'half'
,
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
7
,
5
,
5
),
(
2
,
1
,
2
,
3
,
3
),
(
1
,
1
,
2
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
8
,
8
,
8
),
(
4
,
2
,
5
,
5
,
5
),
(
1
,
1
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
7
,
5
,
5
),
(
2
,
1
,
2
,
3
,
3
),
(
1
,
2
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
(
1
,
1
,
2
),
non_contiguous
=
True
)
self
.
validate
((
3
,
1
,
7
,
5
,
5
),
(
2
,
1
,
2
,
3
,
3
),
(
2
,
1
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
(
1
,
2
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
(
2
,
1
,
1
),
non_contiguous
=
True
)
self
.
validate
((
3
,
2
,
7
,
5
,
5
),
(
5
,
2
,
2
,
3
,
3
),
2
,
non_contiguous
=
True
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论