How can I avoid "Unsupported custom layer" error during Code Generation using %#codegen pragma in MATLAB R2025a and later?
显示 更早的评论
While generating C code for my MATLAB function or Simulink model which loads and calls my neural network to produce output predictions, I encountered this error:
Unsupported custom layer 'kConcatenate1Layer789'.
Code generation does not support custom layers without '%#codegen' defined in the class definition.
Does this mean the custom concatenate layer is unsupported by MATLAB Coder? How do I fix it?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!