How to get the function 'convolution1dLayer' ?

I haev been working on the 1D CNN. But in matlab if i try to use the function 'convolution1dLayer'. Im getting a response as,
>> layer = convolution1dLayer(11,96)
Unrecognized function or variable 'convolution1dLayer'.
Did you mean:
>> layer = convolution2dLayer(11,96)

5 件のコメント

KSSV
KSSV 2021 年 11 月 9 日
It is introduced in 2021b.......what version you are using?
Badavath Purnesh Singh
Badavath Purnesh Singh 2021 年 11 月 9 日
編集済み: Badavath Purnesh Singh 2021 年 11 月 9 日
I have tried to update. but I'm already using the laterst version, R2021a.
Steven Lord
Steven Lord 2021 年 11 月 9 日
R2021a is not the latest version. Release R2021b came out in September.
Badavath Purnesh Singh
Badavath Purnesh Singh 2021 年 11 月 10 日
Yes, I have installed the R2021b by uninstalling the previous version. Is there an any other way to change the MATLAB verison without unintalling the previous version ?
KSSV
KSSV 2021 年 11 月 10 日
You can install in another path and use both the versions.

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

回答 (2 件)

Nabil Ajali
Nabil Ajali 2022 年 1 月 25 日

0 投票

There are any solution?

7 件のコメント

Steven Lord
Steven Lord 2022 年 1 月 25 日
If you're using a release prior to the introduction of that layer in release R2021b, the solution is to upgrade.
If you're using release R2021b or later, check the output of ver to determine if you have Deep Learning Toolbox installed. If not, install it (purchasing it if you don't already have a license for it.)
Nabil Ajali
Nabil Ajali 2022 年 1 月 25 日
Thanks!!!
Nabil Ajali
Nabil Ajali 2022 年 1 月 26 日
Steven Lord.
I have the R2021b version upgraded and the license is in order. The "Deep Learning Toolbox" is installed and even so the command "convolution1DLayer" not appears.
Thanks
Steven Lord
Steven Lord 2022 年 1 月 26 日
What does this command show when you run it in your installation?
which -all convolution1dLayer
/MATLAB/toolbox/nnet/cnn/convolution1dLayer.m
Nabil Ajali
Nabil Ajali 2022 年 1 月 27 日
As it can see, convolution2dLayer is there, but convolution1dLayer not.
C:\Program Files\MATLAB\R2021a\toolbox\nnet\cnn
>> which -all convolution1dLayer
'convolution1dLayer' not found.
>> which -all convolution2dLayer
C:\Program Files\MATLAB\R2021a\toolbox\nnet\cnn\convolution2dLayer.m
Maybe i can download it or installed manually?
Steven Lord
Steven Lord 2022 年 1 月 27 日
You said "I have the R2021b version upgraded" but the path you showed indicate you're using release R2021a: "C:\Program Files\MATLAB\R2021a". You must use release R2021b or later to be able to use convolution1dLayer.
Nabil Ajali
Nabil Ajali 2022 年 1 月 31 日
Oh, Maybe I was wrong thinking that I updated. I will confirm this.
Thank you very much!

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

yanqi liu
yanqi liu 2022 年 1 月 26 日

0 投票

yes,sir,may be use 2D to replace 1D,such as
imageInputLayer([1024 1 1])
ans =
ImageInputLayer with properties: Name: '' InputSize: [1024 1 1] Hyperparameters DataAugmentation: 'none' Normalization: 'zerocenter' NormalizationDimension: 'auto' Mean: []
convolution2dLayer([100 1],3,'Stride',1)
ans =
Convolution2DLayer with properties: Name: '' Hyperparameters FilterSize: [100 1] NumChannels: 'auto' NumFilters: 3 Stride: [1 1] DilationFactor: [1 1] PaddingMode: 'manual' PaddingSize: [0 0 0 0] PaddingValue: 0 Learnable Parameters Weights: [] Bias: [] Show all properties

2 件のコメント

Nabil Ajali
Nabil Ajali 2022 年 1 月 26 日
Thanks yanqui liu, the problem is my data.
I have 1D vectors and i want to make a CNN with a BiLSTM, so i must use de convolution1DLayer.
yanqi liu
yanqi liu 2022 年 1 月 27 日
yes,sir,may be use sequenceInputLayer to get model,such as
layers = [ ...
sequenceInputLayer(numFeatures)
lstmLayer(100,'OutputMode','sequence')
dropoutLayer(0.3)
lstmLayer(50,'OutputMode','sequence')
dropoutLayer(0.2)
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];

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

カテゴリ

ヘルプ センター および File ExchangeInstall Products についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 11 月 9 日

コメント済み:

2022 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by