Skip to content

Commit e307065

Browse files
committed
Scale layer in case of 2D inputs
1 parent d329674 commit e307065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn/src/layers/scale_layer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class ScaleLayerImpl : public ScaleLayer
7474
{
7575
float w = blobs[0].at<float>(n);
7676
float b = hasBias ? blobs[1].at<float>(n) : 0;
77-
Mat outBlobPlane = getPlane(outBlob, cn, n);
78-
Mat inpBlobPlane = getPlane(inpBlob, cn, n);
77+
Mat outBlobPlane = slice(outBlob, cn, n);
78+
Mat inpBlobPlane = slice(inpBlob, cn, n);
7979
inpBlobPlane.convertTo(outBlobPlane, CV_32F, w, b);
8080
}
8181
}

0 commit comments

Comments
 (0)