tensorflow:: אופס:: MergeV2Checkpoints
#include <io_ops.h>
פורמט V2 ספציפי: ממזג את קובצי המטא נתונים של נקודות ביקורת מרוסקות.
תַקצִיר
ה
התוצאה היא נקודת ביקורת לוגית אחת, עם קובץ מטא-נתונים פיזי אחד וקובצי נתונים ששמם שונה.
מיועד ל"קיבוץ" מחסומים מרובים במערך מחסום מרוסק.
אם delete_old_dirs נכון, מנסה למחוק באופן רקורסיבי את שם ה-dir של כל נתיב בקידומות הקלט checkpoint_prefixes. זה שימושי כאשר נתיבים אלה הם מיקומים זמניים שאינם פונים למשתמש.
טיעונים:
- scope: אובייקט Scope
- checkpoint_prefixes: קידומות של נקודות ביקורת V2 למיזוג.
- prefix_destination: scalar. הקידומת הסופית הרצויה. מותר להיות זהה לאחת מקידומות checkpoint_.
מאפיינים אופציונליים (ראה Attrs
):
- delete_old_dirs: ראה למעלה.
החזרות:
תכונות ציבוריות
מִבצָע
Operation operation
תפקידים ציבוריים
MergeV2Checkpoints
MergeV2Checkpoints(
const ::tensorflow::Scope & scope,
::tensorflow::Input checkpoint_prefixes,
::tensorflow::Input destination_prefix
)
MergeV2Checkpoints
MergeV2Checkpoints(
const ::tensorflow::Scope & scope,
::tensorflow::Input checkpoint_prefixes,
::tensorflow::Input destination_prefix,
const MergeV2Checkpoints::Attrs & attrs
)
אופרטור::tensorflow::פעולה
operator::tensorflow::Operation() const
פונקציות סטטיות ציבוריות
מחקOldDirs
Attrs DeleteOldDirs(
bool x
)
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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.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```"]]