Commit fc1f9ab2 authored by Ilya Lavrenov's avatar Ilya Lavrenov

removed unnecessary data copying

parent 65b020f0
...@@ -724,7 +724,7 @@ static bool ocl_gemm( InputArray matA, InputArray matB, double alpha, ...@@ -724,7 +724,7 @@ static bool ocl_gemm( InputArray matA, InputArray matB, double alpha,
UMat A = matA.getUMat(), B = matB.getUMat(), D = matD.getUMat(); UMat A = matA.getUMat(), B = matB.getUMat(), D = matD.getUMat();
if (haveC) if (haveC)
ctrans ? transpose(matC, D) : matC.getMat().copyTo(D); // TODO fix it as soon as .copyTo works as expected ctrans ? transpose(matC, D) : matC.copyTo(D);
else else
D.setTo(Scalar::all(0)); D.setTo(Scalar::all(0));
......
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