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

Function CheckNameDuplicates

tensorflow/compiler/tf2xla/tf2xla_util.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Status CheckNameDuplicates(const string& kind, const string& name,
57 std::set<string>* names) {
58 if (!name.empty()) {
59 if (!names->insert(name).second) {
60 return errors::InvalidArgument("duplicate ", kind, " name: ", name);
61 }
62 }
63 return Status::OK();
64}
65
66Status CheckFeedFetchNameConflicts(const string& kind,
67 const std::set<string>& names) {

Callers 1

ValidateConfigFunction · 0.85

Calls 3

InvalidArgumentFunction · 0.85
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected