[Node] Provide guide to user who has difficulty register SEqualReduce (#5300)
authorYizhi Liu <liuyizhi@apache.org>
Fri, 10 Apr 2020 03:58:43 +0000 (20:58 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2020 03:58:43 +0000 (20:58 -0700)
src/node/structural_equal.cc

index 0078781..03cdf9c 100644 (file)
@@ -35,7 +35,8 @@ SEqualReduce(const Object* self, const Object* other, SEqualReducer equal) const
   uint32_t tindex = self->type_index();
   if (tindex >= fsequal_reduce_.size() || fsequal_reduce_[tindex] == nullptr) {
     LOG(FATAL) << "TypeError: SEqualReduce of " << self->GetTypeKey()
-        << " is not registered via TVM_REGISTER_NODE_TYPE";
+        << " is not registered via TVM_REGISTER_NODE_TYPE."
+        << " Did you forget to set _type_has_method_sequal_reduce=true?";
   }
   return fsequal_reduce_[tindex](self, other, equal);
 }