Skip to content

Commit

Permalink
[circle2circle] Handle XpSepActFromTransposeConv
Browse files Browse the repository at this point in the history
This will revise circle2circle to handle XpSepActFromTransposeConv
with exp_disable_sep_transposeconv_actfunc option.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark committed Sep 13, 2023
1 parent 093fc7f commit 718a389
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions compiler/circle2circle/src/Circle2Circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -332,6 +338,14 @@ int entry(int argc, char **argv)
if (arser.get<bool>("--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<bool>("--exp_disable_sep_transposeconv_actfunc"))
options->enable(Algorithms::XpSepActFromTransposeConv);

if (arser.get<bool>("--mute_warnings"))
settings->set(luci::UserSettings::Key::MuteWarnings, true);
if (arser.get<bool>("--disable_validation"))
Expand Down

0 comments on commit 718a389

Please sign in to comment.