From c30f495dc013a73e371dd8053a0381e4707ab309 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Mon, 15 Jun 2020 20:47:35 +0100 Subject: Code clean-up using black and flake8 - No functional change Signed-off-by: Tim Hall Change-Id: I5ab1198b9d092cd041fa9b85b2dee9900d299bfc --- ethosu/vela/greedy_allocation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ethosu/vela/greedy_allocation.py') diff --git a/ethosu/vela/greedy_allocation.py b/ethosu/vela/greedy_allocation.py index 8393434d..e0176875 100644 --- a/ethosu/vela/greedy_allocation.py +++ b/ethosu/vela/greedy_allocation.py @@ -77,7 +77,9 @@ class GreedyAllocator: for m in lrs: if n != m and n.overlaps_ranges(m): overlap, tens_n, tens_m = n.overlaps_address(m) - if overlap and not (tens_n.equivalence_id == tens_m.equivalence_id and tens_n.address == tens_m.address): + if overlap and not ( + tens_n.equivalence_id == tens_m.equivalence_id and tens_n.address == tens_m.address + ): print("Solution failed, overlapping buffer!") print(tens_n.address, tens_n.address + n.size, n.name) print(tens_m.address, tens_m.address + m.size, m.name) -- cgit v1.2.1