aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2021-10-29 12:51:53 +0100
committertim.hall <tim.hall@arm.com>2021-11-02 12:28:10 +0000
commitb1a9a9285b25f1ee9093a0343310d9f3d37c7756 (patch)
tree10a87d617e322dc2b87318201a2b7cf66654c5d9
parentba2555e9fe9a93a308cc4e50f6a8a160571cb563 (diff)
downloadethos-u-vela-b1a9a9285b25f1ee9093a0343310d9f3d37c7756.tar.gz
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 <tim.hall@arm.com> Change-Id: Idb3c741a7b52e0d81c1f687f6ecf78352b7872dd
-rw-r--r--ethosu/vela/pass_packing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/pass_packing.py b/ethosu/vela/pass_packing.py
index b28f4eb..530ad78 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