Skip to content

Commit 15c0078

Browse files
committed
remove size_t vs int64_t comparison forbidden on internal CIs
1 parent 77695b4 commit 15c0078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void validate_compressed_sparse_indices_kernel(
392392
const int64_t dim,
393393
const int64_t nnz) {
394394
constexpr size_t idx_max_ndims = 8; // up to 7-dim batch.
395-
const int64_t idx_ndims = idx.dim();
395+
const size_t idx_ndims = static_cast<size_t>(idx.dim());
396396

397397
if (is_crow) {
398398
if (idx_ndims <= idx_max_ndims) {

0 commit comments

Comments
 (0)