sunhaohui commented on code in PR #13017:
URL: https://github.com/apache/tvm/pull/13017#discussion_r991279598
##########
src/relay/op/vm/vm.cc:
##########
@@ -107,7 +107,7 @@ TVM_REGISTER_GLOBAL("relay.op.vm.invoke_tvm_op")
.set_body_typed([](Expr func, Expr inputs, Expr outputs, DictAttrs attrs) {
return InvokeTVMOp(std::move(func), std::move(inputs),
std::move(outputs), std::move(attrs));
});
-
+TVM_REGISTER_NODE_TYPE(DictAttrsNode);
Review Comment:
I know it ,but the init order of static variable is different from MinGW.
When registering static variable “vm.invoke_tvm_op” , It needs DictAttrs.
Howerer DictAttrs has not been registered
(静态全局变量的初始化顺序是编译器控制的,当注册vm.invoke_tvm_op的时候,DictAttrs还没有被注册,反正是Map,重复注册也没事,但是更安全)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]