コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦:: MergeV2チェックポイント
#include <io_ops.h>
V2 形式固有: シャードされたチェックポイントのメタデータ ファイルをマージします。
まとめ
の
結果は、1 つの物理メタデータ ファイルと名前変更されたデータ ファイルを含む 1 つの論理チェックポイントになります。
シャード化されたチェックポイント設定で複数のチェックポイントを「グループ化」することを目的としています。
delete_old_dirs が true の場合、入力 Checkpoint_prefixes 内の各パスのディレクトリ名を再帰的に削除しようとします。これは、これらのパスがユーザーに直接アクセスできない一時的な場所である場合に便利です。
引数:
- スコープ:スコープオブジェクト
- Checkpoint_prefixes: マージする V2 チェックポイントのプレフィックス。
- destination_prefix: スカラー。必要な最終プレフィックス。 Checkpoint_prefix の 1 つと同じにすることができます。
オプションの属性 ( Attrs
を参照):
- delete_old_dirs: 上記を参照してください。
戻り値:
パブリック属性
公共機能
演算子::tensorflow::オペレーション
operator::tensorflow::Operation() const
パブリック静的関数
OldDirs の削除
Attrs DeleteOldDirs(
bool x
)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# tensorflow::ops::MergeV2Checkpoints Class Reference\n\ntensorflow::ops::MergeV2Checkpoints\n===================================\n\n`#include \u003cio_ops.h\u003e`\n\nV2 format specific: merges the metadata files of sharded checkpoints.\n\nSummary\n-------\n\nThe\n\nresult is one logical checkpoint, with one physical metadata file and renamed data files.\n\nIntended for \"grouping\" multiple checkpoints in a sharded checkpoint setup.\n\nIf delete_old_dirs is true, attempts to delete recursively the dirname of each path in the input checkpoint_prefixes. This is useful when those paths are non user-facing temporary locations.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- checkpoint_prefixes: prefixes of V2 checkpoints to merge.\n- destination_prefix: scalar. The desired final prefix. Allowed to be the same as one of the checkpoint_prefixes.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/merge-v2-checkpoints/attrs#structtensorflow_1_1ops_1_1_merge_v2_checkpoints_1_1_attrs)):\n\n- delete_old_dirs: see above.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [MergeV2Checkpoints](#classtensorflow_1_1ops_1_1_merge_v2_checkpoints_1aa902c6451357a9d599c2c64f683945ed)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` checkpoint_prefixes, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` destination_prefix)` ||\n| [MergeV2Checkpoints](#classtensorflow_1_1ops_1_1_merge_v2_checkpoints_1ad1192c95172d80f30658cfadf2a90ba1)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` checkpoint_prefixes, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` destination_prefix, const `[MergeV2Checkpoints::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/merge-v2-checkpoints/attrs#structtensorflow_1_1ops_1_1_merge_v2_checkpoints_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_merge_v2_checkpoints_1a01552fb0e89ef5dee73b9528d4c99733) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_merge_v2_checkpoints_1aa19e8785d4f1ff8d9a6dc401d078b5d6)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DeleteOldDirs](#classtensorflow_1_1ops_1_1_merge_v2_checkpoints_1aacd19b816ee69eb23b3a8390b61a5fdc)`(bool x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/merge-v2-checkpoints/attrs#structtensorflow_1_1ops_1_1_merge_v2_checkpoints_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::MergeV2Checkpoints::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/merge-v2-checkpoints/attrs) | Optional attribute setters for [MergeV2Checkpoints](/versions/r2.2/api_docs/cc/class/tensorflow/ops/merge-v2-checkpoints#classtensorflow_1_1ops_1_1_merge_v2_checkpoints). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### MergeV2Checkpoints\n\n```gdscript\n MergeV2Checkpoints(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input checkpoint_prefixes,\n ::tensorflow::Input destination_prefix\n)\n``` \n\n### MergeV2Checkpoints\n\n```gdscript\n MergeV2Checkpoints(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input checkpoint_prefixes,\n ::tensorflow::Input destination_prefix,\n const MergeV2Checkpoints::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### DeleteOldDirs\n\n```text\nAttrs DeleteOldDirs(\n bool x\n)\n```"]]