1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

dnn: fix build with Vulkan

This commit is contained in:
Alexander Alekhin
2019-07-01 17:54:40 +03:00
parent 6fdce865b8
commit 65552bf403
+2 -2
View File
@@ -460,11 +460,11 @@ public:
std::vector<Ptr<BackendWrapper> > blobsWrapper;
if (newWeightAndBias)
if (fusedWeights)
{
Mat wm;
weightsMat.copyTo(wm); // to handle the case of isContinuous() == false
wm.reshape(1, blobs[0].dims, blobs[0].size);
wm = wm.reshape(1, blobs[0].dims, blobs[0].size);
blobsWrapper.push_back(Ptr<BackendWrapper>(new VkComBackendWrapper(wm)));
}
else