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

Method WithOpNameImpl

tensorflow/cc/framework/scope.cc:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420Scope Scope::WithOpNameImpl(const string& op_name) const {
421 if (impl()->single_use_scope()) {
422 UpdateStatus(errors::InvalidArgument("Cannot set op name ", op_name,
423 " on this scope"));
424 return *this;
425 }
426 return Scope(new Impl(*this, Impl::Tags::OpName(), impl()->name_, op_name));
427}
428
429Scope Scope::WithControlDependencies(
430 const gtl::ArraySlice<Operation>& control_deps) const {

Callers

nothing calls this directly

Calls 4

InvalidArgumentFunction · 0.85
single_use_scopeMethod · 0.80
ScopeClass · 0.70
OpNameEnum · 0.70

Tested by

no test coverage detected