aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xrt/xrt_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xrt/xrt_state.cc')
-rw-r--r--tensorflow/compiler/xrt/xrt_state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xrt/xrt_state.cc b/tensorflow/compiler/xrt/xrt_state.cc
index 2c3b07da58..d05a1e7dcb 100644
--- a/tensorflow/compiler/xrt/xrt_state.cc
+++ b/tensorflow/compiler/xrt/xrt_state.cc
@@ -174,7 +174,7 @@ XRTTupleAllocation::~XRTTupleAllocation() {
}
Status XRTTupleAllocation::ToLiteral(xla::Backend* backend, int device_ordinal,
- std::unique_ptr<xla::Literal>* literal) {
+ xla::Literal* literal) {
auto transfer_manager = backend->transfer_manager();
TF_ASSIGN_OR_RETURN(auto stream, backend->BorrowStream(device_ordinal));
TF_ASSIGN_OR_RETURN(*literal, transfer_manager->TransferLiteralFromDevice(