aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-06-15 19:04:59 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-15 19:07:58 -0700
commit56b36d88fce295c151458f42a120fcdcac7a3ca2 (patch)
treeaf93a6a2d52115ae23a40b86716ed0333686c2a5 /tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
parentd134d210f3dec36fe45c6cf718f538da9c8f005b (diff)
[TF:XLA] Add no-op implementation of TensorArrayCloseV3 to the XLA bridge.
PiperOrigin-RevId: 159185414
Diffstat (limited to 'tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc')
-rw-r--r--tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc b/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
index de542d55e8..c7510bf3d2 100644
--- a/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
+++ b/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
@@ -534,5 +534,19 @@ class TensorArrayGradOp : public XlaOpKernel {
REGISTER_XLA_OP(Name("TensorArrayGradV3"), TensorArrayGradOp);
+class TensorArrayCloseOp : public XlaOpKernel {
+ public:
+ explicit TensorArrayCloseOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {}
+
+ void Compile(XlaOpKernelContext* ctx) override {
+ // Do nothing; XLA handles resource management.
+ }
+
+ private:
+ TF_DISALLOW_COPY_AND_ASSIGN(TensorArrayCloseOp);
+};
+
+REGISTER_XLA_OP(Name("TensorArrayCloseV3"), TensorArrayCloseOp);
+
} // anonymous namespace
} // namespace tensorflow