From 718a3895eea6d0bf1ca6f191512596924618c5f2 Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Wed, 13 Sep 2023 02:49:32 +0000 Subject: [PATCH] [circle2circle] Handle XpSepActFromTransposeConv This will revise circle2circle to handle XpSepActFromTransposeConv with exp_disable_sep_transposeconv_actfunc option. ONE-DCO-1.0-Signed-off-by: SaeHie Park --- compiler/circle2circle/src/Circle2Circle.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/compiler/circle2circle/src/Circle2Circle.cpp b/compiler/circle2circle/src/Circle2Circle.cpp index 6a7be2204a6..9ace564a39a 100644 --- a/compiler/circle2circle/src/Circle2Circle.cpp +++ b/compiler/circle2circle/src/Circle2Circle.cpp @@ -176,6 +176,12 @@ int entry(int argc, char **argv) "This will turn off operator validations. May help input model investigation."); add_switch(arser, "--generate_profile_data", "This will turn on profiling data generation."); + // NOTE Experimental options; these will be removed someday + // Add experimental options here + add_switch(arser, "--exp_disable_sep_transposeconv_actfunc", + "This will turn off experimental separation of activation function from " + "TransposeConv."); + // Convert dynamic batch to single batch // Users have to use this option only when the first dimension of rank 4 input (NHWC or NCHW) // is dynamic. Remove this comment after non-rank 4 is supported. @@ -332,6 +338,14 @@ int entry(int argc, char **argv) if (arser.get("--unroll_unidirseqlstm")) options->enable(Algorithms::UnrollUnidirSeqLSTM); + // NOTE Experimental options; these will be removed someday + // Add experimental options here + // NOTE XpSepActFromTransposeConv is enabled for default + // exp_disable_sep_act_transposeconv is to turn it off + // which will leave TransposeConv with fused activation + if (!arser.get("--exp_disable_sep_transposeconv_actfunc")) + options->enable(Algorithms::XpSepActFromTransposeConv); + if (arser.get("--mute_warnings")) settings->set(luci::UserSettings::Key::MuteWarnings, true); if (arser.get("--disable_validation"))