%% Create Hyperbolic Tangent Layer
% Create a hyperbolic tangent (tanh) layer with the name 'tanh1'.

layer = tanhLayer('Name','tanh1')

%
% Include a tanh layer in a Layer array.

layers = [
    imageInputLayer([28 28 1])
    convolution2dLayer(3,16)
    batchNormalizationLayer
    tanhLayer
    
    maxPooling2dLayer(2,'Stride',2)
    convolution2dLayer(3,32)
    batchNormalizationLayer
    tanhLayer
    
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2018 The MathWorks, Inc.
%