mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
removed unnecessary data copying
This commit is contained in:
parent
65b020f0d3
commit
fc1f9ab236
@ -724,7 +724,7 @@ static bool ocl_gemm( InputArray matA, InputArray matB, double alpha,
|
||||
|
||||
UMat A = matA.getUMat(), B = matB.getUMat(), D = matD.getUMat();
|
||||
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
|
||||
D.setTo(Scalar::all(0));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user