Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
2fc9f319
提交
2fc9f319
authored
2月 15, 2016
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change the base conv test class so it doesn't get tested itself.
上级
1b4784a9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
6 行删除
+5
-6
test_abstractconv.py
theano/sandbox/cuda/tests/test_abstractconv.py
+1
-1
test_abstractconv.py
theano/sandbox/gpuarray/tests/test_abstractconv.py
+1
-1
test_abstract_conv.py
theano/tensor/nnet/tests/test_abstract_conv.py
+3
-4
没有找到文件。
theano/sandbox/cuda/tests/test_abstractconv.py
浏览文件 @
2fc9f319
...
@@ -19,7 +19,7 @@ else:
...
@@ -19,7 +19,7 @@ else:
mode_with_gpu
=
theano
.
compile
.
mode
.
get_default_mode
()
.
including
(
'gpu'
)
mode_with_gpu
=
theano
.
compile
.
mode
.
get_default_mode
()
.
including
(
'gpu'
)
class
TestDnnConv2d
(
test_abstract_conv
.
TestConv2d
):
class
TestDnnConv2d
(
test_abstract_conv
.
Base
TestConv2d
):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
TestDnnConv2d
,
self
)
.
setUp
()
super
(
TestDnnConv2d
,
self
)
.
setUp
()
# provide_shape is not used by the CuDNN impementation
# provide_shape is not used by the CuDNN impementation
...
...
theano/sandbox/gpuarray/tests/test_abstractconv.py
浏览文件 @
2fc9f319
...
@@ -9,7 +9,7 @@ from .config import mode_with_gpu, test_ctx_name
...
@@ -9,7 +9,7 @@ from .config import mode_with_gpu, test_ctx_name
gpu_ftensor4
=
GpuArrayType
(
dtype
=
'float32'
,
broadcastable
=
(
False
,)
*
4
)
gpu_ftensor4
=
GpuArrayType
(
dtype
=
'float32'
,
broadcastable
=
(
False
,)
*
4
)
class
TestDnnConv2d
(
test_abstract_conv
.
TestConv2d
):
class
TestDnnConv2d
(
test_abstract_conv
.
Base
TestConv2d
):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
TestDnnConv2d
,
self
)
.
setUp
()
super
(
TestDnnConv2d
,
self
)
.
setUp
()
self
.
shared
=
gpuarray_shared_constructor
self
.
shared
=
gpuarray_shared_constructor
...
...
theano/tensor/nnet/tests/test_abstract_conv.py
浏览文件 @
2fc9f319
...
@@ -56,9 +56,8 @@ class TestGetConvOutShape(unittest.TestCase):
...
@@ -56,9 +56,8 @@ class TestGetConvOutShape(unittest.TestCase):
self
.
assertTrue
(
test4_params
==
(
3
,
4
,
6
,
4
))
self
.
assertTrue
(
test4_params
==
(
3
,
4
,
6
,
4
))
class
TestConv2d
(
unittest
.
TestCase
):
class
BaseTestConv2d
(
object
):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
TestConv2d
,
self
)
.
setUp
()
self
.
inputs_shapes
=
[(
8
,
1
,
12
,
12
),
(
8
,
1
,
18
,
18
),
(
2
,
1
,
4
,
4
),
self
.
inputs_shapes
=
[(
8
,
1
,
12
,
12
),
(
8
,
1
,
18
,
18
),
(
2
,
1
,
4
,
4
),
(
6
,
1
,
10
,
11
),
(
2
,
1
,
6
,
5
),
(
1
,
5
,
9
,
9
)]
(
6
,
1
,
10
,
11
),
(
2
,
1
,
6
,
5
),
(
1
,
5
,
9
,
9
)]
self
.
filters_shapes
=
[(
5
,
1
,
2
,
2
),
(
4
,
1
,
3
,
3
),
(
2
,
1
,
3
,
3
),
self
.
filters_shapes
=
[(
5
,
1
,
2
,
2
),
(
4
,
1
,
3
,
3
),
(
2
,
1
,
3
,
3
),
...
@@ -252,7 +251,7 @@ class TestConv2d(unittest.TestCase):
...
@@ -252,7 +251,7 @@ class TestConv2d(unittest.TestCase):
self
.
tcase
(
i
,
f
,
ds
,
db
,
flip
,
dprovide_shape
)
self
.
tcase
(
i
,
f
,
ds
,
db
,
flip
,
dprovide_shape
)
class
TestCorrConv2d
(
TestConv2d
):
class
TestCorrConv2d
(
Base
TestConv2d
):
def
tcase
(
self
,
i
,
f
,
s
,
b
,
flip
,
provide_shape
):
def
tcase
(
self
,
i
,
f
,
s
,
b
,
flip
,
provide_shape
):
o
=
self
.
get_output_shape
(
i
,
f
,
s
,
b
)
o
=
self
.
get_output_shape
(
i
,
f
,
s
,
b
)
self
.
run_fwd
(
inputs_shape
=
i
,
filters_shape
=
f
,
subsample
=
s
,
self
.
run_fwd
(
inputs_shape
=
i
,
filters_shape
=
f
,
subsample
=
s
,
...
@@ -268,7 +267,7 @@ class TestCorrConv2d(TestConv2d):
...
@@ -268,7 +267,7 @@ class TestCorrConv2d(TestConv2d):
filter_flip
=
flip
,
target_op
=
CorrMM_gradInputs
)
filter_flip
=
flip
,
target_op
=
CorrMM_gradInputs
)
class
TestCpuConv2d
(
TestConv2d
):
class
TestCpuConv2d
(
Base
TestConv2d
):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
TestCpuConv2d
,
self
)
.
setUp
()
super
(
TestCpuConv2d
,
self
)
.
setUp
()
self
.
mode
=
theano
.
compile
.
mode
.
get_default_mode
()
.
excluding
(
'conv_gemm'
)
self
.
mode
=
theano
.
compile
.
mode
.
get_default_mode
()
.
excluding
(
'conv_gemm'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论