Skip to content

Commit

Permalink
fix codegenc (apache#4597)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiics committed Jan 11, 2020
1 parent dfe2282 commit f442cb7
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 f442cb7

Please sign in to comment.