From c7fe0d6732b8404bf37cd60fc7991fd7605a3b20 Mon Sep 17 00:00:00 2001 From: Lucy Qiu Date: Wed, 4 Jun 2025 11:22:14 -0700 Subject: [PATCH] fix-up (#11362) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/11362 See if this resolves the errors, otherwise revert D75923129. Reviewed By: swolchok Differential Revision: D75966982 --- runtime/core/exec_aten/testing_util/tensor_factory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/core/exec_aten/testing_util/tensor_factory.h b/runtime/core/exec_aten/testing_util/tensor_factory.h index 1cad4ec2a7c..562db9759a2 100644 --- a/runtime/core/exec_aten/testing_util/tensor_factory.h +++ b/runtime/core/exec_aten/testing_util/tensor_factory.h @@ -626,12 +626,12 @@ inline void validate_strides( false, "Stride value and size dont comply at index %d." " strides[%d]: %d, strides[%d] = %d, sizes[%d] = %d, sizes[%d] = %d", - i, - i, + static_cast(i), + static_cast(i), strides[i], j, strides[j], - i, + static_cast(i), sizes[i], j, sizes[j]);