Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
aliran tensor:: operasi:: Pulihkan Irisan :: Attr
#include <io_ops.h>
Penyetel atribut opsional untuk RestoreSlice .
Ringkasan
Fungsi publik |
---|
PreferredShard (int64 x) | Indeks file akan dibuka terlebih dahulu jika beberapa file cocok dengan file_pattern . |
Atribut publik
pilihan_pecahan_
int64 tensorflow::ops::RestoreSlice::Attrs::preferred_shard_ = -1
Fungsi publik
Shard Pilihan
TF_MUST_USE_RESULT Attrs tensorflow::ops::RestoreSlice::Attrs::PreferredShard(
int64 x
)
Indeks file akan dibuka terlebih dahulu jika beberapa file cocok dengan file_pattern
.
Lihat dokumentasi untuk Restore
.
Defaultnya adalah -1
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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"]]