Spec-Zone.ru › TensorFlow C++

tensorflow::ops::MergeV2Checkpoints

#include <io_ops.h>

В2-специфичное: объединяет метаданные файлов фрагментированных контрольных точек.

Краткое описание

В

результате получается одна логическая контрольная точка с одним физическим файлом метаданных и переименованными файлами данных.

Предназначено для «группирования» нескольких контрольных точек в настройке фрагментированной контрольной точки.

Если delete_old_dirs равно true, пытается рекурсивно удалить dirname каждого пути во входных checkpoint_prefixes. Это полезно, когда эти пути являются временными расположениями, не видимыми пользователю.

Если allow_missing_files равно true, объединяет префиксы контрольных точек, при условии, что существует хотя бы один файл. В противном случае, если файлы отсутствуют, будет выброшено исключение. Значение по умолчанию для allow_missing_files — false.

Аргументы:

  • scope: Объект Scope
  • checkpoint_prefixes: префиксы V2 контрольных точек для объединения.
  • destination_prefix: скаляр. Желаемый конечный префикс. Разрешено совпадение с одним из checkpoint_prefixes.

Необязательные атрибуты (см. Attrs):

  • delete_old_dirs: см. выше.
  • allow_missing_files: см. выше.

Возвращает:

  • созданный Operation
Конструкторы и деструкторы
MergeV2Checkpoints(const ::tensorflow::Scope & scope, ::tensorflow::Input checkpoint_prefixes, ::tensorflow::Input destination_prefix)
MergeV2Checkpoints(const ::tensorflow::Scope & scope, ::tensorflow::Input checkpoint_prefixes, ::tensorflow::Input destination_prefix, const MergeV2Checkpoints::Attrs & attrs)
Общедоступные атрибуты
operation
Operation
Общедоступные функции
operator::tensorflow::Operation() const
Общедоступные статические функции
AllowMissingFiles(bool x)
Attrs
DeleteOldDirs(bool x)
Attrs
Структуры
tensorflow::ops::MergeV2Checkpoints::Attrs

Необязательные атрибуты для установки для MergeV2Checkpoints.

Общедоступные атрибуты

operation

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
)

operator::tensorflow::Operation

operator::tensorflow::Operation() const 

Общедоступные статические функции

AllowMissingFiles

Attrs AllowMissingFiles(
  bool x
)

DeleteOldDirs

Attrs DeleteOldDirs(
  bool x
)

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/merge-v2-checkpoints

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API