From b1a9a9285b25f1ee9093a0343310d9f3d37c7756 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Fri, 29 Oct 2021 12:51:53 +0100 Subject: MLBEDSW-5437: MLCE: Vela ignores back2back Activations in model - Back-to-back 16-bit activation ops were packed into the same pass because there was no check to disallow it - The solution is to set the appropriate incompatible-flags Signed-off-by: Tim Hall Change-Id: Idb3c741a7b52e0d81c1f687f6ecf78352b7872dd --- ethosu/vela/pass_packing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethosu/vela/pass_packing.py b/ethosu/vela/pass_packing.py index b28f4eb4..530ad78e 100644 --- a/ethosu/vela/pass_packing.py +++ b/ethosu/vela/pass_packing.py @@ -105,7 +105,7 @@ test_sequence = [ # ops_set npu_post_fuse_limited_ops, # incompatible_pack_flags - PassFlags.Cpu | PassFlags.MemoryOnly | PassFlags.Main, + PassFlags.Cpu | PassFlags.MemoryOnly | PassFlags.Main | PassFlags.PostFusingLimited, # flags_to_set PassFlags.Npu | PassFlags.PostFusingLimited, # flags_to_clear -- cgit v1.2.1