Undefined function or variable 'batchNorm​alizationL​ayer'

15 ビュー (過去 30 日間)
mac-nic ifegbo
mac-nic ifegbo 2019 年 7 月 11 日
回答済み: Alex Mcaulley 2019 年 7 月 11 日
Hello guys,
I am creating a simple CNN for classification of digits, but please am experiencing the error above each time I try to excute the code below. I am using R2017a version. I have also re-Installed the neural network toolbox and ran update but same error. Does anyone have idea on how to go about this?
layers = [
imageInputLayer([28 28 1])
convolution2dLayer(3,8,'Padding','same')
batchNormalizationLayer
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,16,'Padding','same')
batchNormalizationLayer
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,32,'Padding','same')
batchNormalizationLayer
reluLayer
fullyConnectedLayer(10)
softmaxLayer
classificationLayer];

回答 (1 件)

Alex Mcaulley
Alex Mcaulley 2019 年 7 月 11 日
Following the documentation, batchNormalizationLayer function was introduced in R2017b release. Then, you need to update your Matlab version to use it.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by