Custom Deep Learning Layer with different input and output format occurs error
Show older comments
When I construct the custom deep learning layer with formattable input and output, checkLayer function returns error when the input has "CBT" format and output has "SCBT" format. However, when I change the output with the same "CBT" format as input, the checkLayer function is successful. The error message is
Number of dimension labels in data format must be greater than or equal to the
number of dimensions of the data array.
I would like to know if maintaining input and output consistency in formatting is a mandatory requirement when implementing custom layers?
1 Comment
Chuguang Pan
on 20 Jul 2026 at 11:56
Accepted Answer
More Answers (0)
Categories
Find more on Image Data Workflows 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!