Commit 115f6638 authored by Jeremiah Harmsen's avatar Jeremiah Harmsen Committed by TensorFlower Gardener
Browse files

Add StaticRegexReplace which can be used in place of RegexReplace when the...

Add StaticRegexReplace which can be used in place of RegexReplace when the regex pattern and rewrite are fixed.
This allows the Op to perform the expensive regex compilation once upon creation instead of with each call to compute.

Refactors RegexReplace to allow forwarding/inplace replacement when it is the sole consumer of an input.  This should be a noop functionally but improve performance.

RELNOTES: Performance improvements for regex replace operations.
PiperOrigin-RevId: 209255096
parent 39b17f9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment