mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
dnn: fix BatchNorm bias blob index in validation
When hasBias is true, CV_Assert must reference blobs[biasBlobIndex], not blobs[weightsBlobIndex], for the bias tensor.
This commit is contained in:
@@ -84,7 +84,7 @@ public:
|
||||
if( hasBias )
|
||||
{
|
||||
CV_Assert((size_t)biasBlobIndex < blobs.size());
|
||||
const Mat& b = blobs[weightsBlobIndex];
|
||||
const Mat& b = blobs[biasBlobIndex];
|
||||
CV_Assert(b.isContinuous() && b.type() == CV_32F && b.total() == (size_t)n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user