Hzfengsy commented on code in PR #13859:
URL: https://github.com/apache/tvm/pull/13859#discussion_r1093976460
##########
src/node/structural_equal.cc:
##########
@@ -313,10 +321,38 @@ class SEqualHandlerDefault::Impl {
*first_mismatch_ = current_paths;
}
if (assert_mode_ && !result) {
- LOG(FATAL) << "ValueError: StructuralEqual check failed, caused by lhs:"
<< std::endl
- << lhs << std::endl
- << "and rhs:" << std::endl
- << rhs;
+ std::ostringstream oss;
+ oss << "ValueError: StructuralEqual check failed, caused by lhs";
Review Comment:
Could you please also comment a bit in this file, saying we will fallback to
Repr printer for unsupported nodes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]