Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjscience committed Dec 28, 2017
1 parent 399ba02 commit e99ffd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/tensor/indexing_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ struct scatter_nd_acc {
offset += strides[j] * static_cast<int>(indices[j*N + i]);
}
for (int j = 0; j < K; ++j) {
#if __CUDA__
#ifdef __CUDACC__
atomicAdd(out + (offset + j), data[i * K + j]);
#else
out[offset + j] += data[i * K + j];
Expand Down

0 comments on commit e99ffd0

Please sign in to comment.