aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/client/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/client/client.cc')
-rw-r--r--tensorflow/compiler/xla/client/client.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/client/client.cc b/tensorflow/compiler/xla/client/client.cc
index 66937d64af..92cd8e729d 100644
--- a/tensorflow/compiler/xla/client/client.cc
+++ b/tensorflow/compiler/xla/client/client.cc
@@ -142,7 +142,8 @@ StatusOr<std::unique_ptr<Literal>> Client::TransferFromOutfeed(
"TransferToClient request");
}
- return MakeUnique<Literal>(response.literal());
+ Literal literal(response.literal());
+ return MakeUnique<Literal>(literal);
}
Status Client::ResetDevice() {