Error on custom layer (MATLAB EXAMPLE) (nnet.Laye​rs.Acceler​atable path cannot be found)

14 ビュー (過去 30 日間)
Hello everyone,
I literally just copied the matlab example for a custom regression layer into my file and tried to run it and I got the following error:
Error using maeRegressionLayer
The specified superclass 'nnet.layer.Acceleratable' contains a parse error, cannot be found on MATLAB's search
path, or is shadowed by another file with the same name.
If I type
which -all nnet.Layer.Acceleratable
I get:
'nnet.Layer.Acceleratable' not found.
If I remove "& nnet.layer.Acceleratable" from the code, I get the following error:
Not enough input arguments.
Error in maeRegressionLayer (line 12)
layer.Name = name;
which is really weird, because I literally just copied the example from this Matlab page: https://de.mathworks.com/help/deeplearning/ug/define-custom-regression-output-layer.html#mw_1e4dfcfe-9c30-4753-ad62-7a86a63fcfd2
  3 件のコメント
Walter Roberson
Walter Roberson 2022 年 4 月 23 日
Which MATLAB release are you using?
ThomasP
ThomasP 2022 年 4 月 26 日
@tomer roditi unfortunately not :/
@Walter Roberson I'm using 21b

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

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 26 日
That layer is new as of R2022a.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by