parent
4f2dae23a1
commit
2cd95dc517
|
@ -1362,7 +1362,7 @@ static void depthwiseConv2dBP_(const NDArray* input, const NDArray* weights, con
|
||||||
gradBR = new NDArray(gradB->reshape(gradB->ordering(), {(int)gradB->lengthOf()}));
|
gradBR = new NDArray(gradB->reshape(gradB->ordering(), {(int)gradB->lengthOf()}));
|
||||||
gradO->reduceAlongDimension(reduce::Sum, gradBR, {0,indOoH,indOoH+1}); // sum over bS, oH, oW
|
gradO->reduceAlongDimension(reduce::Sum, gradBR, {0,indOoH,indOoH+1}); // sum over bS, oH, oW
|
||||||
if(gradBR != gradB)
|
if(gradBR != gradB)
|
||||||
delete gradB;
|
delete gradBR;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----- calculation of gradI -----//
|
//----- calculation of gradI -----//
|
||||||
|
|
Loading…
Reference in New Issue