function averagePooling2d(args) {
	  return new AveragePooling2D(args);
	}
Average pooling operation for spatial data.

Input shape:
 - If `dataFormat === CHANNEL_LAST`:
     4D tensor with shape:
     `[batchSize, rows, cols, channels]`
 - If `dataFormat === CHANNEL_FIRST`:
     4D tensor with shape:
     `[batchSize, channels, rows, cols]`

Output shape
 - If `dataFormat === CHANNEL_LAST`:
     4D tensor with shape:
     `[batchSize, pooleRows, pooledCols, channels]`
 - If `dataFormat === CHANNEL_FIRST`:
     4D tensor with shape:
     `[batchSize, channels, pooleRows, pooledCols]`

`tf.avgPool2d` is an alias.

@doc {heading: 'Layers', subheading: 'Pooling', namespace: 'layers'}