You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace GetValueOrThrow with status propagation in ReleaseGilAndTransferData
Modify `ReleaseGilAndTransferData` function to use proper status propagation
instead of `GetValueOrThrow` with `GetComputationClientOrDie`. This improves
error handling by allowing status types to be propagated up the call stack
rather than immediately throwing exceptions.
Changes:
- Update function signature to return `absl::StatusOr<std::vector<xla::Literal>>`
- Replace `GetComputationClientOrDie()` with `GetComputationClient()`
- Use `XLA_ASSIGN_OR_RETURN` macros for both client acquisition and `TransferFromDevice`
- Update callers in tensor_util.cpp and xla_graph_executor.cpp to handle `StatusOr<T>`
This follows the status propagation patterns used elsewhere in the codebase
and aligns with the examples in pjrt_registry.cpp.
0 commit comments