Because I forgot to do TVM_REGISTER_NODE_TYPE(XXXNode)
in .cc
.
If you see TVMError: Check failed: it != type_key2index_.end(): Cannot find type XXX
, that’s probably the reason.
Because I forgot to do TVM_REGISTER_NODE_TYPE(XXXNode)
in .cc
.
If you see TVMError: Check failed: it != type_key2index_.end(): Cannot find type XXX
, that’s probably the reason.
Haha, thanks for sharing!
Could you please write a tutorial about how to add a node from relay to topi? thanks
This would be great if we can have a comprehensive tutorial
Sorry to hear that, we had comments in https://github.com/apache/incubator-tvm/blob/master/include/tvm/runtime/object.h#L129
We should add more comments to node.h
Yes! My recent PR took lots of time because it was not obvious that TVM_REGISTER_NODE_TYPE
was needed.
would it be helpful to remind about TVM_REGISTER_NODE_TYPE
in the error message?