Commit bff90d46 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #14951 from alalek:issue_14937

parents 6fdce865 65552bf4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment