Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
dab7a1ed
提交
dab7a1ed
authored
4月 08, 2016
作者:
Mathieu Germain
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix docstring in old backend
上级
42a4e9ef
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
53 行增加
和
50 行删除
+53
-50
dnn.py
theano/sandbox/cuda/dnn.py
+53
-50
没有找到文件。
theano/sandbox/cuda/dnn.py
浏览文件 @
dab7a1ed
...
@@ -295,10 +295,8 @@ class GpuDnnConv(DnnBase, COp):
...
@@ -295,10 +295,8 @@ class GpuDnnConv(DnnBase, COp):
The convolution descriptor.
The convolution descriptor.
workmem
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
algo
algo : {'none', 'small', 'large', 'fft', 'fft_tiling', 'guess_once', 'winograd',
['none', 'small', 'large', 'fft', 'fft_tiling', 'guess_once', 'winograd',
'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
'guess_on_shape_change', 'time_once', 'time_on_shape_change']
Default is the value of :attr:`config.dnn.conv.algo_fwd`.
Default is the value of :attr:`config.dnn.conv.algo_fwd`.
"""
"""
...
@@ -481,17 +479,20 @@ class GpuDnnConv3d(GpuDnnConv):
...
@@ -481,17 +479,20 @@ class GpuDnnConv3d(GpuDnnConv):
"""
"""
The forward convolution.
The forward convolution.
:param image:
Parameters
:param kernel:
----------
:param descr: the convolution descriptor
image
:param workmem:
kernel
descr
The convolution descriptor
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
:param algo: ['none', 'small', 'fft_tiling', 'winograd',
algo : {'none', 'small', 'fft_tiling', 'winograd', 'guess_once',
'guess_once', 'guess_on_shape_change',
'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
'time_once', 'time_on_shape_change']
Default is the value of :attr:`config.dnn.conv.algo_fwd`.
Default is the value of :attr:`config.dnn.conv.algo_fwd`.
"""
"""
__props__
=
(
'algo'
,
'inplace'
)
__props__
=
(
'algo'
,
'inplace'
)
__input_name__
=
(
'image'
,
'kernel'
,
'output'
,
__input_name__
=
(
'image'
,
'kernel'
,
'output'
,
'descriptor'
,
'alpha'
,
'beta'
)
'descriptor'
,
'alpha'
,
'beta'
)
...
@@ -584,7 +585,8 @@ class GpuDnnConvGradW(DnnBase, COp):
...
@@ -584,7 +585,8 @@ class GpuDnnConvGradW(DnnBase, COp):
The convolution descriptor.
The convolution descriptor.
workmem
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
algo : {'none', 'deterministic', 'fft', 'small', 'guess_once', 'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
algo : {'none', 'deterministic', 'fft', 'small', 'guess_once',
'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
Default is the value of :attr:`config.dnn.conv.algo_bwd_filter`.
Default is the value of :attr:`config.dnn.conv.algo_bwd_filter`.
"""
"""
...
@@ -719,17 +721,20 @@ class GpuDnnConv3dGradW(GpuDnnConvGradW):
...
@@ -719,17 +721,20 @@ class GpuDnnConv3dGradW(GpuDnnConvGradW):
"""
"""
The convolution gradient with respect to the weights.
The convolution gradient with respect to the weights.
:param image:
Parameters
:param kernel:
----------
:param descr: the convolution descriptor
image
:param workmem:
kernel
descr
The convolution descriptor
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
:param algo: ['none', 'small',
algo : {'none', 'small', 'guess_once', 'guess_on_shape_change',
'guess_once', 'guess_on_shape_change',
'time_once', 'time_on_shape_change'}
'time_once', 'time_on_shape_change']
Default is the value of :attr:`config.dnn.conv.algo_bwd_filter`.
Default is the value of :attr:`config.dnn.conv.algo_bwd_filter`.
"""
"""
__props__
=
(
'algo'
,
'inplace'
,)
__props__
=
(
'algo'
,
'inplace'
,)
__input_name__
=
(
'image'
,
'grad'
,
'output'
,
'descriptor'
,
'alpha'
,
'beta'
)
__input_name__
=
(
'image'
,
'grad'
,
'output'
,
'descriptor'
,
'alpha'
,
'beta'
)
...
@@ -801,10 +806,8 @@ class GpuDnnConvGradI(DnnBase, COp):
...
@@ -801,10 +806,8 @@ class GpuDnnConvGradI(DnnBase, COp):
The convolution descriptor.
The convolution descriptor.
workmem
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
algo
algo : {'none', 'deterministic', 'fft', 'fft_tiling', 'winograd', 'guess_once',
['none', 'deterministic', 'fft', 'fft_tiling', 'winograd', 'guess_once',
'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
'guess_on_shape_change', 'time_once', 'time_on_shape_change']
Default is the value of :attr:`config.dnn.conv.algo_bwd_data`.
Default is the value of :attr:`config.dnn.conv.algo_bwd_data`.
"""
"""
...
@@ -956,17 +959,20 @@ class GpuDnnConv3dGradI(GpuDnnConvGradI):
...
@@ -956,17 +959,20 @@ class GpuDnnConv3dGradI(GpuDnnConvGradI):
"""
"""
The convolution gradient with respect to the inputs.
The convolution gradient with respect to the inputs.
:param image:
Parameters
:param kernel:
----------
:param descr: the convolution descriptor
image
:param workmem:
kernel
descr
The convolution descriptor
workmem
*deprecated*, use parameter algo instead.
*deprecated*, use parameter algo instead.
:param algo: ['none', 'deterministic, 'fft_tiling', 'winograd', 'guess_once',
algo : {'none', 'deterministic, 'fft_tiling', 'winograd', 'guess_once',
'guess_on_shape_change', 'time_once', 'time_on_shape_change']
'guess_on_shape_change', 'time_once', 'time_on_shape_change'}
Default is the value of :attr:`config.dnn.conv.algo_bwd_data`.
Default is the value of :attr:`config.dnn.conv.algo_bwd_data`.
"""
"""
__props__
=
(
'algo'
,
'inplace'
,)
__props__
=
(
'algo'
,
'inplace'
,)
__input_name__
=
(
'kernel'
,
'grad'
,
'output'
,
'descriptor'
,
'alpha'
,
__input_name__
=
(
'kernel'
,
'grad'
,
'output'
,
'descriptor'
,
'alpha'
,
'beta'
)
'beta'
)
...
@@ -1455,6 +1461,7 @@ class GpuDnnPool(DnnBase):
...
@@ -1455,6 +1461,7 @@ class GpuDnnPool(DnnBase):
(padX, padY) padding information.
(padX, padY) padding information.
padX is the size of the left and right borders,
padX is the size of the left and right borders,
padY is the size of the top and bottom borders.
padY is the size of the top and bottom borders.
"""
"""
__props__
=
(
"mode"
,)
__props__
=
(
"mode"
,)
...
@@ -1974,14 +1981,12 @@ class GpuDnnSoftmaxBase(DnnBase):
...
@@ -1974,14 +1981,12 @@ class GpuDnnSoftmaxBase(DnnBase):
----------
----------
tensor_format
tensor_format
Always set this to 'bc01'.
Always set this to 'bc01'.
algo
algo : {'fast', 'accurate', 'log'}
'fast', 'accurate' or 'log' indicating whether, respectively, computations
Indicating whether, respectively, computations should be optimized for
should be optimized for speed, for accuracy, or if CuDNN should rather
speed, for accuracy, or if CuDNN should rather compute the log-softmax instead.
compute the log-softmax instead.
mode : {'instance', 'channel'}
mode
Indicating whether the softmax should be computed per image across 'c01'
'instance' or 'channel' indicating whether the softmax should
or per spatial location '01' per image across 'c'.
be computed per image across 'c01' or per spatial location '01' per
image across 'c'.
"""
"""
...
@@ -2137,13 +2142,12 @@ class GpuDnnSoftmax(GpuDnnSoftmaxBase):
...
@@ -2137,13 +2142,12 @@ class GpuDnnSoftmax(GpuDnnSoftmaxBase):
----------
----------
tensor_format
tensor_format
Always set to 'bc01'.
Always set to 'bc01'.
algo
algo
: {'fast', 'accurate'}
'fast' or 'accurate' i
ndicating whether computations should be
I
ndicating whether computations should be
optimized for speed or accuracy respectively.
optimized for speed or accuracy respectively.
mode
mode : {'instance', 'channel'}
'instance' or 'channel' indicating whether the softmax should
Indicating whether the softmax should be computed per image across 'c01'
be computed per image across 'c01' or per spatial location '01' per
or per spatial location '01' per image across 'c'.
image across 'c'.
"""
"""
...
@@ -2205,13 +2209,12 @@ class GpuDnnSoftmaxGrad(GpuDnnSoftmaxBase):
...
@@ -2205,13 +2209,12 @@ class GpuDnnSoftmaxGrad(GpuDnnSoftmaxBase):
----------
----------
tensor_format
tensor_format
Always set to 'bc01'.
Always set to 'bc01'.
algo
algo
: {'fast', 'accurate'}
'fast' or 'accurate' i
ndicating whether computations should be
I
ndicating whether computations should be
optimized for speed or accuracy respectively.
optimized for speed or accuracy respectively.
mode
mode : {'instance', 'channel'}
'instance' or 'channel' indicating whether the softmax should
Indicating whether the softmax should be computed per image across 'c01'
be computed per image across 'c01' or per spatial location '01' per
or per spatial location '01' per image across 'c'.
image across 'c'.
"""
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论