From f442cb7fca1ce64eca163687ed1dd97179b6d35f Mon Sep 17 00:00:00 2001 From: Zhi <5145158+zhiics@users.noreply.github.com> Date: Sun, 29 Dec 2019 20:38:16 -0800 Subject: [PATCH] fix codegenc (#4597) --- src/relay/backend/contrib/codegen_c/codegen.cc | 2 +- src/relay/backend/contrib/dnnl/codegen.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/relay/backend/contrib/codegen_c/codegen.cc b/src/relay/backend/contrib/codegen_c/codegen.cc index 4a4a60a33509..cdaf813c44e4 100644 --- a/src/relay/backend/contrib/codegen_c/codegen.cc +++ b/src/relay/backend/contrib/codegen_c/codegen.cc @@ -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(); } diff --git a/src/relay/backend/contrib/dnnl/codegen.cc b/src/relay/backend/contrib/dnnl/codegen.cc index 5c68d5a1711e..e7f7bd6ff559 100644 --- a/src/relay/backend/contrib/dnnl/codegen.cc +++ b/src/relay/backend/contrib/dnnl/codegen.cc @@ -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(); }