%% Create 3-D Average Pooling Layer with Overlapping Pooling Regions
% Create a 3-D average pooling layer with overlapping pooling regions and padding for the top and bottom of the input.

layer = averagePooling3dLayer([3 2 2],'Stride',2,'Padding',[1 0 0])

% This layer creates pooling regions of size 3-by-2-by-2 and takes the average of the twelve elements in each region. The stride is 2 in all dimensions. The pooling regions overlap because there are stride dimensions Stride that are less than the respective pooling dimensions PoolSize.
% Copyright 2018 The MathWorks, Inc.