Skip to content

Packing fix: Use strided access for zero point and scale adjustment

Michael Kozlov requested to merge packing_zp_scale_fix into main
  • Restore old behaviour of duplicating metadata of the last real row in the padded lanes.

Commit 3c65f50b introduced a bug by incorrectly handling zero point and scale adjustment. It assumed the values are contiguous and could be memcopy'd, which is wrong.

To access block_idx for row_idx: index = row_idx * num_blocks_per_row + block_idx

Therefore, per-block zero point and scale metadata is stored num_blocks_per_row apart and requires strided access.

Signed-off-by: Michael Kozlov michael.kozlov@arm.com

Edited by Michael Kozlov

Merge request reports

Loading