Skip to content
Commit b7867177 authored by Rickard Bolin's avatar Rickard Bolin
Browse files

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



- 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's avatarRickard Bolin <rickard.bolin@arm.com>
parent 63db5894
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment