Hzfengsy commented on code in PR #13859:
URL: https://github.com/apache/tvm/pull/13859#discussion_r1093133710
##########
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:
How do we print nodes that cannot be printed as TVMScript (e.g. Relay
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]