You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/03/20 16:24:50 UTC

[GitHub] [incubator-tvm] tqchen commented on a change in pull request #5028: [RELAY] Remove kCompiler attr from ext mod

tqchen commented on a change in pull request #5028: [RELAY] Remove kCompiler attr from ext mod
URL: https://github.com/apache/incubator-tvm/pull/5028#discussion_r395749978
 
 

 ##########
 File path: src/relay/backend/compile_engine.cc
 ##########
 @@ -627,6 +627,7 @@ class CompileEngineImpl : public CompileEngineNode {
         const tvm::tir::StringImmNode* symbol_name = ext_symbol.as<tvm::tir::StringImmNode>();
         CHECK(symbol_name) << "No external symbol is set for:\n" << AsText(src_func, false);
         auto gv = GlobalVar(symbol_name->value);
+        src_func = FunctionSetAttr(src_func, attr::kCompiler, tir::StringImmNode::make("default"));
 
 Review comment:
   Need to change to WithAttr

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services