Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ed6c966d
提交
ed6c966d
authored
5月 10, 2016
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4492 from nouiz/fix_crash_gpufft
[CRASH,REGRESSION] Fix crash gpufft
上级
4235e6cd
aef92b9c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
8 行删除
+16
-8
nanguardmode.txt
doc/library/compile/nanguardmode.txt
+5
-0
examples.txt
doc/tutorial/examples.txt
+2
-2
opt.py
theano/sandbox/cuda/opt.py
+9
-6
没有找到文件。
doc/library/compile/nanguardmode.txt
浏览文件 @
ed6c966d
...
...
@@ -63,6 +63,11 @@ kind of abnormal values to monitor. ``nan_is_error`` and ``inf_is_error`` has
no default values, so they need to be set explicitly, but ``big_is_error`` is
set to be ``True`` by default.
.. note::
NanGuardMode significantly slows down computations; only
enable as needed.
Reference
=========
...
...
doc/tutorial/examples.txt
浏览文件 @
ed6c966d
...
...
@@ -545,8 +545,8 @@ It will be used repeatedly.
training_steps = 10000
# Declare Theano symbolic variables
x = T.matrix("x")
y = T.vector("y")
x = T.
d
matrix("x")
y = T.
d
vector("y")
# initialize the weight vector w randomly
#
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
ed6c966d
...
...
@@ -1425,8 +1425,9 @@ def _gpu_conv_to_fftconv(node):
# we import conv2d_fft locally to avoid pycuda warnings
from
theano.sandbox.cuda.fftconv
import
conv2d_fft
kwargs
=
{
'border_mode'
:
node
.
op
.
border_mode
}
if
(
node
.
op
.
imshp
is
not
None
and
node
.
op
.
imshp
[
-
1
]
%
2
==
1
and
node
.
op
.
imshp
[
-
1
]
is
not
None
):
if
(
node
.
op
.
imshp
is
not
None
and
node
.
op
.
imshp
[
-
1
]
is
not
None
and
node
.
op
.
imshp
[
-
1
]
%
2
==
1
):
kwargs
[
'pad_last_dim'
]
=
True
# If the user supplied the full nonsymbolic image_shape and
...
...
@@ -1455,8 +1456,9 @@ def _gpu_conv_to_fftconv(node):
@local_optimizer
([
GpuConv
])
def
local_conv_fft_valid
(
node
):
if
isinstance
(
node
.
op
,
GpuConv
):
if
(
node
.
op
.
border_mode
==
'valid'
and
node
.
op
.
fft_opt
and
node
.
op
.
subsample
==
(
1
,
1
)):
if
(
node
.
op
.
border_mode
==
'valid'
and
node
.
op
.
subsample
==
(
1
,
1
)
and
node
.
op
.
fft_opt
):
return
[
_gpu_conv_to_fftconv
(
node
)]
return
False
...
...
@@ -1465,8 +1467,9 @@ def local_conv_fft_valid(node):
@local_optimizer
([
GpuConv
])
def
local_conv_fft_full
(
node
):
if
isinstance
(
node
.
op
,
GpuConv
):
if
(
node
.
op
.
border_mode
==
'full'
and
node
.
op
.
fft_opt
and
node
.
op
.
subsample
==
(
1
,
1
)):
if
(
node
.
op
.
border_mode
==
'full'
and
node
.
op
.
subsample
==
(
1
,
1
)
and
node
.
op
.
fft_opt
):
return
[
_gpu_conv_to_fftconv
(
node
)]
return
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论