tqchen commented on a change in pull request #5717:
URL: https://github.com/apache/incubator-tvm/pull/5717#discussion_r436047427
##########
File path: src/relay/backend/compile_engine.cc
##########
@@ -689,7 +689,7 @@ class CompileEngineImpl : public CompileEngineNode {
cache_node->funcs = (*f)(cfunc->schedule, all_args,
cache_node->func_name, key->source_func);
} else {
using tvm::transform::PassContext;
- With<PassContext> fresh_pass_ctx_scope(PassContext::Create());
+ With<PassContext>
fresh_pass_ctx_scope(static_cast<PassContext>(PassContext()));
Review comment:
Would be interesting to see what error message you got. As copy
constructor is clearly defined in there.
We can also use `With<PassContext> fresh_pass_ctx_scope();`, which invokes
the default constructor(in this case the new pass context.
----------------------------------------------------------------
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:
[email protected]