%% Create 1-D Average Pooling Layer
% Create a 1-D average pooling layer with a pool size of 3.

layer = averagePooling1dLayer(3)

% Include a 1-D average pooling layer in a layer array.

layers = [
    sequenceInputLayer(12)
    convolution1dLayer(11,96)
    reluLayer
    averagePooling1dLayer(3)
    convolution1dLayer(11,96)
    reluLayer
    globalMaxPooling1dLayer
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2021 The MathWorks, Inc.