%% Create 1-D Global Average Pooling Layer
% Create a 1-D global average pooling layer.

layer = globalMaxPooling1dLayer

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

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

% Copyright 2021 The MathWorks, Inc.