컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 복원하다:: 속성
#include <io_ops.h>
복원을 위한 선택적 속성 설정자입니다.
요약
공공 기능 |
---|
PreferredShard (int64 x) | 여러 파일이 file_pattern 과 일치하는 경우 먼저 열 파일의 인덱스입니다. |
공개 속성
선호_샤드_
int64 tensorflow::ops::Restore::Attrs::preferred_shard_ = -1
공공 기능
선호샤드
TF_MUST_USE_RESULT Attrs tensorflow::ops::Restore::Attrs::PreferredShard(
int64 x
)
여러 파일이 file_pattern
과 일치하는 경우 먼저 열 파일의 인덱스입니다.
기본값은 -1입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(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/r1.15/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/r1.15/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"]]