Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
350af57b
提交
350af57b
authored
3月 09, 2017
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add dnn.enabled=no_check to speed up import
上级
fbf28a02
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
3 行删除
+11
-3
config.txt
doc/library/config.txt
+2
-0
configdefaults.py
theano/configdefaults.py
+3
-2
dnn.py
theano/gpuarray/dnn.py
+4
-1
__init__.py
theano/sandbox/cuda/__init__.py
+2
-0
没有找到文件。
doc/library/config.txt
浏览文件 @
350af57b
...
@@ -693,6 +693,8 @@ import theano and print the config variable, as in:
...
@@ -693,6 +693,8 @@ import theano and print the config variable, as in:
If ``'False'``, do not use cuDNN or check if it is available.
If ``'False'``, do not use cuDNN or check if it is available.
If ``'no_check'``, assume present and the version between heasers and linked match (so less compilation at context init)",
.. attribute:: config.conv.assert_shape
.. attribute:: config.conv.assert_shape
If True, AbstractConv* ops will verify that user-provided
If True, AbstractConv* ops will verify that user-provided
...
...
theano/configdefaults.py
浏览文件 @
350af57b
...
@@ -414,8 +414,9 @@ AddConfigVar('dnn.enabled',
...
@@ -414,8 +414,9 @@ AddConfigVar('dnn.enabled',
"'auto', use cuDNN if available, but silently fall back"
"'auto', use cuDNN if available, but silently fall back"
" to not using it if not present."
" to not using it if not present."
" If True and cuDNN can not be used, raise an error."
" If True and cuDNN can not be used, raise an error."
" If False, disable cudnn"
,
" If False, disable cudnn even if present."
EnumStr
(
"auto"
,
"True"
,
"False"
),
" If no_check, assume present and the version between heasers and linked match (so less compilation at context init)"
,
EnumStr
(
"auto"
,
"True"
,
"False"
,
"no_check"
),
in_c_key
=
False
)
in_c_key
=
False
)
# This flag determines whether or not to raise error/warning message if
# This flag determines whether or not to raise error/warning message if
...
...
theano/gpuarray/dnn.py
浏览文件 @
350af57b
...
@@ -152,7 +152,10 @@ def dnn_present():
...
@@ -152,7 +152,10 @@ def dnn_present():
dnn_present
.
avail
=
False
dnn_present
.
avail
=
False
return
False
return
False
dnn_present
.
avail
,
dnn_present
.
msg
=
_dnn_check_compile
()
if
config
.
dnn
.
enabled
==
"no_check"
:
dnn_present
.
avail
,
dnn_present
.
msg
=
True
,
"presence check disabled by dnn.enabled flag"
else
:
dnn_present
.
avail
,
dnn_present
.
msg
=
_dnn_check_compile
()
if
dnn_present
.
avail
:
if
dnn_present
.
avail
:
dnn_present
.
avail
,
dnn_present
.
msg
=
_dnn_check_version
()
dnn_present
.
avail
,
dnn_present
.
msg
=
_dnn_check_version
()
if
not
dnn_present
.
avail
:
if
not
dnn_present
.
avail
:
...
...
theano/sandbox/cuda/__init__.py
浏览文件 @
350af57b
...
@@ -282,6 +282,8 @@ def dnn_available():
...
@@ -282,6 +282,8 @@ def dnn_available():
if
dnn_available
.
avail
is
None
and
not
cuda_available
:
if
dnn_available
.
avail
is
None
and
not
cuda_available
:
dnn_available
.
msg
=
"CUDA not available"
dnn_available
.
msg
=
"CUDA not available"
dnn_available
.
avail
=
False
dnn_available
.
avail
=
False
elif
config
.
dnn
.
enabled
==
"no_check"
:
raise
RuntimeException
(
"The old gpu back-end do not support the flag dnn.enabled=no_check"
)
elif
dnn_available
.
avail
is
None
:
elif
dnn_available
.
avail
is
None
:
dev
=
active_device_number
()
dev
=
active_device_number
()
if
device_properties
(
dev
)[
'major'
]
<
3
:
if
device_properties
(
dev
)[
'major'
]
<
3
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论