fix the bug in backward OP of index_sample. (#31026)

revert-31068-fix_conv3d_windows
JamesLim 4 years ago committed by GitHub
parent 6b3371e0c7
commit b95eb38b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,7 @@ __global__ void IndexSampleGrad(const IndexT* index, T* in_grad,
platform::CudaAtomicAdd(&(in_grad[in_idx - index_i + sample_idx]),
out_grad[sample_idx]);
} else {
in_grad[in_idx - index_i + sample_idx] = out_grad[sample_idx];
in_grad[in_idx - index_i + sample_idx] = out_grad[index_idx];
}
}
}

Loading…
Cancel
Save