| 441 | } |
| 442 | |
| 443 | Scope Scope::WithNoControlDependencies() const { |
| 444 | return Scope(new Impl(*this, Impl::Tags::ControlDeps(), |
| 445 | std::vector<Operation>(), |
| 446 | /* clear_control_deps */ true)); |
| 447 | } |
| 448 | |
| 449 | Scope Scope::WithDevice(const string& device) const { |
| 450 | return Scope(new Impl(*this, Impl::Tags::Device(), device)); |