mirror of
https://github.com/opencv/opencv.git
synced 2025-07-20 19:17:36 +08:00
Merge pull request #10268 from dkurt:fix_scale_layer
This commit is contained in:
commit
c24f10d647
@ -74,8 +74,8 @@ public:
|
|||||||
{
|
{
|
||||||
float w = blobs[0].at<float>(n);
|
float w = blobs[0].at<float>(n);
|
||||||
float b = hasBias ? blobs[1].at<float>(n) : 0;
|
float b = hasBias ? blobs[1].at<float>(n) : 0;
|
||||||
Mat outBlobPlane = getPlane(outBlob, cn, n);
|
Mat outBlobPlane = slice(outBlob, cn, n);
|
||||||
Mat inpBlobPlane = getPlane(inpBlob, cn, n);
|
Mat inpBlobPlane = slice(inpBlob, cn, n);
|
||||||
inpBlobPlane.convertTo(outBlobPlane, CV_32F, w, b);
|
inpBlobPlane.convertTo(outBlobPlane, CV_32F, w, b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user