Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
5610840c
提交
5610840c
authored
8月 11, 2017
作者:
affanv14
提交者:
Arnaud Bergeron
8月 18, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add docs
上级
106eb11f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
84 行增加
和
0 行删除
+84
-0
abstract_conv.py
theano/tensor/nnet/abstract_conv.py
+84
-0
没有找到文件。
theano/tensor/nnet/abstract_conv.py
浏览文件 @
5610840c
...
...
@@ -673,6 +673,90 @@ def separable_conv3d(input,
subsample
=
(
1
,
1
,
1
),
filter_flip
=
True
,
filter_dilation
=
(
1
,
1
,
1
)):
"""
This function will build the symbolic graph for depthwise
convolutions which act separately on the input channels followed by
pointwise convolution which mixes channels.
Parameters
----------
input: symbolic 5D tensor
Mini-batch of feature map stacks, of shape
(batch size, input channels, input depth, input rows, input columns).
See the optional parameter ``input_shape``.
depthwise_filters: symbolic 5D tensor
Set of filters used depthwise convolution layer of shape
(depthwise output channels, 1, filter_depth, filter rows, filter columns).
pointwise_filters: symbolic 5D tensor
Set of filters used pointwise convolution layer of shape
(output channels, depthwise output channels, 1, 1, 1).
num_channels: int
The number of channels of the input. Required for depthwise
convolutions.
input_shape: None, tuple/list of len 5 of int or Constant variable
The shape of the input parameter.
Optional, possibly used to choose an optimal implementation.
You can give ``None`` for any element of the list to specify that this
element is not known at compile time.
depthwise_filter_shape: None, tuple/list of len 5 of int or Constant variable
The shape of the depthwise filters parameter.
Optional, possibly used to choose an optimal implementation.
You can give ``None`` for any element of the list to specify that this
element is not known at compile time.
pointwise_filter_shape: None, tuple/list of len 5 of int or Constant variable
The shape of the pointwise filters parameter.
Optional, possibly used to choose an optimal implementation.
You can give ``None`` for any element of the list to specify that this
element is not known at compile time.
border_mode: str, int or tuple of three int
This applies only to depthwise convolutions
Either of the following:
``'valid'``: apply filter wherever it completely overlaps with the
input. Generates output of shape: input shape - filter shape + 1
``'full'``: apply filter wherever it partly overlaps with the input.
Generates output of shape: input shape + filter shape - 1
``'half'``: pad input with a symmetric border of ``filter // 2``,
then perform a valid convolution. For filters with an odd
number of slices, rows and columns, this leads to the output
shape being equal to the input shape.
``int``: pad input with a symmetric border of zeros of the given
width, then perform a valid convolution.
``(int1, int2, int3)``
pad input with a symmetric border of ``int1``, ``int2`` and
``int3`` columns, then perform a valid convolution.
subsample: tuple of len 3
This applies only to depthwise convolutions
Factor by which to subsample the output.
Also called strides elsewhere.
filter_flip: bool
If ``True``, will flip the filter x, y and z dimensions before
sliding them over the input. This operation is normally
referred to as a convolution, and this is the default. If
``False``, the filters are not flipped and the operation is
referred to as a cross-correlation.
filter_dilation: tuple of len 3
Factor by which to subsample (stride) the input.
Also called dilation elsewhere.
Returns
-------
Symbolic 5D tensor
Set of feature maps generated by convolutional layer. Tensor is
of shape (batch size, output channels, output_depth,
output rows, output columns)
"""
input
=
as_tensor_variable
(
input
)
depthwise_filters
=
as_tensor_variable
(
depthwise_filters
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论