From f03bad31c194d1a24ce808223f1b00310a7325e2 Mon Sep 17 00:00:00 2001 From: Louis Verhaard Date: Fri, 25 Sep 2020 08:30:44 +0200 Subject: MLBEDSW-2031: LUT support tanh/sigmoid Uses LUT for int8/uint8 based tanh/sigmoid. Change-Id: Ib6ac5a5c958ab9a17e47f620b22c3e22d8d60321 Signed-off-by: Louis Verhaard --- ethosu/vela/fp_math.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ethosu/vela/fp_math.py') diff --git a/ethosu/vela/fp_math.py b/ethosu/vela/fp_math.py index 2515b771..66375611 100644 --- a/ethosu/vela/fp_math.py +++ b/ethosu/vela/fp_math.py @@ -21,6 +21,7 @@ # point implementation. import numpy as np + # Convert floating point to fixed point, default Q5.26 def from_float(x, integer_bits=5): i32info = np.iinfo(np.int32) -- cgit v1.2.1