Skip to content

Commit

Permalink
[Relay] Setting Legalize opt_level to 1. (apache#4198)
Browse files Browse the repository at this point in the history
  • Loading branch information
anijain2305 authored and kevinthesun committed Oct 30, 2019
1 parent 51423f4 commit 7ece7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/pass/legalize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Pass Legalize(const std::string& legalize_map_attr_name) {
[=](Function f, Module m, PassContext pc) {
return Downcast<Function>(relay::legalize::Legalize(f, legalize_map_attr_name));
};
return CreateFunctionPass(pass_func, 0, "Legalize", {ir::StringImm::make("InferType")});
return CreateFunctionPass(pass_func, 1, "Legalize", {ir::StringImm::make("InferType")});
}

TVM_REGISTER_API("relay._transform.Legalize").set_body_typed(Legalize);
Expand Down

0 comments on commit 7ece7e3

Please sign in to comment.