diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-27 10:31:36 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-27 10:36:29 -0700 |
commit | 334244be6864dd1dbec9bc8bb4996cc286a8e3e3 (patch) | |
tree | d379f72fe1d7a68e74d1ee27bed737775c09bfec /tensorflow/core/ops | |
parent | 3002b10e29363854c6fc20d788bc65233fd5116f (diff) |
Add tf.strings.unicode_script, which detects the script of a unicode codepoint
based on standard ranges.
PiperOrigin-RevId: 214796357
Diffstat (limited to 'tensorflow/core/ops')
-rw-r--r-- | tensorflow/core/ops/string_ops.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/core/ops/string_ops.cc b/tensorflow/core/ops/string_ops.cc index da1d2a6432..b4fbde54d9 100644 --- a/tensorflow/core/ops/string_ops.cc +++ b/tensorflow/core/ops/string_ops.cc @@ -244,4 +244,9 @@ REGISTER_OP("Substr") return shape_inference::BroadcastBinaryOpShapeFn(c); }); +REGISTER_OP("UnicodeScript") + .Input("input: int32") + .Output("output: int32") + .SetShapeFn(shape_inference::UnchangedShape); + } // namespace tensorflow |