From cce7f2d9d049f532c53d4fda55f2a39ac410da99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Alfv=C3=A9n?= Date: Fri, 8 Apr 2022 10:47:09 +0200 Subject: 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 Change-Id: I162859ade78487e848510c6a605685e4568c7068 --- ethosu/vela/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py index a19d0531..dde51c00 100644 --- a/ethosu/vela/scheduler.py +++ b/ethosu/vela/scheduler.py @@ -692,7 +692,7 @@ class Scheduler: 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) -- cgit v1.2.1