Add new Ops for ScopedAllocator and the associated Concat and Split. The
authorAyush Dubey <ayushd@google.com>
Thu, 22 Mar 2018 18:25:58 +0000 (11:25 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 22 Mar 2018 18:32:16 +0000 (11:32 -0700)
commit282750fee5e2df502436ca9ef6a95283f8adab34
tree3c24d054b88ab0757c9b3e392faf0b1dcbddfaaa
parent7c4cdb8bae0e8760ebe4793d49ea5aee68768655
Add new Ops for ScopedAllocator and the associated Concat and Split.  The
ScopedAllocatorOp allocates a large backing tensor whose slices may be
concatenated or splitted with ScopedAllocatorConcatOp and
ScopedAllocatorSplitOp respectively.  These ops should only be added via
Grappler optimizations on the dataflow graph provided by the user.

PiperOrigin-RevId: 190097586
16 files changed:
tensorflow/core/BUILD
tensorflow/core/common_runtime/gpu/gpu_device.cc
tensorflow/core/common_runtime/gpu/gpu_device.h
tensorflow/core/common_runtime/scoped_allocator.cc
tensorflow/core/common_runtime/scoped_allocator_mgr.cc
tensorflow/core/common_runtime/scoped_allocator_mgr.h
tensorflow/core/common_runtime/scoped_allocator_mgr_test.cc
tensorflow/core/common_runtime/threadpool_device.cc
tensorflow/core/common_runtime/threadpool_device.h
tensorflow/core/framework/allocator.h
tensorflow/core/framework/device_base.h
tensorflow/core/framework/op_kernel.cc
tensorflow/core/kernels/BUILD
tensorflow/core/kernels/scoped_allocator_ops.cc [new file with mode: 0644]
tensorflow/core/kernels/scoped_allocator_ops_test.cc [new file with mode: 0644]
tensorflow/core/ops/scoped_allocator_ops.cc [new file with mode: 0644]