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

Method GetUniqueNameView

tensorflow/compiler/mlir/op_or_arg_name_mapper.cc:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84absl::string_view OpOrArgNameMapper::GetUniqueNameView(OpOrVal op_or_val) {
85 auto& name = op_or_val_to_name_[op_or_val];
86 if (!name.empty()) return name;
87 // Update the value in the map with unique name.
88 name = StringRefToView(GetUniqueName(GetName(op_or_val)));
89 return name;
90}
91
92int OpOrArgNameMapper::InitOpName(OpOrVal op_or_val, llvm::StringRef name) {
93 auto it = name_to_count_.try_emplace(name, 0);

Callers

nothing calls this directly

Calls 3

GetNameFunction · 0.85
StringRefToViewFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected