%% Create 3-D Global Max Pooling Layer
% Create a 3-D global max pooling layer with name 'gmp1'.

layer = globalMaxPooling3dLayer('Name','gmp1')

% Include a 3-D max pooling layer in a Layer array.

layers = [ ...
    image3dInputLayer([28 28 28 3])
    convolution3dLayer(5,20)
    reluLayer
    globalMaxPooling3dLayer
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2019 The MathWorks, Inc.