MLBEDSW-6339 Performance drop on wav2letter
Corrected calculation for used bufferering depth. Before change there
were scenarios when it was set to smaller sizes than needed.
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Change-Id: I162859ade78487e848510c6a605685e4568c7068
diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py
index a19d053..dde51c0 100644
--- a/ethosu/vela/scheduler.py
+++ b/ethosu/vela/scheduler.py
@@ -692,7 +692,7 @@
while True:
# Attempt to buffer whole blocks
- if buffering_bytes > block_depth:
+ if buffering_depth > block_depth:
buffering_depth = round_down(buffering_depth, block_depth)
else:
buffering_depth = round_down(buffering_depth, ArchitectureFeatures.OFMSplitDepth)