|
5 | 5 | #include <unordered_set> |
6 | 6 | #include <vector> |
7 | 7 |
|
| 8 | +#include "absl/status/status.h" |
8 | 9 | #include "absl/strings/ascii.h" |
9 | 10 | #include "absl/synchronization/blocking_counter.h" |
10 | 11 | #include "absl/types/span.h" |
@@ -316,7 +317,7 @@ ComputationClient::DataPtr PjRtComputationClient::CopyToDevice( |
316 | 317 | XLA_CHECK(dst_device->IsAddressable()) << dst << "is not addressable."; |
317 | 318 |
|
318 | 319 | // Returns error if the buffer is already on `dst_device`. |
319 | | - xla::StatusOr<std::unique_ptr<xla::PjRtBuffer>> status_or = |
| 320 | + absl::StatusOr<std::unique_ptr<xla::PjRtBuffer>> status_or = |
320 | 321 | pjrt_data->buffer->CopyToDevice(dst_device); |
321 | 322 | if (!status_or.ok()) { |
322 | 323 | return data; |
@@ -472,7 +473,7 @@ std::uintptr_t PjRtComputationClient::UnsafeBufferPointer( |
472 | 473 | XLA_CHECK(pjrt_data) << "handle must be PjRtData, got " << handle->ToString(); |
473 | 474 | XLA_CHECK(pjrt_data->buffer != nullptr) |
474 | 475 | << "PjRt buffer is null in " << __FUNCTION__; |
475 | | - xla::StatusOr<std::uintptr_t> ptr = |
| 476 | + absl::StatusOr<std::uintptr_t> ptr = |
476 | 477 | client_->UnsafeBufferPointer(pjrt_data->buffer.get()); |
477 | 478 | XLA_CHECK(ptr.ok()); |
478 | 479 | return ptr.value(); |
@@ -744,7 +745,7 @@ PjRtComputationClient::ExecuteComputation( |
744 | 745 | .value(); |
745 | 746 |
|
746 | 747 | returned_future->OnReady(std::move( |
747 | | - [timed, op_tracker = std::move(op_tracker)](xla::Status unused) mutable { |
| 748 | + [timed, op_tracker = std::move(op_tracker)](absl::Status unused) mutable { |
748 | 749 | timed.reset(); |
749 | 750 | TF_VLOG(3) << "ExecuteComputation returned_future->OnReady finished"; |
750 | 751 | })); |
@@ -850,7 +851,7 @@ PjRtComputationClient::ExecuteReplicated( |
850 | 851 |
|
851 | 852 | (*returned_futures)[0].OnReady( |
852 | 853 | std::move([timed, op_tracker = std::move(op_tracker)]( |
853 | | - xla::Status unused) mutable { |
| 854 | + absl::Status unused) mutable { |
854 | 855 | timed.reset(); |
855 | 856 | TF_VLOG(3) << "ExecuteReplicated returned_future->OnReady finished"; |
856 | 857 | })); |
|
0 commit comments