dnn: fix build with Vulkan

pull/14951/head
Alexander Alekhin 5 years ago
parent 6fdce865b8
commit 65552bf403
  1. 4
      modules/dnn/src/layers/convolution_layer.cpp

@ -460,11 +460,11 @@ public:
std::vector<Ptr<BackendWrapper> > blobsWrapper; std::vector<Ptr<BackendWrapper> > blobsWrapper;
if (newWeightAndBias) if (fusedWeights)
{ {
Mat wm; Mat wm;
weightsMat.copyTo(wm); // to handle the case of isContinuous() == false 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))); blobsWrapper.push_back(Ptr<BackendWrapper>(new VkComBackendWrapper(wm)));
} }
else else

Loading…
Cancel
Save