Skip to content

Commit

Permalink
fold constant
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiics committed Jun 1, 2019
1 parent 6f83f56 commit 940eb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/relay/backend/build_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ class RelayBuildModule : public runtime::ModuleNode {
});
pass_seqs.push_back(transform::EliminateCommonSubexpr(fskip));
pass_seqs.push_back(transform::CombineParallelConv2D(3));
pass_seqs.push_back(transform::FoldConstant());
pass_seqs.push_back(transform::FoldScaleAxis());
pass_seqs.push_back(transform::CanonicalizeOps());

Expand Down
2 changes: 1 addition & 1 deletion src/relay/pass/fold_scale_axis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ Pass FoldScaleAxis() {
// FoldScaleAxis pass contains the following three passes. Therefore, we can
// register it as a sequential pass.
Pass pass = Sequential(
{FoldConstant(), BackwardFoldScaleAxis(), ForwardFoldScaleAxis()},
{BackwardFoldScaleAxis(), ForwardFoldScaleAxis(), FoldConstant()},
"FoldScaleAxis");
return pass;
}
Expand Down

0 comments on commit 940eb96

Please sign in to comment.