จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: RegexFullMatch
#include <string_ops.h>
ตรวจสอบว่าอินพุตตรงกับรูปแบบ regex หรือไม่
สรุป
อินพุตเป็นสตริงเทนเซอร์ที่มีรูปร่างใดๆ รูปแบบนี้เป็นเทนเซอร์สตริงสเกลาร์ซึ่งใช้กับทุกองค์ประกอบของเทนเซอร์อินพุต ค่าบูลีน (จริงหรือเท็จ) ของเทนเซอร์เอาต์พุตจะระบุว่าอินพุตตรงกับรูปแบบ regex ที่ให้ไว้หรือไม่
รูปแบบเป็นไปตามไวยากรณ์ re2 ( https://github.com/google/re2/wiki/Syntax )
ตัวอย่าง:
tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$") tf.strings.regex_full_match(["TF lib", "lib TF"], ".*TF$")
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- อินพุต: เทนเซอร์สตริงของข้อความที่จะประมวลผล
- รูปแบบ: เทนเซอร์สตริงสเกลาร์ที่มีนิพจน์ทั่วไปเพื่อให้ตรงกับอินพุต
ผลตอบแทน:
-
Output
: บูลเทนเซอร์ที่มีรูปร่างเหมือนกับ input
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::RegexFullMatch Class Reference\n\ntensorflow::ops::RegexFullMatch\n===============================\n\n`#include \u003cstring_ops.h\u003e`\n\nCheck if the input matches the regex pattern.\n\nSummary\n-------\n\nThe input is a string tensor of any shape. The pattern is a scalar string tensor which is applied to every element of the input tensor. The boolean values (True or False) of the output tensor indicate if the input matches the regex pattern provided.\n\nThe pattern follows the re2 syntax (\u003chttps://github.com/google/re2/wiki/Syntax\u003e)\n\nExamples:\n\ntf.strings.regex_full_match(\\[\"TF lib\", \"lib TF\"\\], \".\\*lib$\") tf.strings.regex_full_match(\\[\"TF lib\", \"lib TF\"\\], \".\\*TF$\")\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: A string tensor of the text to be processed.\n- pattern: A scalar string tensor containing the regular expression to match the input.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A bool tensor with the same shape as `input`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RegexFullMatch](#classtensorflow_1_1ops_1_1_regex_full_match_1a9aabe9286270dc27b6fd82316259b98e)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` pattern)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_regex_full_match_1a42931e9f1b9b6a6bcf35282d06977871) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_regex_full_match_1a2347cdeb355a1b911773cfbabbffd8b8) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_regex_full_match_1a736ef64245d191a4ff7e4c67d8e655bd)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_regex_full_match_1a1b4546c550f423ff22828fc63e04ae23)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_regex_full_match_1a3552df1d0b65b824e61669da96bf8f10)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### RegexFullMatch\n\n```gdscript\n RegexFullMatch(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input pattern\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]