Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wujingyue committed Nov 12, 2024
1 parent 53fa781 commit 243bfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/tensor_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void validateAllocationSizesAndStrides(
strides.size()});

int64_t expected_stride_if_contiguous = 1;
int64_t dim_index = sizes.size();
auto dim_index = static_cast<int64_t>(sizes.size());
// Go backwards because it's easier to compute the expected stride this way.
for (auto domain_index = static_cast<int64_t>(alloc_dom.size()) - 1;
domain_index >= 0;
Expand Down

0 comments on commit 243bfe7

Please sign in to comment.