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

Method GetNameForOp

tensorflow/cc/framework/scope.cc:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384string Scope::Impl::GetNameForOp(const string& default_name) const {
385 const string unique_name =
386 GetUniqueName(default_name, true /* check_single_use */);
387 const string sep =
388 name_.empty() || unique_name.empty() ? "" : kScopeSeparator;
389 return strings::StrCat(name_, sep, unique_name);
390}
391
392string Scope::GetUniqueNameForOp(const string& default_name) const {
393 if (impl()->single_use_scope()) {

Callers 1

GetUniqueNameForOpMethod · 0.45

Calls 2

StrCatFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected