We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77695b4 commit 15c0078Copy full SHA for 15c0078
1 file changed
aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h
@@ -392,7 +392,7 @@ void validate_compressed_sparse_indices_kernel(
392
const int64_t dim,
393
const int64_t nnz) {
394
constexpr size_t idx_max_ndims = 8; // up to 7-dim batch.
395
- const int64_t idx_ndims = idx.dim();
+ const size_t idx_ndims = static_cast<size_t>(idx.dim());
396
397
if (is_crow) {
398
if (idx_ndims <= idx_max_ndims) {
0 commit comments