nnet.keras​.layer.Fla​ttenCStyle​Layerの実装方法

importKerasLayersにより、kerasコードのResNet-RSアーキテクチャをインポートしています。
インポートの際、KerasのFlattenレイヤーはMATLAB上でnnet.keras.layer.FlattenCStyleLayerに対応するとされています:
インポートしたネットワークモデルをdeepnetworkdesignerによりmatlabコードに変換し、ライブエディターで表示させました。以下のような記載になっており、そのままではライブエディターの実行ができません。どうすればよいのでしょうか。
function layer = helperNnetKerasLayerFlattenCStyleLayer(name,inputNames,outputNames)
% スクリプトの実行前にこの関数を定義してください。
% この関数は、タイプ nnet.keras.layer.FlattenCStyleLayer の層を作成して返さなければなりません。
end
Output argument "layer" (and possibly others) not assigned a value in the execution with
"***.mat>helperNnetKerasLayerZeroPadding2dLayer" function.

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Release

R2022a

Asked:

on 2 May 2022

Community Treasure Hunt

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

Start Hunting!