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

Method Replace

tensorflow/compiler/xla/service/hlo_reachability.cc:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void HloReachabilityMap::Replace(const HloInstruction* original,
64 const HloInstruction* replacement) {
65 if (GetKey(original) == GetKey(replacement)) {
66 return;
67 }
68 indices_[GetKey(replacement)] = GetIndex(original);
69 indices_.erase(GetKey(original));
70}
71
72void HloReachabilityMap::SetReachable(const HloInstruction* a,
73 const HloInstruction* b) {

Callers 2

TEST_FFunction · 0.45
CreateFusionMethod · 0.45

Calls 2

GetKeyFunction · 0.85
eraseMethod · 0.45

Tested by 1

TEST_FFunction · 0.36