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

Method GetTopoHash

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

Source from the content-addressed store, hash-verified

153}
154
155size_t SigNode::GetTopoHash(int distance) const {
156 CHECK(!topo_hash_.empty());
157 if (distance >= topo_hash_.size()) {
158 CHECK(hash_is_final_);
159 return topo_hash_.back();
160 } else {
161 return topo_hash_[distance];
162 }
163}
164
165bool SigNode::operator==(const SigNode& other) const {
166 // TODO(babkin): add attributes too.

Callers 1

ComputeTopoHashMethod · 0.45

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected