From 802e00d37e309e44191cecc7b09d78b557343b0f Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 3 Apr 2020 21:45:32 -0700 Subject: [PATCH] Fix for mac build break. PiperOrigin-RevId: 304747923 Change-Id: If6fdb5bbea59869f9fc0f9a5ec06eff042b94cbe --- tensorflow/compiler/xla/python/local_client.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/compiler/xla/python/local_client.cc b/tensorflow/compiler/xla/python/local_client.cc index b8bef42e925..3cc85ad89d9 100644 --- a/tensorflow/compiler/xla/python/local_client.cc +++ b/tensorflow/compiler/xla/python/local_client.cc @@ -776,7 +776,9 @@ PyLocalBuffer::CopyToDeviceHelper( return copy_event_or.status(); } - return std::pair(std::move(py_buffer), copy_event_or.ConsumeValueOrDie()); + return std::pair, + std::shared_ptr>( + std::move(py_buffer), copy_event_or.ConsumeValueOrDie()); } StatusOr> PyLocalBuffer::CopyToDevice(