Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9f37bce1
提交
9f37bce1
authored
5月 10, 2017
作者:
Gabe Schwartz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added support for cudnn v6 dilated convolution.
上级
89aac420
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
conv_desc.c
theano/gpuarray/conv_desc.c
+7
-2
dnn.py
theano/gpuarray/dnn.py
+0
-0
dnn_fwd.c
theano/gpuarray/dnn_fwd.c
+2
-2
没有找到文件。
theano/gpuarray/conv_desc.c
浏览文件 @
9f37bce1
...
@@ -5,7 +5,7 @@ int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
...
@@ -5,7 +5,7 @@ int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
cudnnStatus_t
err
;
cudnnStatus_t
err
;
int
pad
[
3
]
=
{
PAD_0
,
PAD_1
,
PAD_2
};
int
pad
[
3
]
=
{
PAD_0
,
PAD_1
,
PAD_2
};
int
strides
[
3
]
=
{
SUB_0
,
SUB_1
,
SUB_2
};
int
strides
[
3
]
=
{
SUB_0
,
SUB_1
,
SUB_2
};
int
upscale
[
3
]
=
{
1
,
1
,
1
};
int
dilation
[
3
]
=
{
DIL_0
,
DIL_1
,
DIL_2
};
#if BORDER_MODE == 0
#if BORDER_MODE == 0
pad
[
0
]
=
*
(
npy_int64
*
)
PyArray_GETPTR1
(
filt_shp
,
2
)
-
1
;
pad
[
0
]
=
*
(
npy_int64
*
)
PyArray_GETPTR1
(
filt_shp
,
2
)
-
1
;
...
@@ -36,6 +36,11 @@ int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
...
@@ -36,6 +36,11 @@ int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
}
}
err
=
cudnnSetConvolutionNdDescriptor
(
*
desc
,
NB_DIMS
,
pad
,
strides
,
err
=
cudnnSetConvolutionNdDescriptor
(
*
desc
,
NB_DIMS
,
pad
,
strides
,
upscale
,
CONV_MODE
,
PRECISION
);
dilation
,
CONV_MODE
,
PRECISION
);
if
(
err
!=
CUDNN_STATUS_SUCCESS
)
{
PyErr_Format
(
PyExc_MemoryError
,
"could not set convolution "
"descriptor: %s"
,
cudnnGetErrorString
(
err
));
return
-
1
;
}
return
0
;
return
0
;
}
}
theano/gpuarray/dnn.py
浏览文件 @
9f37bce1
差异被折叠。
点击展开。
theano/gpuarray/dnn_fwd.c
浏览文件 @
9f37bce1
...
@@ -188,11 +188,11 @@ APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
...
@@ -188,11 +188,11 @@ APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
int
nd
;
int
nd
;
int
pad
[
2
];
int
pad
[
2
];
int
stride
[
2
];
int
stride
[
2
];
int
upscale
[
2
];
int
dilation
[
2
];
cudnnConvolutionMode_t
mode
;
cudnnConvolutionMode_t
mode
;
cudnnDataType_t
data_type
;
cudnnDataType_t
data_type
;
err
=
cudnnGetConvolutionNdDescriptor
(
desc
,
2
,
&
nd
,
pad
,
stride
,
err
=
cudnnGetConvolutionNdDescriptor
(
desc
,
2
,
&
nd
,
pad
,
stride
,
upscale
,
&
mode
,
&
data_type
);
dilation
,
&
mode
,
&
data_type
);
if
(
err
!=
CUDNN_STATUS_SUCCESS
)
{
if
(
err
!=
CUDNN_STATUS_SUCCESS
)
{
PyErr_Format
(
PyExc_RuntimeError
,
PyErr_Format
(
PyExc_RuntimeError
,
"error getting convolution properties: %s"
,
"error getting convolution properties: %s"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论