Commit 780a9945 by Animesh Jain Committed by Zhi

[Relay] Setting Legalize opt_level to 1. (#4198)

parent 319c279d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment