Average pooling operation for spatial data.
Input shape:
dataFormat === CHANNEL_LAST
[batchSize, rows, cols, channels]
dataFormat === CHANNEL_FIRST
[batchSize, channels, rows, cols]
Output shape
[batchSize, pooledRows, pooledCols, channels]
[batchSize, channels, pooledRows, pooledCols]
tf.avgPool2d is an alias.
tf.avgPool2d
Generated using TypeDoc
Average pooling operation for spatial data.
Input shape:
dataFormat === CHANNEL_LAST
: 4D tensor with shape:[batchSize, rows, cols, channels]
dataFormat === CHANNEL_FIRST
: 4D tensor with shape:[batchSize, channels, rows, cols]
Output shape
dataFormat === CHANNEL_LAST
: 4D tensor with shape:[batchSize, pooledRows, pooledCols, channels]
dataFormat === CHANNEL_FIRST
: 4D tensor with shape:[batchSize, channels, pooledRows, pooledCols]
tf.avgPool2d
is an alias.