Fixed bug in PackedBytes - not using override_rows.

PiperOrigin-RevId: 896518708
This commit is contained in:
Ray Smith 2026-04-08 08:33:40 -07:00 committed by Copybara-Service
parent 366b143fbf
commit a29e2fc655
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ class MatPtr : public IFields {
private_rows_);
}
override_rows_ = static_cast<uint32_t>(rows);
num_elements_ = static_cast<uint32_t>(
ComputeNumElements(type_, Extents2D(override_rows_, cols_)));
}
// Changes the number of rows and columns without reallocating the memory.