จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: MatchingFiles
#include <io_ops.h>
ส่งกลับชุดของไฟล์ที่ตรงกับรูปแบบ glob หนึ่งรูปแบบขึ้นไป
สรุป
โปรดทราบว่ารูทีนนี้รองรับเฉพาะอักขระไวด์การ์ดในส่วนชื่อฐานของรูปแบบ ไม่ใช่ในส่วนไดเร็กทอรี โปรดทราบว่าลำดับของชื่อไฟล์ที่ส่งคืนนั้นถูกกำหนดไว้แล้ว
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- รูปแบบ: รูปแบบตัวแทนของเชลล์ สเกลาร์หรือเวกเตอร์ของสตริงประเภท
ผลตอบแทน:
-
Output
: เวกเตอร์ของชื่อไฟล์ที่ตรงกัน
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::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::MatchingFiles Class Reference\n\ntensorflow::ops::MatchingFiles\n==============================\n\n`#include \u003cio_ops.h\u003e`\n\nReturns the set of files matching one or more glob patterns.\n\nSummary\n-------\n\nNote that this routine only supports wildcard characters in the basename portion of the pattern, not in the directory portion. Note also that the order of filenames returned is deterministic.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- pattern: Shell wildcard pattern(s). Scalar or vector of type string.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A vector of matching filenames.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [MatchingFiles](#classtensorflow_1_1ops_1_1_matching_files_1a3e3c942e8a0843968d1a189f2ab5a115)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` pattern)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [filenames](#classtensorflow_1_1ops_1_1_matching_files_1a574b88c372b245758f76c5076e44bd4b) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_matching_files_1a831e0f27aca8cc9752971631c78698b5) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_matching_files_1a48fe519714ade32291a2909d0085c3e8)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_matching_files_1aeee56e7318814b9310a87f3ef57344d8)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_matching_files_1a10e6abf5a58d531efcc8e4f74b78cc4b)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### filenames\n\n```text\n::tensorflow::Output filenames\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### MatchingFiles\n\n```gdscript\n MatchingFiles(\n const ::tensorflow::Scope & scope,\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```"]]