From 7ece7e3574d8d540783a2f89e64e7dc89aaf990a Mon Sep 17 00:00:00 2001 From: Animesh Jain Date: Mon, 28 Oct 2019 11:26:20 -0700 Subject: [PATCH] [Relay] Setting Legalize opt_level to 1. (#4198) --- src/relay/pass/legalize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relay/pass/legalize.cc b/src/relay/pass/legalize.cc index f57d9103412e..daed47afdcb3 100644 --- a/src/relay/pass/legalize.cc +++ b/src/relay/pass/legalize.cc @@ -103,7 +103,7 @@ Pass Legalize(const std::string& legalize_map_attr_name) { [=](Function f, Module m, PassContext pc) { return Downcast(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);