Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
tensoreflusso:: ops:: Unisci punti di controllo V2
#include <io_ops.h>
Specifico per il formato V2: unisce i file di metadati dei checkpoint frammentati.
Riepilogo
IL
il risultato è un punto di controllo logico, con un file di metadati fisico e file di dati rinominati.
Destinato al "raggruppamento" di più checkpoint in una configurazione di checkpoint frammentata.
Se delete_old_dirs è true, tenta di eliminare ricorsivamente il dirname di ciascun percorso nell'input checkpoint_prefixes. Ciò è utile quando tali percorsi sono posizioni temporanee non rivolte all'utente.
Argomenti:
- scope: un oggetto Scope
- checkpoint_prefixes: prefissi dei checkpoint V2 da unire.
- prefisso_destinazione: scalare. Il prefisso finale desiderato. Può essere uguale a uno dei checkpoint_prefixes.
Attributi facoltativi (vedi Attrs
):
- delete_old_dirs: vedi sopra.
Resi:
Attributi pubblici
Funzioni pubbliche
operator::tensorflow::Operazione
operator::tensorflow::Operation() const
Funzioni pubbliche statiche
EliminaVecchieCartelle
Attrs DeleteOldDirs(
bool x
)
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 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.3/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.3/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.3/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.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` checkpoint_prefixes, ::`[tensorflow::Input](/versions/r2.3/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.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` checkpoint_prefixes, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` destination_prefix, const `[MergeV2Checkpoints::Attrs](/versions/r2.3/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.3/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.3/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.3/api_docs/cc/struct/tensorflow/ops/merge-v2-checkpoints/attrs) | Optional attribute setters for [MergeV2Checkpoints](/versions/r2.3/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```"]]