upsampling2d fix CUDA

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-07-24 14:45:09 +03:00 committed by AlexDBlack
parent 4f2dae23a1
commit 2cd95dc517
1 changed files with 1 additions and 1 deletions

View File

@ -1362,7 +1362,7 @@ static void depthwiseConv2dBP_(const NDArray* input, const NDArray* weights, con
gradBR = new NDArray(gradB->reshape(gradB->ordering(), {(int)gradB->lengthOf()}));
gradO->reduceAlongDimension(reduce::Sum, gradBR, {0,indOoH,indOoH+1}); // sum over bS, oH, oW
if(gradBR != gradB)
delete gradB;
delete gradBR;
}
//----- calculation of gradI -----//