| 418 | } |
| 419 | |
| 420 | Scope 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 | |
| 429 | Scope Scope::WithControlDependencies( |
| 430 | const gtl::ArraySlice<Operation>& control_deps) const { |
nothing calls this directly
no test coverage detected