nnet.keras.layer.FlattenCStyleLayerの実装方法
Show older comments
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!