| 315 | } |
| 316 | |
| 317 | Status XlaBuilder::GetCurrentStatus() const { |
| 318 | if (!first_error_.ok()) { |
| 319 | string backtrace; |
| 320 | first_error_backtrace_.Dump(tensorflow::DebugWriteToString, &backtrace); |
| 321 | return AppendStatus(first_error_, backtrace); |
| 322 | } |
| 323 | return Status::OK(); |
| 324 | } |
| 325 | |
| 326 | StatusOr<XlaComputation> XlaBuilder::Build(bool remove_dynamic_dimensions) { |
| 327 | TF_RETURN_IF_ERROR(GetCurrentStatus()); |
nothing calls this directly
no test coverage detected