[TF:XLA] Remove the need for memcpy from Tensor->Literal.
authorKay Zhu <kayzhu@google.com>
Wed, 16 May 2018 00:49:43 +0000 (17:49 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 16 May 2018 00:53:30 +0000 (17:53 -0700)
commit734e996343f01e3be8193e9231c2a36bd3d796e2
treeca91f59e0d50c20cd83f6cfb9697fa88ffe2b1ee
parent3fb80a0c895348508c7ba1733c8edad1f8c29e40
[TF:XLA] Remove the need for memcpy from Tensor->Literal.

Introducing a new LiteralOwningSlice class that is similar to LiteraSlice, but owns the root piece.

PiperOrigin-RevId: 196759785
tensorflow/compiler/xla/BUILD
tensorflow/compiler/xla/literal_util.cc
tensorflow/compiler/xla/literal_util.h
tensorflow/compiler/xla/literal_util_test.cc
tensorflow/compiler/xla/service/generic_transfer_manager.cc
tensorflow/compiler/xla/service/generic_transfer_manager.h
tensorflow/compiler/xla/service/transfer_manager.cc
tensorflow/compiler/xla/service/transfer_manager.h