From 243bfe776d47e55e6a7a57a4d39981cbeea7b6bb Mon Sep 17 00:00:00 2001 From: Jingyue Wu Date: Thu, 7 Nov 2024 20:48:30 -0800 Subject: [PATCH] Fix lint --- csrc/tensor_metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csrc/tensor_metadata.cpp b/csrc/tensor_metadata.cpp index 00949f6481d..bf887d09ce0 100644 --- a/csrc/tensor_metadata.cpp +++ b/csrc/tensor_metadata.cpp @@ -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(sizes.size()); // Go backwards because it's easier to compute the expected stride this way. for (auto domain_index = static_cast(alloc_dom.size()) - 1; domain_index >= 0;