aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela')
-rw-r--r--ethosu/vela/register_command_stream_generator.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index 3b552e09..6db9fe38 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -744,8 +744,6 @@ def generate_scaling_for_elementwise(emit: CommandStreamEmitter, npu_op: NpuElem
# the following we know that double rounding will have no effect for advanced scaling
# no matter the input, so we can safely use simplified scaling with double rounding disabled.
use_advanced_scaling = int(ofm_scale) & 0xFFF != 0
- if not use_advanced_scaling:
- npu_op.rounding_mode = NpuRoundingMode.NATURAL
else:
use_advanced_scaling = True
if use_advanced_scaling: