mirror of https://github.com/google/gemma.cpp.git
Fixed bug in PackedBytes - not using override_rows.
PiperOrigin-RevId: 896518708
This commit is contained in:
parent
366b143fbf
commit
a29e2fc655
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue