Skip to content

Commit

Permalink
fix codegenc (#4597)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiics authored and tqchen committed Dec 30, 2019
1 parent fadea92 commit 4072396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relay/backend/contrib/codegen_c/codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class CSourceCodegen : public CSourceModuleCodegenBase {
// Record the external symbol for runtime lookup.
auto sid = GetExtSymbol(func);

auto builder = CodegenC(sid);
CodegenC builder(sid);
builder.VisitExpr(func->body);
code_stream_ << builder.JIT();
}
Expand Down
2 changes: 1 addition & 1 deletion src/relay/backend/contrib/dnnl/codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class DNNLModuleCodegen : public CSourceModuleCodegenBase {
// Record the external symbol for runtime lookup.
auto sid = GetExtSymbol(func);

auto builder = CodegenDNNL(sid);
CodegenDNNL builder(sid);
builder.VisitExpr(func->body);
code_stream_ << builder.JIT();
}
Expand Down

0 comments on commit 4072396

Please sign in to comment.