From 2b968204714c44bdbba4700c1c6aa9bfbae870cc Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Thu, 9 Apr 2020 20:58:43 -0700 Subject: [PATCH] [Node] Provide guide to user who has difficulty register SEqualReduce (#5300) --- src/node/structural_equal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/structural_equal.cc b/src/node/structural_equal.cc index 0078781..03cdf9c 100644 --- a/src/node/structural_equal.cc +++ b/src/node/structural_equal.cc @@ -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); } -- 2.7.4