dnn: fix build with Vulkan
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 1 Jul 2019 14:54:40 +0000 (17:54 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 1 Jul 2019 14:54:40 +0000 (17:54 +0300)
modules/dnn/src/layers/convolution_layer.cpp

index 5515de8..38c0df5 100644 (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