customing a layer and error
1 回表示 (過去 30 日間)
古いコメントを表示
After customizing the layer, I used the checkLayer function to check the validity of the layer. If the input is (H, W, C) and debugging, the input is expanded to (H, W, C, N). Can you tell me why this is so?
1 件のコメント
Shubham Khatri
2021 年 2 月 3 日
It should error out on entering the third parameter as you have not specified its value in the fourth variable. Can you share the reporduction steps?
回答 (1 件)
Shubham Khatri
2021 年 2 月 3 日
Hello,
To my understanding the checklayer funtion accepts input in 2 ways.
2 inputs-
checkLayer(layer,validInputSize)
Checks the validity of a custom layer using generated data of the sizes in validInputSize. Variable validInputSize defines the number of inputs to the layer.
4 inputs-
checkLayer(layer,validInputSize,Name,Value)
The third input and fourth input are linked with each other. The third input defines the additional parameter for check and the fourth input defines the value of the third parameter to compare to.
Please refer to the documentation link for checklayer here
Hope it helps.
1 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!