Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
3ea6aa18
提交
3ea6aa18
authored
10月 03, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small doc update.
上级
a4c17642
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
7 行删除
+9
-7
conv.txt
doc/library/tensor/nnet/conv.txt
+7
-5
conv3d2d.py
theano/tensor/nnet/conv3d2d.py
+2
-2
没有找到文件。
doc/library/tensor/nnet/conv.txt
浏览文件 @
3ea6aa18
...
@@ -31,10 +31,11 @@ TODO: Give examples on how to use these things! They are pretty complicated.
...
@@ -31,10 +31,11 @@ TODO: Give examples on how to use these things! They are pretty complicated.
with batches of multi-channel 2D images, available for CPU and GPU.
with batches of multi-channel 2D images, available for CPU and GPU.
Most of the more efficient GPU implementations listed below can be used
Most of the more efficient GPU implementations listed below can be used
as an automatic replacement for nnet.conv2d by enabling specific graph
as an automatic replacement for nnet.conv2d by enabling specific graph
optimizations.
optimizations.
It flip the kernel.
- :func:`conv2d_fft <theano.sandbox.cuda.fftconv.conv2d_fft>` This
- :func:`conv2d_fft <theano.sandbox.cuda.fftconv.conv2d_fft>` This
is a GPU-only version of nnet.conv2d that uses an FFT transform
is a GPU-only version of nnet.conv2d that uses an FFT transform
to perform the work. conv2d_fft should not be used directly as
to perform the work. It flip the kernel as ``conv2d``.
conv2d_fft should not be used directly as
it does not provide a gradient. Instead, use nnet.conv2d and
it does not provide a gradient. Instead, use nnet.conv2d and
allow Theano's graph optimizer to replace it by the FFT version
allow Theano's graph optimizer to replace it by the FFT version
by setting
by setting
...
@@ -64,7 +65,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
...
@@ -64,7 +65,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
<http://deeplearning.net/software/pylearn2/library/linear.html>`_
<http://deeplearning.net/software/pylearn2/library/linear.html>`_
implementation, but it can also be used `directly from within Theano
implementation, but it can also be used `directly from within Theano
<http://benanne.github.io/2014/04/03/faster-convolutions-in-theano.html>`_
<http://benanne.github.io/2014/04/03/faster-convolutions-in-theano.html>`_
as a manual replacement for nnet.conv2d.
as a manual replacement for nnet.conv2d.
It does not flip the kernel.
- :func:`GpuCorrMM <theano.sandbox.cuda.blas.GpuCorrMM>`
- :func:`GpuCorrMM <theano.sandbox.cuda.blas.GpuCorrMM>`
This is a GPU-only 2d correlation implementation taken from
This is a GPU-only 2d correlation implementation taken from
`caffe <https://github.com/BVLC/caffe/blob/master/src/caffe/layers/conv_layer.cu>`_
`caffe <https://github.com/BVLC/caffe/blob/master/src/caffe/layers/conv_layer.cu>`_
...
@@ -103,7 +104,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
...
@@ -103,7 +104,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
- :func:`conv3D <theano.tensor.nnet.Conv3D.conv3D>`
- :func:`conv3D <theano.tensor.nnet.Conv3D.conv3D>`
3D Convolution applying multi-channel 3D filters to batches of
3D Convolution applying multi-channel 3D filters to batches of
multi-channel 3D images.
multi-channel 3D images.
It do not flip the kernel.
- :func:`conv3d_fft <theano.sandbox.cuda.fftconv.conv3d_fft>`
- :func:`conv3d_fft <theano.sandbox.cuda.fftconv.conv3d_fft>`
GPU-only version of conv3D using FFT transform. conv3d_fft should
GPU-only version of conv3D using FFT transform. conv3d_fft should
not be called directly as it does not provide a gradient.
not be called directly as it does not provide a gradient.
...
@@ -124,7 +125,8 @@ TODO: Give examples on how to use these things! They are pretty complicated.
...
@@ -124,7 +125,8 @@ TODO: Give examples on how to use these things! They are pretty complicated.
- :func:`conv3d2d <theano.tensor.nnet.conv3d2d.conv3d>`
- :func:`conv3d2d <theano.tensor.nnet.conv3d2d.conv3d>`
Another conv3d implementation that uses the conv2d with data reshaping.
Another conv3d implementation that uses the conv2d with data reshaping.
It is faster in some cases than conv3d, specifically on the GPU.
It is faster in some cases than conv3d, and work on the GPU.
It flip the kernel.
.. autofunction:: theano.tensor.nnet.conv.conv2d
.. autofunction:: theano.tensor.nnet.conv.conv2d
.. autofunction:: theano.sandbox.cuda.fftconv.conv2d_fft
.. autofunction:: theano.sandbox.cuda.fftconv.conv2d_fft
...
...
theano/tensor/nnet/conv3d2d.py
浏览文件 @
3ea6aa18
...
@@ -174,9 +174,9 @@ def conv3d(signals, filters,
...
@@ -174,9 +174,9 @@ def conv3d(signals, filters,
:param filters_shape: None or a tuple/list with the shape of filters
:param filters_shape: None or a tuple/list with the shape of filters
:param border_mode: The only one tested is 'valid'.
:param border_mode: The only one tested is 'valid'.
:note: Work on the GPU.
:note: Another way to define signals: (batch, time, in channel, row, column)
Another way to define signals: (batch, time, in channel, row, column)
Another way to define filters: (out channel,time,in channel, row, column)
Another way to define filters: (out channel,time,in channel, row, column)
:note: See the `conv3d_fft`_ or `conv3d2d`_ for GPU implementations.
:see: Someone made a script that shows how to swap the axes between
:see: Someone made a script that shows how to swap the axes between
both 3d convolution implementations in Theano. See the last
both 3d convolution implementations in Theano. See the last
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论