diff options
-rw-r--r-- | ethosu/vela/operation.py | 4 |
1 files changed, 1 insertions, 3 deletions
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 |