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

Method AddInstruction

tensorflow/compiler/xla/service/hlo_parser.cc:4163–4173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4161}
4162
4163bool HloParserImpl::AddInstruction(const std::string& name,
4164 HloInstruction* instruction,
4165 LocTy name_loc) {
4166 auto result = current_name_table().insert({name, {instruction, name_loc}});
4167 if (!result.second) {
4168 Error(name_loc, StrCat("instruction already exists: ", name));
4169 return Error(/*loc=*/result.first->second.second,
4170 "instruction previously defined here");
4171 }
4172 return true;
4173}
4174
4175bool HloParserImpl::AddComputation(const std::string& name,
4176 HloComputation* computation,

Callers 15

TEST_FFunction · 0.45
UpdateOperandFunction · 0.45
TEST_FFunction · 0.45

Calls 3

ErrorFunction · 0.50
StrCatFunction · 0.50
insertMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
MakeScalarComputationMethod · 0.36