projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
319c279
)
[Relay] Setting Legalize opt_level to 1. (#4198)
author
Animesh Jain
<anijain@umich.edu>
Mon, 28 Oct 2019 18:26:20 +0000
(11:26 -0700)
committer
Zhi
<5145158+zhiics@users.noreply.github.com>
Mon, 28 Oct 2019 18:26:20 +0000
(11:26 -0700)
src/relay/pass/legalize.cc
patch
|
blob
|
history
diff --git
a/src/relay/pass/legalize.cc
b/src/relay/pass/legalize.cc
index
f57d910
..
daed47a
100644
(file)
--- 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<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);