sunhaohui commented on code in PR #13017:
URL: https://github.com/apache/tvm/pull/13017#discussion_r991682923
##########
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:
src/relay/op/vm/vm.cc:111 (My branch ) Notice
.set_attrs_type_key("DictAttrs")
RELAY_REGISTER_OP("vm.invoke_tvm_op")
.describe(R"code(Invoke an operation compiled by TVM.)code"
TVM_ADD_FILELINE)
.set_num_inputs(3)
.add_argument("op", "Function", "The operation to call")
.add_argument("ins", "Tuple", "The input tensors.")
.add_argument("outs", "Tuple", "The output tensors.")
.add_type_rel("InvokeTVMOp", InvokeTVMOpRel)
**_.set_attrs_type_key("DictAttrs")_**
--
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]