Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[circle2circle] Add fuse_rmsnorm option #14069

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compiler/circle2circle/src/Circle2Circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ int entry(int argc, char **argv)
"This will fuse Mul operation with a Div operation whose numerator is const.");
add_switch(arser, "--fuse_mul_with_fullyconnected",
"This will fuse Mul operator with a preceding FullyConnected operator.");
add_switch(arser, "--fuse_rmsnorm", "This will fuse operators to RmsNorm operator");
add_switch(arser, "--fuse_slice_with_tconv",
"This will fuse Slice operation with a preceding TConv if possible.");
add_switch(arser, "--fuse_transpose_with_mean",
Expand Down Expand Up @@ -301,6 +302,7 @@ int entry(int argc, char **argv)
option_str_to_enum["fuse_preactivation_batchnorm"] = Algorithms::FusePreActivationBatchNorm;
option_str_to_enum["fuse_prelu"] = Algorithms::FusePRelu;
option_str_to_enum["fuse_gelu"] = Algorithms::FuseGelu;
option_str_to_enum["fuse_rmsnorm"] = Algorithms::FuseRmsNorm;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz add setting flag from luci/pass if this option is enabled.

Copy link
Contributor Author

@seockho-kim seockho-kim Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz add setting flag from luci/pass if this option is enabled.

Where's setting flag in luci pass? I'm sorry I couldn't understand it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, there was refactoring and has changed ... -_-;

option_str_to_enum["fuse_rsqrt"] = Algorithms::FuseRsqrt;
option_str_to_enum["fuse_transpose_with_mean"] = Algorithms::FuseTransposeWithMean;
option_str_to_enum["remove_duplicate_const"] = Algorithms::RemoveDuplicateConst;
Expand Down