aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/string_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/string_ops.py')
-rw-r--r--tensorflow/python/ops/string_ops.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/ops/string_ops.py b/tensorflow/python/ops/string_ops.py
index e26f75ff51..416d6fccd9 100644
--- a/tensorflow/python/ops/string_ops.py
+++ b/tensorflow/python/ops/string_ops.py
@@ -33,6 +33,7 @@ string tensor.
## Splitting
@@string_split
+@@substr
## Conversion
@@ -138,3 +139,4 @@ def _ReduceJoinShape(op):
ops.RegisterShape("StringJoin")(common_shapes.call_cpp_shape_fn)
ops.RegisterShape("StringSplit")(common_shapes.call_cpp_shape_fn)
+ops.RegisterShape("Substr")(common_shapes.call_cpp_shape_fn)