จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: Regexแทนที่:: คุณสมบัติ
#include <string_ops.h>
ตัวตั้งค่าแอตทริบิวต์เพิ่มเติมสำหรับ RegexReplace
สรุป
งานสาธารณะ |
---|
ReplaceGlobal (bool x) | หากเป็น True การแทนที่จะเป็นแบบโกลบอล (นั่นคือ การจับคู่ทั้งหมดของนิพจน์ทั่วไปของ pattern ในแต่ละสตริงอินพุตจะถูกเขียนใหม่) มิฉะนั้น การแทนที่ rewrite จะทำสำหรับการจับคู่ pattern แบบแรกเท่านั้น |
คุณลักษณะสาธารณะ
แทนที่_ทั่วโลก_
bool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true
งานสาธารณะ
แทนที่โกลบอล
TF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(
bool x
)
หากเป็น True การแทนที่จะเป็นแบบโกลบอล (นั่นคือ การจับคู่ทั้งหมดของนิพจน์ทั่วไปของ pattern
ในสตริงอินพุตแต่ละรายการจะถูกเขียนใหม่) มิฉะนั้น การแทนที่ rewrite
จะทำสำหรับการจับคู่ pattern
แรกเท่านั้น
ค่าเริ่มต้นเป็นจริง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::RegexReplace::Attrs Struct Reference\n\ntensorflow::ops::RegexReplace::Attrs\n====================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [RegexReplace](/versions/r2.2/api_docs/cc/class/tensorflow/ops/regex-replace#classtensorflow_1_1ops_1_1_regex_replace).\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.2/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``` \nIf 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\nDefaults to true"]]