Debugging Custom Layers converted by Matlab into CodegenFusedLayer

3 ビュー (過去 30 日間)
John Smith
John Smith 2023 年 3 月 15 日
回答済み: John 2024 年 6 月 16 日
Hi,
While developing a custom layer (actually - a DAG encapsulated in a dlnetwork) I found out that Matlab converted it into a CodegenFusedLayer.
Problem is that breakpoints I set in the code of my implementation aren't hit because the code that is being executed is elsewhere.
How can I continue debuggind my code with CodegenFusedLayer? Is there a way to stop this fusion or to cause breakpoints to be triggered?
Thx

回答 (1 件)

John
John 2024 年 6 月 16 日
Acceleration="none" to trainingOptions is an option. For customs specifically, not inheriting nnet.layer.Acceleratable may suffice (haven't tried). Though not explicitly stated, I was hinted from here under "Acceleration Considerations".

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by