Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Przywrócić:: Atrybuty
#include <io_ops.h>
Opcjonalne moduły ustawiające atrybuty dla Restore .
Streszczenie
Funkcje publiczne |
---|
PreferredShard (int64 x) | Indeks pliku, który ma zostać otwarty jako pierwszy, jeśli wiele plików pasuje do file_pattern . |
Atrybuty publiczne
preferowany_odłamek_
int64 tensorflow::ops::Restore::Attrs::preferred_shard_ = -1
Funkcje publiczne
Preferowany fragment
TF_MUST_USE_RESULT Attrs tensorflow::ops::Restore::Attrs::PreferredShard(
int64 x
)
Indeks pliku, który ma zostać otwarty jako pierwszy, jeśli wiele plików pasuje do file_pattern
.
Domyślnie -1
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::Restore::Attrs Struct Reference\n\ntensorflow::ops::Restore::Attrs\n===============================\n\n`#include \u003cio_ops.h\u003e`\n\nOptional attribute setters for [Restore](/versions/r2.2/api_docs/cc/class/tensorflow/ops/restore#classtensorflow_1_1ops_1_1_restore).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------|---------|\n| [preferred_shard_](#structtensorflow_1_1ops_1_1_restore_1_1_attrs_1aba196bfd5646d4f04c9d34181d2a5a90)` = -1` | `int64` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PreferredShard](#structtensorflow_1_1ops_1_1_restore_1_1_attrs_1a1a01e09ca33fc5f4aa22450511ea876d)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/restore/attrs#structtensorflow_1_1ops_1_1_restore_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::Restore::Attrs::preferred_shard_ = -1\n``` \n\nPublic functions\n----------------\n\n### PreferredShard\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Restore::Attrs::PreferredShard(\n int64 x\n)\n``` \nIndex of file to open first if multiple files match `file_pattern`.\n\nDefaults to -1"]]