From: 박천교/On-Device Lab(SR)/Engineer/삼성전자 Date: Mon, 25 Nov 2019 07:07:55 +0000 (+0900) Subject: [exo] Register Instance Norm fuse (#9169) X-Git-Tag: submit/tizen/20191205.083104~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9c61852efe828c4eefba0047dccdb855b260096;p=platform%2Fcore%2Fml%2Fnnfw.git [exo] Register Instance Norm fuse (#9169) This commit registers Instance norm fusion to exo optimize pass Signed-off-by: Cheongyo Bahk --- diff --git a/compiler/exo/src/Passes.h b/compiler/exo/src/Passes.h index fd20830..2a702d0 100644 --- a/compiler/exo/src/Passes.h +++ b/compiler/exo/src/Passes.h @@ -23,6 +23,7 @@ #include "Pass/FoldReshapeOfConstPass.h" #include "Pass/FoldTransposeOfConstPass.h" #include "Pass/FuseBiasAddPass.h" +#include "Pass/FuseInstanceNormPass.h" #include "Pass/FuseReluPass.h" #include "Pass/FuseRsqrtPass.h" #include "Pass/FuseSquaredDifferencePass.h" diff --git a/compiler/exo/src/TFLOptimize.cpp b/compiler/exo/src/TFLOptimize.cpp index 27d2168..f732fd0 100644 --- a/compiler/exo/src/TFLOptimize.cpp +++ b/compiler/exo/src/TFLOptimize.cpp @@ -43,6 +43,11 @@ void optimize(loco::Graph *g) phase.emplace_back(stdex::make_unique()); } + if (get()) + { + phase.emplace_back(stdex::make_unique()); + } + if (get()) { phase.emplace_back(stdex::make_unique());