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 44f81ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# https://clang.llvm.org/docs/ClangFormat.html
BasedOnStyle: Google
DerivePointerAlignment: false
ColumnLimit: 100
ColumnLimit: 80
PointerAlignment: Left
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 44f81ed

Please sign in to comment.