Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
aaa59e03
提交
aaa59e03
authored
7月 08, 2016
作者:
theano-bot
提交者:
GitHub
7月 08, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4696 from Sentient07/dilation_cleanup
Fixed few errors generated from Dilation PR
上级
2cdc1e6e
8a1daf85
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
4 行删除
+7
-4
test_abstractconv.py
theano/gpuarray/tests/test_abstractconv.py
+4
-3
abstract_conv.py
theano/tensor/nnet/abstract_conv.py
+3
-1
没有找到文件。
theano/gpuarray/tests/test_abstractconv.py
浏览文件 @
aaa59e03
...
@@ -21,12 +21,13 @@ class TestDnnConv2d(test_abstract_conv.BaseTestConv2d):
...
@@ -21,12 +21,13 @@ class TestDnnConv2d(test_abstract_conv.BaseTestConv2d):
# provide_shape is not used by the cuDNN impementation
# provide_shape is not used by the cuDNN impementation
self
.
provide_shape
=
[
False
]
self
.
provide_shape
=
[
False
]
def
tcase
(
self
,
i
,
f
,
s
,
b
,
flip
,
provide_shape
):
def
tcase
(
self
,
i
,
f
,
s
,
b
,
flip
,
provide_shape
,
fd
=
(
1
,
1
)
):
if
not
dnn_available
(
test_ctx_name
):
if
not
dnn_available
(
test_ctx_name
):
raise
SkipTest
(
dnn_available
.
msg
)
raise
SkipTest
(
dnn_available
.
msg
)
mode
=
mode_with_gpu
mode
=
mode_with_gpu
if
fd
!=
(
1
,
1
):
o
=
self
.
get_output_shape
(
i
,
f
,
s
,
b
)
raise
SkipTest
(
"Doesn't have CUDNN implementation"
)
o
=
self
.
get_output_shape
(
i
,
f
,
s
,
b
,
fd
)
self
.
run_fwd
(
inputs_shape
=
i
,
filters_shape
=
f
,
subsample
=
s
,
self
.
run_fwd
(
inputs_shape
=
i
,
filters_shape
=
f
,
subsample
=
s
,
verify_grad
=
True
,
mode
=
mode
,
verify_grad
=
True
,
mode
=
mode
,
provide_shape
=
provide_shape
,
border_mode
=
b
,
provide_shape
=
provide_shape
,
border_mode
=
b
,
...
...
theano/tensor/nnet/abstract_conv.py
浏览文件 @
aaa59e03
...
@@ -33,7 +33,7 @@ _logger = logging.getLogger("theano.tensor.nnet.abstract_conv")
...
@@ -33,7 +33,7 @@ _logger = logging.getLogger("theano.tensor.nnet.abstract_conv")
def
get_conv_output_shape
(
image_shape
,
kernel_shape
,
def
get_conv_output_shape
(
image_shape
,
kernel_shape
,
border_mode
,
subsample
,
border_mode
,
subsample
,
filter_dilation
=
(
1
,
1
)
):
filter_dilation
=
None
):
"""
"""
This function compute the output shape of convolution operation.
This function compute the output shape of convolution operation.
...
@@ -66,6 +66,8 @@ def get_conv_output_shape(image_shape, kernel_shape,
...
@@ -66,6 +66,8 @@ def get_conv_output_shape(image_shape, kernel_shape,
"""
"""
bsize
,
imshp
=
image_shape
[
0
],
image_shape
[
2
:]
bsize
,
imshp
=
image_shape
[
0
],
image_shape
[
2
:]
nkern
,
kshp
=
kernel_shape
[
0
],
kernel_shape
[
2
:]
nkern
,
kshp
=
kernel_shape
[
0
],
kernel_shape
[
2
:]
if
filter_dilation
is
None
:
filter_dilation
=
numpy
.
ones
(
len
(
subsample
),
dtype
=
'int'
)
if
isinstance
(
border_mode
,
tuple
):
if
isinstance
(
border_mode
,
tuple
):
out_shp
=
tuple
(
get_conv_shape_1axis
(
out_shp
=
tuple
(
get_conv_shape_1axis
(
imshp
[
i
],
kshp
[
i
],
border_mode
[
i
],
imshp
[
i
],
kshp
[
i
],
border_mode
[
i
],
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论