Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghang1989 committed Sep 29, 2016
1 parent b6d7861 commit e8632a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HZPROC/HZCropping.cu
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ __global__ void HZCrop_Pad_kernel (
inheight = input.getSize(1);
/* main operation */
xi = xo + xb - pad;
yi = yo + xb - pad;
yi = yo + yb - pad;
/* boundary check for input*/
if(xi >= 0 && xi < inwidth && yi >=0 && yi < inheight)
output[ch][yo][xo] = input[ch][yi][xi].ldg();
Expand Down

0 comments on commit e8632a0

Please sign in to comment.