Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
00466269
提交
00466269
authored
7月 24, 2017
作者:
notoraptor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Init struct variables correctly and print
infos about time-chosen algo status.
上级
ee22927e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
33 行删除
+30
-33
dnn_fwd.c
theano/gpuarray/dnn_fwd.c
+10
-11
dnn_gi.c
theano/gpuarray/dnn_gi.c
+10
-11
dnn_gw.c
theano/gpuarray/dnn_gw.c
+10
-11
没有找到文件。
theano/gpuarray/dnn_fwd.c
浏览文件 @
00466269
#section init_code_struct
#section init_code_struct
if
(
PARAMS
->
choose_algo
)
{
reuse_algo
=
0
;
reuse_algo
=
0
;
prev_algo
=
PARAMS
->
conv_algo
;
prev_algo
=
PARAMS
->
conv_algo
;
memset
(
prev_img_dims
,
0
,
sizeof
(
prev_img_dims
));
if
(
!
PARAMS
->
choose_once
)
{
memset
(
prev_kern_dims
,
0
,
sizeof
(
prev_kern_dims
));
memset
(
prev_img_dims
,
0
,
sizeof
(
prev_img_dims
));
memset
(
prev_kern_dims
,
0
,
sizeof
(
prev_kern_dims
));
}
}
#section support_code_struct
#section support_code_struct
...
@@ -146,9 +142,12 @@ APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
...
@@ -146,9 +142,12 @@ APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
if
(
count
==
0
)
{
if
(
count
==
0
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv fwd algorithm found"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv fwd algorithm found"
);
return
1
;
return
1
;
}
else
{
}
else
if
(
choice
.
status
!=
CUDNN_STATUS_SUCCESS
)
{
fprintf
(
stderr
,
"(%d best-timed conv fwd algorithms)
\n
"
,
count
);
PyErr_Format
(
PyExc_RuntimeError
,
}
"error getting best-timed FWD algo: %s"
,
cudnnGetErrorString
(
choice
.
status
));
return
1
;
}
// Else, count is necessarly 1 for current implementation.
#endif
#endif
}
else
{
}
else
{
...
...
theano/gpuarray/dnn_gi.c
浏览文件 @
00466269
#section init_code_struct
#section init_code_struct
if
(
PARAMS
->
choose_algo
)
{
reuse_algo
=
0
;
reuse_algo
=
0
;
prev_algo
=
PARAMS
->
conv_algo
;
prev_algo
=
PARAMS
->
conv_algo
;
memset
(
prev_kern_dims
,
0
,
sizeof
(
prev_kern_dims
));
if
(
!
PARAMS
->
choose_once
)
{
memset
(
prev_top_dims
,
0
,
sizeof
(
prev_top_dims
));
memset
(
prev_kern_dims
,
0
,
sizeof
(
prev_kern_dims
));
memset
(
prev_top_dims
,
0
,
sizeof
(
prev_top_dims
));
}
}
#section support_code_struct
#section support_code_struct
...
@@ -186,9 +182,12 @@ APPLY_SPECIFIC(conv_gi)(PyGpuArrayObject *kerns, PyGpuArrayObject *output,
...
@@ -186,9 +182,12 @@ APPLY_SPECIFIC(conv_gi)(PyGpuArrayObject *kerns, PyGpuArrayObject *output,
if
(
count
==
0
)
{
if
(
count
==
0
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv gradinput algorithm found"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv gradinput algorithm found"
);
return
1
;
return
1
;
}
else
{
}
else
if
(
choice
.
status
!=
CUDNN_STATUS_SUCCESS
)
{
fprintf
(
stderr
,
"(%d best-timed conv gradinput algorithms)
\n
"
,
count
);
PyErr_Format
(
PyExc_RuntimeError
,
}
"error getting best-timed gradinput algo: %s"
,
cudnnGetErrorString
(
choice
.
status
));
return
1
;
}
// Else, count is necessarly 1 for current implementation.
#endif
#endif
}
else
{
}
else
{
...
...
theano/gpuarray/dnn_gw.c
浏览文件 @
00466269
#section init_code_struct
#section init_code_struct
if
(
PARAMS
->
choose_algo
)
{
reuse_algo
=
0
;
reuse_algo
=
0
;
prev_algo
=
PARAMS
->
conv_algo
;
prev_algo
=
PARAMS
->
conv_algo
;
memset
(
prev_img_dims
,
0
,
sizeof
(
prev_img_dims
));
if
(
!
PARAMS
->
choose_once
)
{
memset
(
prev_top_dims
,
0
,
sizeof
(
prev_top_dims
));
memset
(
prev_img_dims
,
0
,
sizeof
(
prev_img_dims
));
memset
(
prev_top_dims
,
0
,
sizeof
(
prev_top_dims
));
}
}
#section support_code_struct
#section support_code_struct
...
@@ -188,9 +184,12 @@ APPLY_SPECIFIC(conv_gw)(PyGpuArrayObject *input, PyGpuArrayObject *output,
...
@@ -188,9 +184,12 @@ APPLY_SPECIFIC(conv_gw)(PyGpuArrayObject *input, PyGpuArrayObject *output,
if
(
count
==
0
)
{
if
(
count
==
0
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv gradweight algorithm found"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"No best-timed conv gradweight algorithm found"
);
return
1
;
return
1
;
}
else
{
}
else
if
(
choice
.
status
!=
CUDNN_STATUS_SUCCESS
)
{
fprintf
(
stderr
,
"(%d best-timed conv gradweight algorithms)
\n
"
,
count
);
PyErr_Format
(
PyExc_RuntimeError
,
}
"error getting best-timed gradweight algo: %s"
,
cudnnGetErrorString
(
choice
.
status
));
return
1
;
}
// Else, count is necessarly 1 for current implementation.
#endif
#endif
}
else
{
}
else
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论