From 9785cc7cc3a6f853f9d52228e1a651b41f8f189f Mon Sep 17 00:00:00 2001 From: Patrik Gustavsson Date: Wed, 25 Nov 2020 12:43:18 +0100 Subject: MLBEDSW-3352 Avoid ifm streaming for some cases Changed so it is not allowed to do ifm-streaming for TransposeConv and ResizeBilinear Signed-off-by: Patrik Gustavsson Change-Id: I85da279fae6202830c46e4a5500fb1b0dd6ef542 --- ethosu/vela/scheduler.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py index d6e890ab..943c590c 100644 --- a/ethosu/vela/scheduler.py +++ b/ethosu/vela/scheduler.py @@ -557,6 +557,12 @@ class DynamicProgrammingScheduler: return strat_data + def avoid_ifm_streaming(self, ps): + for op in ps.ops: + if op.type in (Op.Conv2DBackpropInputSwitchedBias, Op.ResizeBilinear): + return True + return False + @lru_cache(maxsize=None) def search_output(self, ps): @@ -565,7 +571,7 @@ class DynamicProgrammingScheduler: candidate_list.extend(self.search_weight_streaming_output(ps)) - if self.options.use_ifm_streaming: + if self.options.use_ifm_streaming and not self.avoid_ifm_streaming(ps): candidate_list.extend(self.search_ifm_streaming_output(ps)) best = self.filter_pareto_frontier(candidate_list, remove_equally_good_candidates=True) -- cgit v1.2.1