Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
afd11ed2
提交
afd11ed2
authored
3月 14, 2017
作者:
Frédéric Bastien
提交者:
GitHub
3月 14, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5682 from nouiz/dnn_enabled
dnn.enabled=no_check
上级
17336074
f99646d7
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
13 行增加
和
5 行删除
+13
-5
install_ubuntu.txt
doc/install_ubuntu.txt
+1
-1
config.txt
doc/library/config.txt
+2
-0
function_module.py
theano/compile/function_module.py
+1
-1
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/install_ubuntu.txt
浏览文件 @
afd11ed2
...
...
@@ -30,7 +30,7 @@ For Ubuntu 16.04 with cuda 7.5
.. code-block:: bash
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
graphviz
sudo pip install Theano
# cuda 7.5 don't support the default g++ version. Install an supported version and make it the default.
...
...
doc/library/config.txt
浏览文件 @
afd11ed2
...
...
@@ -692,6 +692,8 @@ import theano and print the config variable, as in:
If ``'False'``, do not use cuDNN or check if it is available.
If ``'no_check'``, assume present and the version between header and library match (so less compilation at context init)",
.. attribute:: config.conv.assert_shape
If True, AbstractConv* ops will verify that user-provided
...
...
theano/compile/function_module.py
浏览文件 @
afd11ed2
...
...
@@ -670,7 +670,7 @@ class Function(object):
if
name
:
message
=
name
else
:
message
=
str
(
maker
.
profile
.
message
)
+
" copy"
message
=
str
(
profile
.
message
)
+
" copy"
profile
=
theano
.
compile
.
profiling
.
ProfileStats
(
message
=
message
)
# profile -> object
elif
type
(
profile
)
==
str
:
...
...
theano/configdefaults.py
浏览文件 @
afd11ed2
...
...
@@ -414,8 +414,9 @@ AddConfigVar('dnn.enabled',
"'auto', use cuDNN if available, but silently fall back"
" to not using it if not present."
" If True and cuDNN can not be used, raise an error."
" If False, disable cudnn"
,
EnumStr
(
"auto"
,
"True"
,
"False"
),
" If False, disable cudnn even if present."
" If no_check, assume present and the version between header and library match (so less compilation at context init)"
,
EnumStr
(
"auto"
,
"True"
,
"False"
,
"no_check"
),
in_c_key
=
False
)
# This flag determines whether or not to raise error/warning message if
...
...
theano/gpuarray/dnn.py
浏览文件 @
afd11ed2
...
...
@@ -152,7 +152,10 @@ def dnn_present():
dnn_present
.
avail
=
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
:
dnn_present
.
avail
,
dnn_present
.
msg
=
_dnn_check_version
()
if
not
dnn_present
.
avail
:
...
...
theano/sandbox/cuda/__init__.py
浏览文件 @
afd11ed2
...
...
@@ -282,6 +282,8 @@ def dnn_available():
if
dnn_available
.
avail
is
None
and
not
cuda_available
:
dnn_available
.
msg
=
"CUDA not available"
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
:
dev
=
active_device_number
()
if
device_properties
(
dev
)[
'major'
]
<
3
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论