From 5b513886ab120023eb1319d4883b175db8b7de3a Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Fri, 11 Dec 2020 13:42:22 +0100 Subject: [MLBEDSW-297] Setup and run on Microsoft Windows Various updates to make vela run and produce identical output on Microsoft Windows. * Fixed overflow errors * Fixed compile warnings * Avoid problematic numpy version * Updated README.md Signed-off-by: Fredrik Svedberg Change-Id: Ie48c63a92a00c81b3247d07f05b75d881319ddbb --- ethosu/vela/fp_math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu/vela/fp_math.py') diff --git a/ethosu/vela/fp_math.py b/ethosu/vela/fp_math.py index 66375611..5228f031 100644 --- a/ethosu/vela/fp_math.py +++ b/ethosu/vela/fp_math.py @@ -41,7 +41,7 @@ def saturating_rounding_mul(a, b): if a == b and a == np.iinfo(np.int32).min: return np.int32(np.iinfo(np.int32).max) divider = 1 << 31 - ab = a * b + ab = np.int64(a) * np.int64(b) if ab >= 0: nudge = 1 << 30 return (ab + nudge) // divider -- cgit v1.2.1