Skip to content

Commit

Permalink
[Relay] Fix name conflict in PartialEval (#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored and jroesch committed Jun 20, 2019
1 parent 05a5c17 commit 0b88df6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/relay/pass/partial_eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@

namespace tvm {
namespace relay {
namespace partial_eval {

using namespace runtime;

Expand Down Expand Up @@ -1087,12 +1088,14 @@ Expr PostProcess(const Expr& e) {
return StripWithFuncId(DeDup(Remap(e)));
}

} // namespace partial_eval

Expr PartialEval(const Expr& e, const Module& m) {
return TransformF([&](const Expr& e) {
return LetList::With([&](LetList* ll) {
PartialEvaluator pe(FreeVars(e), m);
relay::partial_eval::PartialEvaluator pe(FreeVars(e), m);
pe.InitializeFuncId(e);
return PostProcess(pe.VisitExpr(e, ll)->dynamic);
return relay::partial_eval::PostProcess(pe.VisitExpr(e, ll)->dynamic);
});
}, e);
}
Expand Down

0 comments on commit 0b88df6

Please sign in to comment.