Skip to content

Commit

Permalink
Increase string buffer size for tensor size errors
Browse files Browse the repository at this point in the history
Differential Revision: D69170272

Pull Request resolved: #8208
  • Loading branch information
GregoryComer authored Feb 5, 2025
1 parent ec1b6c6 commit 3e64c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/core/portable_type/tensor_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Error TensorImpl::internal_resize_contiguous(ArrayRef<SizesType> new_sizes) {
case TensorShapeDynamism::STATIC:
if (!std::equal(sizes_, sizes_ + dim_, new_sizes.begin())) {
#ifdef ET_LOG_ENABLED
std::array<char, 5> old_sizes_str, new_sizes_str;
std::array<char, 16> old_sizes_str, new_sizes_str;

executorch::runtime::sizes_to_string(
old_sizes_str.data(),
Expand Down

0 comments on commit 3e64c4e

Please sign in to comment.