!593 [ir] fix prim hash function

Merge pull request !593 from biffex/fix-prim-hash-function
pull/593/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit a468dc09a6

@ -152,10 +152,7 @@ struct PrimitiveEqual {
};
struct PrimitiveHasher {
std::size_t operator()(PrimitivePtr const &prim) const {
std::size_t hash = std::hash<std::string>()(prim->name());
return hash;
}
std::size_t operator()(PrimitivePtr const &prim) const { return prim->Hash(); }
};
} // namespace mindspore
#endif // MINDSPORE_CCSRC_IR_PRIMITIVE_H_

Loading…
Cancel
Save