文档

平均Pooling2Dlayer类

平均合并层对象

描述

Average pooling layer class containing the pool size, the stride size, padding, and the name of the layer. An average pooling layer performs down-sampling by dividing the input into rectangular pooling regions and computing the average of each region. It returns the averages for the pooling regions. The size of the pooling regions is determined by thepoolSize平均泵2Dlayer功能。

建造

AVGPOollayer= averagePooling2dLayer(poolSize创建一个执行平均池的图层。poolSize指定矩形区域的尺寸。

AVGPOollayer= averagePooling2dLayer(poolSize,,,,名称,价值创建平均合并层,并通过一个或多个指定其他选项名称,价值pair arguments.

有关更多详细信息,请参阅平均泵2Dlayer

输入参数

展开全部

合并区域的高度和宽度,指定为标量值或两个标量值的向量。

  • 如果poolSize是一个标量,then the height and the width of the pooling region are the same.

  • 如果poolSize是向量,那么向量必须是形式[Hw], 在哪里His the height andwis the width.

如果是大步尺寸小于相应的合并尺寸,然后池区域重叠。

请注意,填充尺寸(填充)必须小于合并区域维度(poolSize)。

例子:[2 1]

数据类型:单身的|双倍的

特性

展开全部

池区域的高度和宽度,作为两个标量值的向量存储,[Hw], 在哪里His the height andwis the width.

数据类型:双倍的

用于垂直和水平遍历输入的步骤大小,作为两个标量值的向量存储,[vH], 在哪里v是垂直步幅和His the horizontal stride.

数据类型:双倍的

零填充的大小垂直和水平应用于输入的边界,以两个标量值的向量存储,[[一个b]。

一个是在顶部和底部施加的填充物以及b是在输入数据的左右右侧应用的填充。

数据类型:双倍的

图层名称,由字符向量指定。如果姓名is set to'',然后该软件在培训时间自动分配名称。

数据类型:char

复制语义

Value. To learn how value classes affect copy operations, see复制对象(MATLAB)in the MATLAB®documentation.

例子

展开全部

Create an average pooling layer with non-overlapping pooling regions. Set the layer to down-sample by a factor of 2.

AVGPOollayer =平均泵2dlayer(2,“大步”,2)
avgpoollayer = falusepooling2dlayer带有属性:poolsize:[2 2]步幅:[2 2]填充:[0 0]名称:'''''

矩形区域的高度和宽度均为2。该层创建了大小[2 2]的池层次,并获得每个区域中四个元素的平均值。因为用于垂直和水平横穿图像的步骤(步幅)也是[2]池区域不会重叠。

Create an average pooling layer with overlapping pooling regions. Add padding for the top and bottom of the input.

AVGPOollayer =平均泵2dlayer([3 2],,,“大步”,2,...'填充',[1 0],'姓名',,,,'avg1'
avgpoollayer =平均泵2 dlayer具有属性:poolsize:[3 2]步幅:[2 2]填充:[1 0]名称:'avg1'

The height and width of the rectangular region (pool size) are 3 and 2. This layer creates pooling regions of size [3 2] and takes the average of the six elements in each region. Because the step size for stride) is [2 2] the pooling regions overlap.

一个值1for the填充name-value pair indicates that平均泵2Dlayer一个lso adds a row of zeros to the top and bottom of the input data.0表示未在输入数据的右侧和左侧添加填充物。

您可以使用点表示法显示任何属性。显示图层的名称。

avgpoollayer.name
ANS = AVG1

也可以看看

|

话题

在R2016a中引入

这个话题有帮助吗?