tensorflow::ops::MergeV2Checkpoints

#include <io_ops.h>

V2 format specific: merges the metadata files of sharded checkpoints.

Summary

The

result is one logical checkpoint, with one physical metadata file and renamed data files.

Intended for "grouping" multiple checkpoints in a sharded checkpoint setup.

If 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.

If allow_missing_files is true, merges the checkpoint prefixes as long as at least one file exists. Otherwise, if no files exist, an error will be thrown. The default value for allow_missing_files is false.

Args:

  • scope: A Scope object
  • checkpoint_prefixes: prefixes of V2 checkpoints to merge.
  • destination_prefix: scalar. The desired final prefix. Allowed to be the same as one of the checkpoint_prefixes.

Optional attributes (see Attrs):

  • delete_old_dirs: see above.
  • allow_missing_files: see above.

Returns:

Constructors and Destructors

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)

Public attributes

operation

Public functions

operator::tensorflow::Operation() const

Public static functions

AllowMissingFiles(bool x)
DeleteOldDirs(bool x)

Structs

tensorflow::ops::MergeV2Checkpoints::Attrs

Optional attribute setters for MergeV2Checkpoints.

Public attributes

operation

Operation operation

Public functions

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 

Public static functions

AllowMissingFiles

Attrs AllowMissingFiles(
  bool x
)

DeleteOldDirs

Attrs DeleteOldDirs(
  bool x
)