History log of /external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5dd585abb84c5d13af0017f78741e29505f7b5f7 15-Feb-2018 A. Unique TensorFlower <gardener@tensorflow.org> Make conversions from ShapedBuffer <-> ScopedShapedBuffer efficient by
moving memory ownership instead of copying.

PiperOrigin-RevId: 185871648
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
16257646af59a39ea04f16735d4f8a61b97230ed 20-Dec-2017 A. Unique TensorFlower <gardener@tensorflow.org> Minor cleanup, now that there's a single Executable::ExecuteOnStream method.

PiperOrigin-RevId: 179630890
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
fc2526a8c1cf0bc2a93c8cc819ff7209eb4628c9 16-Dec-2017 A. Unique TensorFlower <gardener@tensorflow.org> Merged commit includes the following changes:
179277894 by gunan:

Run buildifier on build file.

--
179275101 by meheff:

Replace DeviceMemoryBase with ShapedBuffer in XLA interfaces.
Executable, TransferManager, and AllocationTracker now use ShapedBuffer to hold device memory addresses holding XLA data. Most of the change is straight-forward with the exception of AllocationTracker which was mostly rewritten (and simplified) and some refactoring in the CPU executable.

Also, have ShapedBuffer hold on-host and on-device Shapes which are the shapes of the representation of the data on the host and device, respectively. This is necessary because with cl/178624364 the on-host and on-device shape may no longer be equal.

--
179265385 by A. Unique TensorFlower:

Return error rather than CHECK fail in Executable::ExecuteOnStreamWrapper

--
179264551 by dandelion:

Internal fixes.

--

PiperOrigin-RevId: 179277894
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
201d8d839f3384cfecea78a098764afceba82c78 05-Dec-2017 Mark Heffernan <meheff@google.com> Enable transferring a tuple literal to a replicated device.
Use ShapedBuffer to allocate required memory for the shape, then transfer the
literal to the allocated addresses on each replica. Also, add Allocate() method
to ShapedBuffer.

PiperOrigin-RevId: 177900588
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
22d948d2739ecaadfb4091302f2050ba9cf0d0c1 16-Nov-2017 Mark Heffernan <meheff@google.com> Add methods on TransferManager which transfer to/from device memory specified by ShapedBuffer rather than DeviceMemoryBase. This is part of a broader replacement of DeviceMemoryBase->ShapedBuffer in several XLA interfaces. With this change TransferManager no longer has to allocate memory to transfer tuples to the device. The existing methods using DeviceMemoryBase will be removed in a followup cl.

Various related changes:

* Make the transfer_manager_test an xla_test so that it runs on all the platforms.

* Make several of the TransferManager methods protected.

* Change ScopedShapedBuffer::Allocate to only allocate device memory buffers, and not fill in the tuple index table. The index table is filled in by the transfer manager. This is a cleaner separation of concerns.

PiperOrigin-RevId: 176015628
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
b77b20f8e8ef5a670201032a8fc8daf157524b74 14-Nov-2017 A. Unique TensorFlower <gardener@tensorflow.org> Automated g4 rollback of changelist 175571632

PiperOrigin-RevId: 175729221
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
333bdea9524dd2bacf626051dbdbbcfcc4b46122 13-Nov-2017 A. Unique TensorFlower <gardener@tensorflow.org> Automated g4 rollback of changelist 175304150

PiperOrigin-RevId: 175571632
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
d82ab02a926c3564c44a19deaf298afc10326bf6 10-Nov-2017 A. Unique TensorFlower <gardener@tensorflow.org> [TF:XLA] Add helper to append buffers to ShapedBuffer.

PiperOrigin-RevId: 175304150
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
06deeea373c93ea36547648481c5daf4dc56126f 27-Sep-2017 Mark Heffernan <meheff@google.com> For tuple-shaped data, change ShapedBuffer (an abstraction holding on-device data of a given shape) to also hold an array of pointers representing the tuple structure in the device memory. Previously ShapedBuffer only held array-shaped data at the leaves of the tuple shape. Construction of these array-of-pointers is handled by TransferManager which has to construct array-of-pointers anyway to transfer literals to the device. This change makes ShapedBuffer match the native representative of tuple-shaped data passed into XLA computations. This is the first step to migrating XLA interfaces away from using naked device memory pointers (DeviceMemoryBase) to using more expressive ShapedBuffers instead.

This change enables tuple-shaped parameters in computations run through the LocalClient interface.

Also, change LocalClient interfaces to return ScopedShapedBuffers as these are generally easier to deal with ownership-wise that ShapedBuffers. They are analogous to std::unique_ptr, while ShapedBuffers are analogous to bare pointers.

This change includes a couple other cleanups found along the way:

* move cpu/gpu/interpreter transfer managers into their respective directories under xla/service.

* Make the generic transfer manager take a pointer size. Previously it would just use sizeof(void*) which might not be exactly what is needed.

PiperOrigin-RevId: 170133015
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h
1e67c90e2caceeff82d09793d1ef5fa0300d219b 09-Jan-2017 Peter Hawkins <phawkins@google.com> Initial open-source release of XLA: Accelerated Linear Algebra.

XLA is a compiler-based linear algebra execution engine that targets CPUs, GPUs and custom accelerators.

XLA is still experimental; we are releasing it early to get the community involved.
Change: 143990941
/external/tensorflow/tensorflow/compiler/xla/service/shaped_buffer.h