From c4d35eb580902dfe6acedb2db3a72c32760f86af Mon Sep 17 00:00:00 2001 From: oliper01 Date: Tue, 21 Jun 2022 08:51:01 +0000 Subject: MLBEDSW-4856: Removed dead code Hardswish activation function gets converted to LUT in graph optimizer. The case for it was removed, as it was never called. Signed-off-by: oliper01 Change-Id: I376e8d7b81489c06b66d4e49f59b207600c0ccce --- ethosu/vela/operation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ethosu') diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py index 6b6671be..9488fb7f 100644 --- a/ethosu/vela/operation.py +++ b/ethosu/vela/operation.py @@ -436,9 +436,7 @@ def create_activation_function(op_type: Op, min=None, max=None) -> ActivationFun elif op_type == Op.Sigmoid: act.min = 0.0 act.max = 1.0 - elif op_type == Op.HardSwish: - act.min = 0.0 - if op_type == Op.Clamp: + elif op_type == Op.Clamp: assert min is not None and max is not None act.min = min act.max = max -- cgit v1.2.1