Reshape layer in deep learning
古いコメントを表示
I want to try out a deep learning architecture which first does fully connected layers and then transitions into image convolutions. So after the fully connected layers I want to reshape the weights from a vector into a image like matrix. Is there a reshape layer within the Deep learning toolbox which does this?
1 件のコメント
SHAOJIN MA
2024 年 5 月 21 日
Hi KB,
Did you solve this problem? If yes, could you please show your code? I have encountered the same problem as you.
採用された回答
その他の回答 (1 件)
Tomaso Cetto
2022 年 3 月 31 日
1 投票
Hi KB,
As of R2022a, the Deep Learning Toolbox has a new functionLayer - this layer enanbles you to apply a function to the activations of your network. Using this layer is the preferred way of performing the reshaping operation you're after. The link above has an example of how to do this, under the 'Reformat Data Using Function Layer' heading.
Hope this helps!
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!