projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c4f9d
)
[Node] Provide guide to user who has difficulty register SEqualReduce (#5300)
author
Yizhi Liu
<liuyizhi@apache.org>
Fri, 10 Apr 2020 03:58:43 +0000
(20:58 -0700)
committer
GitHub
<noreply@github.com>
Fri, 10 Apr 2020 03:58:43 +0000
(20:58 -0700)
src/node/structural_equal.cc
patch
|
blob
|
history
diff --git
a/src/node/structural_equal.cc
b/src/node/structural_equal.cc
index
0078781
..
03cdf9c
100644
(file)
--- 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);
}