Skip to content

Commit

Permalink
fix rebase problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed May 28, 2019
1 parent 40032dd commit 3c0c18b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/tvm/relay/pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,12 @@ TVM_DLL Expr ToGraphNormalForm(const Expr& e);
* It has two benefit: remove runtime overhead, and allow more optimization (typically fusion).
* As a side effect, code size will explode.
*
* \param e the expression,
* \param e the expression
* \param mod the module
*
* \return the optimized expression.
*/
TVM_DLL Expr PartialEval(const Expr& e);
TVM_DLL Expr PartialEval(const Expr& e, const Module& mod);

/*! \brief A hashing structure in the style of std::hash. */
struct StructuralHash {
Expand Down
2 changes: 1 addition & 1 deletion src/relay/pass/partial_eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ namespace transform {
Pass PartialEval() {
runtime::TypedPackedFunc<Function(Function, Module, PassContext)> pass_func =
[=](Function f, Module m, PassContext pc) {
return Downcast<Function>(PartialEval(f));
return Downcast<Function>(PartialEval(f, m));
};
return CreateFunctionPass(pass_func, 1, "partial_eval", {});
}
Expand Down

0 comments on commit 3c0c18b

Please sign in to comment.