Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbasten23 committed May 1, 2024
1 parent 3d7e463 commit 66cbbc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/csrc/runtime/pjrt_computation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ std::vector<ComputationClient::DataPtr> PjRtComputationClient::ReshardData(
std::uintptr_t PjRtComputationClient::UnsafeBufferPointer(
const DataPtr handle) {
std::shared_ptr<PjRtData> pjrt_data =
std::dynamic_pointer_cast<PjRtData>(handle) XLA_CHECK(pjrt_data)
<< "handle must be PjRtData, got " << handle->ToString();
std::dynamic_pointer_cast<PjRtData>(handle);
XLA_CHECK(pjrt_data) << "handle must be PjRtData, got " << handle->ToString();
xla::StatusOr<std::uintptr_t> ptr =
client_->UnsafeBufferPointer(pjrt_data->buffer.get());
XLA_CHECK(ptr.ok());
Expand Down

0 comments on commit 66cbbc9

Please sign in to comment.