%% Create Batch Normalization Layer
% Create a batch normalization layer with the name 'BN1'.
%

layer = batchNormalizationLayer('Name','BN1')

% Include batch normalization layers in a Layer array.

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

% Copyright 2012 The MathWorks, Inc.