aboutsummaryrefslogtreecommitdiff
path: root/ethosu
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu')
-rw-r--r--ethosu/vela/scaling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/scaling.py b/ethosu/vela/scaling.py
index 785cddc6..ce0259a5 100644
--- a/ethosu/vela/scaling.py
+++ b/ethosu/vela/scaling.py
@@ -88,7 +88,7 @@ def advanced_elementwise_add_sub_scale(input1_scale, input2_scale, output_scale,
# Always scale the smaller of the input scales
max_input_scale = max(input1_scale, input2_scale)
min_input_scale = min(input1_scale, input2_scale)
- input_shift = 20 if bitdepth == 8 else 14
+ input_shift = 20 if bitdepth == 8 else 15
op_to_scale = OperandToScale.OPa if input1_scale < input2_scale else OperandToScale.OPb
input1_rescale, _, out_scale, out_shift = simplified_elementwise_add_sub_scale(