aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/scheduler.py
diff options
context:
space:
mode:
authorJohan Alfvén <johan.alfven@arm.com>2022-10-19 11:20:12 +0200
committerJohan Alfvén <johan.alfven@arm.com>2022-10-20 14:38:55 +0200
commit56a71b0108f43a1cb118b1e2fae902c31b2a9969 (patch)
tree4692139c4dcd6e53b55b1a07ff1b09eb8461a4a8 /ethosu/vela/scheduler.py
parentfba0a7dc43373a69f3c0792587d3d9b0cc010ccf (diff)
downloadethos-u-vela-56a71b0108f43a1cb118b1e2fae902c31b2a9969.tar.gz
MLBEDSW-7019: Update to elementwise cascading
- The cascade builder is using the ifm_ifm2_correct_order function in order to decide if the operator is cascadable or not. The problem is that this function expects a full shape or no shape and the cascade builder did not provide that, so the operator was reported to be non cascadable. - The fix is to provide a full 4D shape, also refactoring ifm_ifm2_correct_order to use 4D shape to avoid confusion in the future. - Refactoring code so that the scheduler can perform a correct ifm and ifm2 swap. Signed-off-by: Johan Alfven <johan.alfven@arm.com> Change-Id: I9a86c4690612f332afa428456a07e67698852495
Diffstat (limited to 'ethosu/vela/scheduler.py')
-rw-r--r--ethosu/vela/scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py
index 208b121e..79cd6421 100644
--- a/ethosu/vela/scheduler.py
+++ b/ethosu/vela/scheduler.py
@@ -227,7 +227,7 @@ class SchedulerOperation:
# Perform an IFM swap for certain binary elementwise operators
# in order to enable cascading, if the SchedOp conforms to
# Elementwise cascading rules.
- if self.op_type.is_binary_elementwise_op() and CascadeBuilder.element_wise_cascading_conformity(self):
+ if self.op_type.is_binary_elementwise_op() and CascadeBuilder.elementwise_cascading_conformity(self):
ifm1 = ps.ifm_tensor
ifm2 = ps.ifm2_tensor
ofm = ps.ofm_tensor