W3cubDocs

/TensorFlow C++ 1.15

tensorflow::ops::RegexReplace::Attrs

#include <string_ops.h>

Optional attribute setters for RegexReplace.

Summary

Public attributes
replace_global_ = true
bool
Public functions
ReplaceGlobal(bool x)
TF_MUST_USE_RESULT Attrs
If True, the replacement is global (that is, all matches of the pattern regular expression in each input string are rewritten), otherwise the rewrite substitution is only made for the first pattern match.

Public attributes

replace_global_

bool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true

Public functions

ReplaceGlobal

TF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(
  bool x
)

If True, the replacement is global (that is, all matches of the pattern regular expression in each input string are rewritten), otherwise the rewrite substitution is only made for the first pattern match.

Defaults to true

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs