[enco] Lower ConcatF to Shuffle (#2575)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 10 Dec 2018 03:26:11 +0000 (12:26 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 10 Dec 2018 03:26:11 +0000 (12:26 +0900)
This commit revises enco to lower ConcatF as Shuffle if is not yet delegated
to Android NN.

Note that the current implementation of "Intrinsic Selection" delegates
ConcatF to Android NN only when ConcatF is depth-wise.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/Backend.cpp

index 9881984..9422f20 100644 (file)
@@ -128,8 +128,8 @@ void BackendImpl::compile(coco::Module *m, coco::Data *d)
 
   // Lower Copy as Shuffle
   lower_copy(code(sess));
-  // TODO Lower ConcatF that cannot be delegated to NNAPI as Shuffle
-  // lower_concat(code(sess));
+  // Lower ConcatF as Shuffle if it is not delegated to NNAPI yet
+  lower_concat(code(sess));
 
   generate_bypass_shuffle(code(sess));