Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aten/src/THC/THCTensorIndex.cu
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ __global__ void indexFillSmallIndex(TensorInfo<T, IndexType> dst,
// Lua indices begin at 1
IndexType dstIndex_ =
indices.data[IndexToOffset<int64_t, IndexType, IdxDim>::get(dstIndex, indices)] - TH_INDEX_BASE;
assert(dstIndex < dstFillDimSize);
assert(dstIndex_ < dstFillDimSize);

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