%% Create 1-D Global Max Pooling Layer
% Create a 1-D global max pooling layer.

layer = globalMaxPooling1dLayer

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

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

% Copyright 2021 The MathWorks, Inc.