Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: Dilim'i Geri Yükle:: Öznitelikler
#include <io_ops.h>
RestoreSlice için isteğe bağlı özellik ayarlayıcılar.
Özet
Kamu işlevleri |
---|
PreferredShard (int64 x) | Birden fazla dosya file_pattern ile eşleşirse ilk açılacak dosya dizini. |
Genel özellikler
tercih edilen_shard_
int64 tensorflow::ops::RestoreSlice::Attrs::preferred_shard_ = -1
Kamu işlevleri
Tercih Edilen Parça
TF_MUST_USE_RESULT Attrs tensorflow::ops::RestoreSlice::Attrs::PreferredShard(
int64 x
)
Birden fazla dosya file_pattern
ile eşleşirse ilk açılacak dosya dizini.
Restore
belgelerine bakın.
Varsayılan -1'dir
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 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"]]