Skip to content

Commit

Permalink
reminding message for TVM_REGISTER_NODE_TYPE (apache#4365)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu authored and Xingyu Zhou committed Nov 26, 2019
1 parent f470272 commit 01cdf99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class TypeContext {
uint32_t TypeKey2Index(const std::string& skey) {
auto it = type_key2index_.find(skey);
CHECK(it != type_key2index_.end())
<< "Cannot find type " << skey;
<< "Cannot find type " << skey
<< ". Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?";
return it->second;
}

Expand Down

0 comments on commit 01cdf99

Please sign in to comment.