%% Create Clipped ReLU Layer
% Create a clipped ReLU layer with the name 'clip1' and the clipping ceiling equal to 10.

layer = clippedReluLayer(10,'Name','clip1')

% Include a clipped ReLU layer in a Layer array.

layers = [ ...
    imageInputLayer([28 28 1])
    convolution2dLayer(5,20)
    clippedReluLayer(10)
    maxPooling2dLayer(2,'Stride',2)
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]


% Copyright 2012 The MathWorks, Inc.