From 3e64c4ed868d8625372d0cc183abfb2d4ea1f645 Mon Sep 17 00:00:00 2001 From: Gregory Comer Date: Wed, 5 Feb 2025 11:40:17 -0800 Subject: [PATCH] Increase string buffer size for tensor size errors Differential Revision: D69170272 Pull Request resolved: https://github.com/pytorch/executorch/pull/8208 --- runtime/core/portable_type/tensor_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/core/portable_type/tensor_impl.cpp b/runtime/core/portable_type/tensor_impl.cpp index f029777874..307210a465 100644 --- a/runtime/core/portable_type/tensor_impl.cpp +++ b/runtime/core/portable_type/tensor_impl.cpp @@ -95,7 +95,7 @@ Error TensorImpl::internal_resize_contiguous(ArrayRef new_sizes) { case TensorShapeDynamism::STATIC: if (!std::equal(sizes_, sizes_ + dim_, new_sizes.begin())) { #ifdef ET_LOG_ENABLED - std::array old_sizes_str, new_sizes_str; + std::array old_sizes_str, new_sizes_str; executorch::runtime::sizes_to_string( old_sizes_str.data(),