This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!593
[ir] fix prim hash function
Merge pull request
!593
from biffex/fix-prim-hash-function
tags/v0.2.0-alpha
mindspore-ci-bot
Gitee
5 years ago
parent
0bf6717e9a
8c3d2a0c7c
commit
a468dc09a6
1 changed files
with
1 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-4
mindspore/ccsrc/ir/primitive.h
+ 1
- 4
mindspore/ccsrc/ir/primitive.h
View File
@@ -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_
Write
Preview
Loading…
Cancel
Save