[Relay] Setting Legalize opt_level to 1. (#4198)
authorAnimesh Jain <anijain@umich.edu>
Mon, 28 Oct 2019 18:26:20 +0000 (11:26 -0700)
committerZhi <5145158+zhiics@users.noreply.github.com>
Mon, 28 Oct 2019 18:26:20 +0000 (11:26 -0700)
src/relay/pass/legalize.cc

index f57d910..daed47a 100644 (file)
@@ -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);