Skip to content

MLBEDSW-10088: Cast shapes and attributes from NumPy to Python types

Rickard Bolin requested to merge mlbedsw-10088 into main
  • When using NumPy 2.0 and above, calculations involving both a Python and NumPy integer are no longer implicitly cast to an int64 data type, which can result in overflows.
  • Cast all shapes and attributes to Python integer as early as possible to avoid accidentally mixing NumPy and Python types in calculations.

Change-Id: I11502a58ada8361954af0cf7b1d8c3b5585291a0 Signed-off-by: Rickard Bolin rickard.bolin@arm.com

Merge request reports