From 96ecf9cf334305ad940627c3627944872d529cfe Mon Sep 17 00:00:00 2001 From: Allen Lavoie Date: Fri, 16 Oct 2020 08:52:07 -0700 Subject: [PATCH] Add a bit of missing handle data type information to TensorList ops PiperOrigin-RevId: 337513633 Change-Id: I999c031de1092a3aa38909830db58dcb875971a4 --- tensorflow/core/ops/list_ops.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tensorflow/core/ops/list_ops.cc b/tensorflow/core/ops/list_ops.cc index 91bcc3be49a..a19c3a6d934 100644 --- a/tensorflow/core/ops/list_ops.cc +++ b/tensorflow/core/ops/list_ops.cc @@ -69,7 +69,7 @@ REGISTER_OP("EmptyTensorList") 0, &element_shape)); c->set_output_handle_shapes_and_types( 0, std::vector{ - {element_shape, element_dtype}}); + {element_shape, element_dtype, ST_TENSOR_LIST}}); return Status::OK(); }); @@ -106,7 +106,7 @@ REGISTER_OP("TensorListPushBack") } c->set_output_handle_shapes_and_types( 0, std::vector{ - {element_shape, element_dtype}}); + {element_shape, element_dtype, ST_TENSOR_LIST}}); return Status::OK(); }); @@ -153,7 +153,7 @@ REGISTER_OP("TensorListPushBackBatch") } c->set_output_handle_shapes_and_types( 0, std::vector{ - {element_shape, element_dtype}}); + {element_shape, element_dtype, ST_TENSOR_LIST}}); return Status::OK(); }); @@ -345,7 +345,7 @@ REGISTER_OP("TensorListSplit") &element_shape_from_tensor_shape)); c->set_output_handle_shapes_and_types( 0, std::vector{ - {element_shape, element_dtype}}); + {element_shape, element_dtype, ST_TENSOR_LIST}}); return Status::OK(); });