Skip to content

Commit

Permalink
Fix tests - 2
Browse files Browse the repository at this point in the history
Change-Id: I1418030e5c25a9b8d97cc741210d2866f010b72a
  • Loading branch information
Giuseppe Rossini committed May 12, 2021
1 parent e05eb8a commit 71dd730
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/relay/backend/build_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ struct AOTCodegen : ExecutorCodegen {
mod = (*pf)();
}

void Codegen(const Function& func, String mod_name) { CallFunc("codegen", func, mod_name); }
void Codegen(const Function& func, String mod_name) override {
CallFunc("codegen", func, mod_name);
}

void UpdateOutput(BuildOutput* ret) override { ret->graph_json = ""; }

Expand All @@ -138,7 +140,7 @@ struct GraphCodegen : ExecutorCodegen {
}
void UpdateOutput(BuildOutput* ret) override { ret->graph_json = GetGraphJSON(); }

void Codegen(const Function& func, String mod_name) { CallFunc("codegen", func); }
void Codegen(const Function& func, String mod_name) override { CallFunc("codegen", func); }

std::string GetGraphJSON() { return CallFunc<std::string>("get_graph_json", nullptr); }

Expand Down

0 comments on commit 71dd730

Please sign in to comment.