Undefined function or variable 'batchNorm​alizationL​ayer'.

Hi everyone,
I want to run this code form MATLAB examples, however I get this error that "Undefined function or variable 'batchNormalizationLayer'."
layers = [
imageInputLayer([28 28 1])
convolution2dLayer(3,8,'Padding',1)
batchNormalizationLayer
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,16,'Padding',1)
batchNormalizationLayer
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,32,'Padding',1)
batchNormalizationLayer
reluLayer
fullyConnectedLayer(10)
softmaxLayer
classificationLayer];
Can someone tell me what is wrong?
Thank you in advance.

3 件のコメント

Ankita Bansal
Ankita Bansal 2018 年 6 月 6 日
Hi, check whether you have Neural Network Toolbox installed or not. And if you have then may be it's not installed properly. Try reinstalling it.
Kyana Shayan
Kyana Shayan 2018 年 6 月 6 日
thanks. how can I check that? I have a student Matlab.
Bashar Saad
Bashar Saad 2019 年 6 月 4 日
Dear bro
I've same the problem did you solve it or not yet ?? if you solve it can you share me the file of the function??? thanks a lot
I'm waiting your response

サインインしてコメントする。

回答 (1 件)

Ankita Bansal
Ankita Bansal 2018 年 6 月 8 日

0 投票

You can view all installed toolboxes using the Add-On Manager. To open the Add-On Manager, go to the Home tab and select Add-Ons > Manage Add-Ons.

1 件のコメント

Darshal Suka
Darshal Suka 2019 年 5 月 24 日
Hi, I have the toolbox installed but I still get this error. Any idea how I can solve this?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2018 年 6 月 6 日

コメント済み:

2019 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by