ANSHUMAN87 commented on a change in pull request #5717:
URL: https://github.com/apache/incubator-tvm/pull/5717#discussion_r434657083
##########
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:
@tqchen : Thanks! I tried with copy constructor
[using](https://github.com/apache/incubator-tvm/blob/9151a519b9495483a3d2bf552c8d6cf02e2302a3/include/tvm/runtime/object.h#L686),
but it did not work out.
----------------------------------------------------------------
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]