جریان تنسور:: عملیات:: MergeV2Checkpoints
#include <io_ops.h>
فرمت خاص V2: فایل های ابرداده ایست های بازرسی خرد شده را ادغام می کند.
خلاصه
این
نتیجه یک نقطه بازرسی منطقی با یک فایل فراداده فیزیکی و فایل های داده تغییر نام یافته است.
در نظر گرفته شده برای "گروه بندی" چندین ایست بازرسی در یک راه اندازی ایست بازرسی خرد شده.
اگر delete_old_dirs درست باشد، سعی می کند به صورت بازگشتی نام dirname هر مسیر را در checkpoint_prefixes ورودی حذف کند. این زمانی مفید است که آن مسیرها مکان های موقتی غیر رو به روی کاربر باشند.
استدلال ها:
- scope: یک شی Scope
- checkpoint_prefixes: پیشوندهای ایست بازرسی V2 برای ادغام.
- مقصد_پیشوند: اسکالر. پیشوند نهایی مورد نظر. مجاز است که مانند یکی از checkpoint_prefixes باشد.
ویژگی های اختیاری (به 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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی."],[],[],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```"]]