Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e51b6a22
提交
e51b6a22
authored
8月 21, 2017
作者:
notoraptor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos
上级
bf4db351
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
dnn_conv_base.c
theano/gpuarray/c_code/dnn_conv_base.c
+2
-2
dnn_fwd.c
theano/gpuarray/c_code/dnn_fwd.c
+1
-1
dnn_gi.c
theano/gpuarray/c_code/dnn_gi.c
+1
-1
dnn_gw.c
theano/gpuarray/c_code/dnn_gw.c
+1
-1
没有找到文件。
theano/gpuarray/c_code/dnn_conv_base.c
浏览文件 @
e51b6a22
...
...
@@ -3,7 +3,7 @@ cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t
APPLY_SPECIFIC
(
output
);
cudnnFilterDescriptor_t
APPLY_SPECIFIC
(
kerns
);
static
int
c_
check
_groups_for_conv
(
cudnnConvolutionDescriptor_t
desc
,
int
groups
)
{
static
int
c_
get
_groups_for_conv
(
cudnnConvolutionDescriptor_t
desc
,
int
groups
)
{
#if CUDNN_MAJOR >= 7
int
desc_groups
;
if
(
groups
>
1
)
{
...
...
@@ -83,7 +83,7 @@ typedef std::unordered_map<std::string, AlgoRec> AlgoCache;
#endif
#include "pthread.h"
#line
73
"dnn_conv_base.c"
#line
87
"dnn_conv_base.c"
pthread_mutex_t
algoMutex
;
AlgoCache
algoCache
;
...
...
theano/gpuarray/c_code/dnn_fwd.c
浏览文件 @
e51b6a22
...
...
@@ -167,7 +167,7 @@ APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
return
0
;
}
int
groups
=
c_
check
_groups_for_conv
(
desc
,
params
->
num_groups
);
int
groups
=
c_
get
_groups_for_conv
(
desc
,
params
->
num_groups
);
if
(
groups
==
-
1
)
return
1
;
if
(
c_set_tensor_for_conv
(
input
,
APPLY_SPECIFIC
(
input
),
groups
)
==
-
1
)
...
...
theano/gpuarray/c_code/dnn_gi.c
浏览文件 @
e51b6a22
...
...
@@ -132,7 +132,7 @@ APPLY_SPECIFIC(conv_gi)(PyGpuArrayObject *kerns, PyGpuArrayObject *output,
return
0
;
}
int
groups
=
c_
check
_groups_for_conv
(
desc
,
params
->
num_groups
);
int
groups
=
c_
get
_groups_for_conv
(
desc
,
params
->
num_groups
);
if
(
groups
==
-
1
)
return
1
;
if
(
c_set_tensor_for_conv
(
output
,
APPLY_SPECIFIC
(
output
),
groups
)
==
-
1
)
...
...
theano/gpuarray/c_code/dnn_gw.c
浏览文件 @
e51b6a22
...
...
@@ -119,7 +119,7 @@ APPLY_SPECIFIC(conv_gw)(PyGpuArrayObject *input, PyGpuArrayObject *output,
return
0
;
}
int
groups
=
c_
check
_groups_for_conv
(
desc
,
params
->
num_groups
);
int
groups
=
c_
get
_groups_for_conv
(
desc
,
params
->
num_groups
);
if
(
groups
==
-
1
)
return
1
;
if
(
c_set_tensor_for_conv
(
input
,
APPLY_SPECIFIC
(
input
),
groups
)
==
-
1
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论