-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bugfix][IR][ATTRS] Fix AttrEqual for Array and StrMap, double #5054
Conversation
@@ -54,6 +51,9 @@ TVM_REGISTER_OBJECT_TYPE(DocTextNode); | |||
class DocText : public DocAtom { | |||
public: | |||
explicit DocText(std::string str) { | |||
if (str.find_first_of("\t\n") != str.npos) { | |||
LOG(WARNING) << "text node: '" << str << "' should not has tab or newline."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG(WARNING) << "text node: '" << str << "' should not has tab or newline."; | |
LOG(WARNING) << "text: '" << str << "' should not has tab or newline."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please fix CI.
src/ir/attrs.cc
Outdated
@@ -344,6 +344,7 @@ bool DictAttrsNode::ContentEqual(const Object* other, AttrsEqual equal) const { | |||
if (this == other) return true; | |||
if (other == nullptr) return false; | |||
if (this->type_index() != other->type_index()) return false; | |||
LOG(INFO) << "Content equal "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this debugging stmt
- Use fuzzy comparison for double. - Removed the hack for BatchNormAttrs and DictAttr. Also removed a warning from text printer printing.
Thanks @MarisaKirisame @zhiics |
…e#5054) - Use fuzzy comparison for double. - Removed the hack for BatchNormAttrs and DictAttr. Also removed a warning from text printer printing.
…e#5054) - Use fuzzy comparison for double. - Removed the hack for BatchNormAttrs and DictAttr. Also removed a warning from text printer printing.
Also removed a warning from text printer printing.
cc @MarisaKirisame @zhiics @merrymercy @jroesch @spectrometerHBH