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

Method AddUser

tensorflow/compiler/xla/service/hlo_instruction.cc:1905–1910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1903}
1904
1905void HloInstruction::AddUser(HloInstruction* user) {
1906 if (!ContainsKey(user_map_, user)) {
1907 user_map_.emplace(user, users_.size());
1908 users_.push_back(user);
1909 }
1910}
1911
1912int64 HloInstruction::UserId(HloInstruction* user) {
1913 auto result = user_map_.find(user);

Calls 4

ContainsKeyFunction · 0.85
emplaceMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected