จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: คืนค่า Slice:: คุณสมบัติ
#include <io_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ RestoreSlice
สรุป
งานสาธารณะ |
---|
PreferredShard (int64 x) | ดัชนีของไฟล์ที่จะเปิดก่อนหากหลายไฟล์ตรงกับ file_pattern |
คุณลักษณะสาธารณะ
ที่ต้องการ_shard_
int64 tensorflow::ops::RestoreSlice::Attrs::preferred_shard_ = -1
งานสาธารณะ
PreferredShard
TF_MUST_USE_RESULT Attrs tensorflow::ops::RestoreSlice::Attrs::PreferredShard(
int64 x
)
ดัชนีของไฟล์ที่จะเปิดก่อนหากหลายไฟล์ตรงกับ file_pattern
ดูเอกสารประกอบสำหรับ Restore
ค่าเริ่มต้นเป็น -1
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::RestoreSlice::Attrs Struct Reference\n\ntensorflow::ops::RestoreSlice::Attrs\n====================================\n\n`#include \u003cio_ops.h\u003e`\n\nOptional attribute setters for [RestoreSlice](/versions/r2.3/api_docs/cc/class/tensorflow/ops/restore-slice#classtensorflow_1_1ops_1_1_restore_slice).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------|---------|\n| [preferred_shard_](#structtensorflow_1_1ops_1_1_restore_slice_1_1_attrs_1a435b3e19b1223b9ea5ef37bcbb1c8915)` = -1` | `int64` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PreferredShard](#structtensorflow_1_1ops_1_1_restore_slice_1_1_attrs_1a137964847b24357bd27f2f06066508bd)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/restore-slice/attrs#structtensorflow_1_1ops_1_1_restore_slice_1_1_attrs) Index of file to open first if multiple files match `file_pattern`. |\n\nPublic attributes\n-----------------\n\n### preferred_shard_\n\n```scdoc\nint64 tensorflow::ops::RestoreSlice::Attrs::preferred_shard_ = -1\n``` \n\nPublic functions\n----------------\n\n### PreferredShard\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RestoreSlice::Attrs::PreferredShard(\n int64 x\n)\n``` \nIndex of file to open first if multiple files match `file_pattern`.\n\nSee the documentation for [Restore](/versions/r2.3/api_docs/cc/class/tensorflow/ops/restore#classtensorflow_1_1ops_1_1_restore).\n\nDefaults to -1"]]