aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/scheduler.py
diff options
context:
space:
mode:
authorRaul Farkas <raul.farkas@arm.com>2023-03-16 16:38:05 +0000
committerRaul Farkas <raul.farkas@arm.com>2023-03-27 16:35:56 +0100
commit72c6a2414205e033279f80b622cdf479c05a4f5b (patch)
tree35dedce67cedd2fe5533cf0beb2942a7f31199e3 /ethosu/vela/scheduler.py
parent430002df36f79d035e31e8304fb8b176129cd3cc (diff)
downloadethos-u-vela-72c6a2414205e033279f80b622cdf479c05a4f5b.tar.gz
MLBEDSW-6343: Remove op_index constraint
Remove op_index constraint and force linear format for all Conv2D that have strides that can be optimised. Change-Id: Idef3508ab074ea9abeacac030eaaa15a00ad1211 Signed-off-by: Raul Farkas <raul.farkas@arm.com>
Diffstat (limited to 'ethosu/vela/scheduler.py')
-rw-r--r--ethosu/vela/scheduler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py
index 83e19bc6..6fcb6c1d 100644
--- a/ethosu/vela/scheduler.py
+++ b/ethosu/vela/scheduler.py
@@ -467,11 +467,11 @@ class Scheduler:
if output in self.sg.output_tensors or output.purpose != TensorPurpose.FeatureMap:
continue
- if output.needs_linear_format:
+ if output.use_linear_format:
continue
if self.avoid_nhcwb16_for_ofm(output, ps, arch):
- output.needs_linear_format = True
+ output.force_linear_format = True
continue
output.set_format(TensorFormat.NHCWB16, arch)
@@ -504,11 +504,11 @@ class Scheduler:
if ps.ofm_tensor in self.sg.output_tensors:
# This Op produces a subgraph output
op.requires_full_ofm = True
- if ps.ifm_tensor.needs_linear_format:
+ if ps.ifm_tensor.use_linear_format:
op.requires_full_ifm = True
- if ps.ifm2_tensor and ps.ifm2_tensor.needs_linear_format:
+ if ps.ifm2_tensor and ps.ifm2_tensor.use_linear_format:
op.requires_full_ifm2 = True
- if ps.ofm_tensor.needs_linear_format or ps.primary_op.memory_function == Op.ConcatSliceWrite:
+ if ps.ofm_tensor.use_linear_format or ps.primary_op.memory_function == Op.ConcatSliceWrite:
op.requires_full_ofm = True
if len(ps.primary_op.outputs) > 1 or len(ps.primary_op.outputs[0].consumer_list) > 1:
# Op has multiple outputs or consumers - requires full OFM