| 300 | } |
| 301 | |
| 302 | void Scope::UpdateStatus(const Status& s) const { |
| 303 | impl()->status_->Update(s); |
| 304 | if (impl()->exit_on_error_ && !ok()) { |
| 305 | LOG(FATAL) << *impl()->status_; |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | Status Scope::ToGraphDef(GraphDef* gdef) const { |
| 310 | if (!ok()) { |
no test coverage detected