diff options
author | 2018-06-08 15:39:25 -0700 | |
---|---|---|
committer | 2018-06-08 15:42:07 -0700 | |
commit | c552838d342cb6e5243a88b9e08d38b95c2b2291 (patch) | |
tree | 8aafdd772e2137303706668b5c3014707b5f9477 /tensorflow/core/kernels/tensor_array.h | |
parent | aba275157880076c8fe39c5ecac48741938223c5 (diff) |
Add TensorArrayGradWithShape op.
PiperOrigin-RevId: 199862180
Diffstat (limited to 'tensorflow/core/kernels/tensor_array.h')
-rw-r--r-- | tensorflow/core/kernels/tensor_array.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/tensor_array.h b/tensorflow/core/kernels/tensor_array.h index 90b71e370c..68fab85770 100644 --- a/tensorflow/core/kernels/tensor_array.h +++ b/tensorflow/core/kernels/tensor_array.h @@ -325,13 +325,15 @@ class TensorArray : public ResourceBase { bool HasIdenticalElementShapes() const { return identical_element_shapes_; } // Copy the TensorShapes from another TensorArray into this one. + // If `shapes_to_prepend` is set, expands the rank of the copied shape by + // prepending the passed in shape prefix to the shape values in `rhs`. // The sizes of the two TensorArrays must match and this one // may not have any entries filled in. This performs a "soft copy", // essentially filling the current TensorArray with virtual // zero-tensors, which will be replaced by future aggregate writes, // or instantiated by future reads. Requires a non-const pointer // to the rhs to access its mutex. - Status CopyShapesFrom(TensorArray* rhs); + Status CopyShapesFrom(TensorArray* rhs, const TensorShape* shape_to_prepend); // Clear the TensorArray, including any Tensor references, and mark as closed. void ClearAndMarkClosed() { |