MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ComputeTopoHash0

Method ComputeTopoHash0

tensorflow/core/grappler/graph_analyzer/sig_node.cc:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void SigNode::ComputeTopoHash0() {
89 topo_hash_.clear();
90 last_hashed_nodes_ = next_hashed_nodes_ = node_mask_;
91
92 // TODO(babkin): include the attrbutes too, as an option.
93 size_t hval = std::hash<string>()(opcode());
94
95 // Getting the topology of the links in to the hash early should get more
96 // conflicts resolved early.
97 for (const auto& entry : hashed_peers_) {
98 CombineHash(entry.link_hash, &hval);
99 }
100
101 topo_hash_.push_back(hval);
102}
103
104void SigNode::ComputeTopoHash(int distance) {
105 // The new starting point.

Callers 1

PrepareNodesMethod · 0.45

Calls 4

hash<string>Class · 0.85
CombineHashFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected