diff options
author | Johan Alfvén <johan.alfven@arm.com> | 2022-05-17 10:26:48 +0200 |
---|---|---|
committer | Johan Alfvén <johan.alfven@arm.com> | 2022-05-17 10:59:38 +0200 |
commit | 3dae1b6088a469f1073222bf249d17c8cdf39dbf (patch) | |
tree | 4addfa1c3757218da2b5541627e53e3a1075d9f0 /ethosu/vela/scheduler.py | |
parent | fd8b500085d1ac1cca54a71631d21713a3c21f09 (diff) | |
download | ethos-u-vela-3dae1b6088a469f1073222bf249d17c8cdf39dbf.tar.gz |
MLBEDSW-6296: Updated condition for the opt size weight buffering schedule
Allow schedule do be used when calculations says zero total improvement
but calculations on the other hand shows there are dram improvement.
When testing on real target, total performance is improvement.
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Change-Id: Ib4f2a37710dc7954b72b48c38fce4817ccd7187b
Diffstat (limited to 'ethosu/vela/scheduler.py')
-rw-r--r-- | ethosu/vela/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py index 67b890e1..bc058762 100644 --- a/ethosu/vela/scheduler.py +++ b/ethosu/vela/scheduler.py @@ -1077,7 +1077,7 @@ class Scheduler: improvement_dram = round((default_dram_cycles - new_dram_cycles) / default_dram_cycles, 2) # Compare both total and dram improvement - if not (improvement_tot > 0 and improvement_dram > 0): + if not (improvement_tot >= 0 and improvement_dram > 0): # No improvement, restore the default schedule for sched_op in self.sched_ops: sched_op.evicted_fms_size = 0 |