Add a repro for https://github.com/tensorflow/tensorflow/issues/28007
PiperOrigin-RevId: 298958458
Change-Id: I4eec5f9f582ace43710a5635028fc21efa3bdc24
diff --git a/tensorflow/python/kernel_tests/list_ops_test.py b/tensorflow/python/kernel_tests/list_ops_test.py
index 7e69235..11f882b 100644
--- a/tensorflow/python/kernel_tests/list_ops_test.py
+++ b/tensorflow/python/kernel_tests/list_ops_test.py
@@ -37,8 +37,10 @@
from tensorflow.python.ops import gen_list_ops
from tensorflow.python.ops import gradients_impl
from tensorflow.python.ops import list_ops
+from tensorflow.python.ops import map_fn
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import state_ops
+from tensorflow.python.ops import string_ops
from tensorflow.python.ops import variable_scope as vs
from tensorflow.python.platform import test
@@ -1629,6 +1631,16 @@
t = list_ops.tensor_list_stack(inner_l, element_dtype=dtypes.float32)
self.assertAllEqual(t, [1.0, 2.0, 3.0])
+ def testTensorListStrings(self):
+ self.skipTest("b/150742232")
+
+ @def_function.function
+ def f():
+ return map_fn.map_fn(string_ops.string_upper,
+ constant_op.constant(["a", "b", "c"]))
+
+ self.assertAllEqual(f(), ["A", "B", "C"])
+
if __name__ == "__main__":
test.main()