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

Method UseOutputName

tensorflow/c/c_api_function.cc:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136Status NodeNameMapping::UseOutputName(const string& name) {
137 const auto& iter = used_names_.find(name);
138 if (iter != used_names_.end()) {
139 return InvalidArgument("Cannot have duplicate output names. Name '", name,
140 "' appears more than once in 'output_names' array.");
141 }
142 used_names_.insert(iter, name);
143 return Status::OK();
144}
145
146string NodeNameMapping::Lookup(const string& name) const {
147 const auto iter = name_mapping_.find(name);

Callers 1

GraphToFunctionDefFunction · 0.80

Calls 4

InvalidArgumentFunction · 0.85
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected