Skip to content

Commit fcb0b0d

Browse files
ssnlsoumith
authored andcommitted
fix (#3953)
1 parent 8f2bc15 commit fcb0b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/THC/THCTensorIndex.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ __global__ void indexFillSmallIndex(TensorInfo<T, IndexType> dst,
203203
// Lua indices begin at 1
204204
IndexType dstIndex_ =
205205
indices.data[IndexToOffset<int64_t, IndexType, IdxDim>::get(dstIndex, indices)] - TH_INDEX_BASE;
206-
assert(dstIndex < dstFillDimSize);
206+
assert(dstIndex_ < dstFillDimSize);
207207

208208
// We stride over the output ignoring the indexed dimension
209209
// (innerSize), whose offset calculation is handled differently

0 commit comments

Comments
 (0)