Commit d8fac4cb authored by Yong Tang's avatar Yong Tang Committed by Rasmus Munk Larsen
Browse files

Add tf.regex_match for regex match support (#19160)



* Add tf.regex_match for regex match support

This fix tries to address the issue raised in 18264.
Currently tf.regex_replace has already been supported
though there was no regex match support.
This fix adds the tf.regex_match support in a similiar
pattern as tf.regex_replace.

This fix fixes 18264.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update BUILD file for the tf.regex_match kernel

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Register RegexMatch ops

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add test cases for tf.regex_match

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update api_defs

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update API golden

update with:
```
bazel-bin/tensorflow/tools/api/tests/api_compatibility_test
           --update_goldens True
```

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Expose regex_full_match in tf.strings namespace

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update golden API

```
bazel-bin/tensorflow/tools/api/tests/api_compatibility_test
           --update_goldens True
```

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent b84bff47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment