Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f37172c1
提交
f37172c1
authored
1月 21, 2015
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2425 from nouiz/dnn
Crash fix in dnn_available when CUDA isn't available.
上级
f0efd2a7
615bc2c8
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
28 行增加
和
0 行删除
+28
-0
dnn.txt
doc/library/sandbox/cuda/dnn.txt
+8
-0
typed_list.txt
doc/library/typed_list.txt
+6
-0
printing_drawing.txt
doc/tutorial/printing_drawing.txt
+10
-0
dnn.py
theano/sandbox/cuda/dnn.py
+4
-0
没有找到文件。
doc/library/sandbox/cuda/dnn.txt
浏览文件 @
f37172c1
...
@@ -40,6 +40,14 @@ To get an error if Theano can not use cuDNN, use this Theano flag:
...
@@ -40,6 +40,14 @@ To get an error if Theano can not use cuDNN, use this Theano flag:
currently does not allow all options supported by cuDNN ops. So it is
currently does not allow all options supported by cuDNN ops. So it is
possible that you will need to call them manually.
possible that you will need to call them manually.
.. note::
The documentation of CUDNN R1 and R2 tells that, for the following
2 operations, the reproducibility is not guaranteed:
`cudnnConvolutionBackwardFilter` and `cudnnConvolutionBackwardData`.
Those correspond to the gradient wrt the weights and the gradient wrt the
input of the convolution. They are also used sometimes in the forward
pass, when they give a speed up.
Functions
Functions
=========
=========
...
...
doc/library/typed_list.txt
浏览文件 @
f37172c1
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
This is not in the released version 0.6.0, but will be in the next release (0.7 or 0.6.1).
This is not in the released version 0.6.0, but will be in the next release (0.7 or 0.6.1).
.. note::
This works, but is not well integrated with the rest of Theano. If
speed is important, it is probably better to pad to a dense
tensor.
This is a type that represents a list in Theano. All elements must have
This is a type that represents a list in Theano. All elements must have
the same Theano type. Here is an example::
the same Theano type. Here is an example::
...
...
doc/tutorial/printing_drawing.txt
浏览文件 @
f37172c1
...
@@ -14,6 +14,16 @@ compilation. These two functions print expression graphs in different ways:
...
@@ -14,6 +14,16 @@ compilation. These two functions print expression graphs in different ways:
Theano also provides :func:`pydotprint` that creates a *png* image of the function.
Theano also provides :func:`pydotprint` that creates a *png* image of the function.
You can read about them in :ref:`libdoc_printing`.
You can read about them in :ref:`libdoc_printing`.
.. note::
When printing Theano functions, they can sometimes be hard to
read. To help with this, you can disable some Theano optimizations
by using the Theano flag:
``optimizer_excluding=fusion:inplace``. Do not use this during
real job execution, as this will make the graph slower and use more
memory.
Consider again the logistic regression but notice the additional printing instuctions.
Consider again the logistic regression but notice the additional printing instuctions.
The following output depicts the pre- and post- compilation graphs.
The following output depicts the pre- and post- compilation graphs.
...
...
theano/sandbox/cuda/dnn.py
浏览文件 @
f37172c1
...
@@ -23,6 +23,10 @@ from theano.sandbox.cuda.nvcc_compiler import NVCC_compiler
...
@@ -23,6 +23,10 @@ from theano.sandbox.cuda.nvcc_compiler import NVCC_compiler
def
dnn_available
():
def
dnn_available
():
if
dnn_available
.
avail
is
None
:
if
dnn_available
.
avail
is
None
:
if
not
theano
.
sandbox
.
cuda
.
cuda_available
:
dnn_available
.
msg
=
"CUDA not available"
dnn_available
.
avail
=
False
return
False
dev
=
theano
.
sandbox
.
cuda
.
active_device_number
()
dev
=
theano
.
sandbox
.
cuda
.
active_device_number
()
if
theano
.
sandbox
.
cuda
.
device_properties
(
dev
)[
'major'
]
<
3
:
if
theano
.
sandbox
.
cuda
.
device_properties
(
dev
)[
'major'
]
<
3
:
dnn_available
.
msg
=
"Device not supported by cuDNN"
dnn_available
.
msg
=
"Device not supported by cuDNN"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论