From a29e2fc655f16ba44905f4b9339a1f3da566bb11 Mon Sep 17 00:00:00 2001 From: Ray Smith Date: Wed, 8 Apr 2026 08:33:40 -0700 Subject: [PATCH] Fixed bug in PackedBytes - not using override_rows. PiperOrigin-RevId: 896518708 --- util/mat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/mat.h b/util/mat.h index 2a898207..a4555794 100644 --- a/util/mat.h +++ b/util/mat.h @@ -200,6 +200,8 @@ class MatPtr : public IFields { private_rows_); } override_rows_ = static_cast(rows); + num_elements_ = static_cast( + ComputeNumElements(type_, Extents2D(override_rows_, cols_))); } // Changes the number of rows and columns without reallocating the memory.