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 <rickard.bolin@arm.com>
Loading
Please register or sign in to comment