W3cubDocs

/TensorFlow C++

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, otherwise the replacement is done only on the first 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, otherwise the replacement is done only on the first match.

Defaults to true

© 2018 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/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs.html