Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::
ops::
RegexReplace::
Attrs
#include <string_ops.h>
Optional attribute setters for
RegexReplace
.
Summary
Public functions
|
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.
|
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-05-14 UTC.
[null,null,["Last updated 2021-05-14 UTC."],[],[],null,["# tensorflow::ops::RegexReplace::Attrs Struct Reference\n\ntensorflow::\nops::\nRegexReplace::\nAttrs\n=======================================\n\n`\n#include \u003cstring_ops.h\u003e\n`\n\n\nOptional attribute setters for\n[RegexReplace](/versions/r2.5/api_docs/cc/class/tensorflow/ops/regex-replace#classtensorflow_1_1ops_1_1_regex_replace)\n.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------------|----------|\n| ` `[replace_global_](#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a5af07627be1e5135a19c9447eed1b91d)` = true ` | ` bool ` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[ReplaceGlobal](#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a9d0355cf5575240f3f5f4f053ad64bd1)` (bool x) ` | ` TF_MUST_USE_RESULT `[Attrs](/versions/r2.5/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs#structtensorflow_1_1ops_1_1_regex_replace_1_1_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. |\n\nPublic attributes\n-----------------\n\n### replace_global_\n\n```scdoc\nbool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true\n``` \n\nPublic functions\n----------------\n\n### ReplaceGlobal\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(\n bool x\n)\n``` \n\nIf True, the replacement is global (that is, all matches of the\n`\npattern\n`\nregular expression in each input string are rewritten), otherwise the\n`\nrewrite\n`\nsubstitution is only made for the first\n`\npattern\n`\nmatch.\n\n\nDefaults to true"]]