diff options
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/fp_math.py | 2 | ||||
-rw-r--r-- | ethosu/vela/softmax.py | 2 |
2 files changed, 2 insertions, 2 deletions
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 diff --git a/ethosu/vela/softmax.py b/ethosu/vela/softmax.py index 1bdab740..8b061297 100644 --- a/ethosu/vela/softmax.py +++ b/ethosu/vela/softmax.py @@ -520,7 +520,7 @@ class SoftMax: [1, 1, 1, 512], DataType.int32, self.ONE_OVER_ONE_PLUS_X_LUT, - np.int32, + np.uint32, TensorPurpose.LUT, ) ) |