MergeV2Checkpoints

public final class MergeV2Checkpoints

V2 format specific: merges the metadata files of sharded checkpoints. 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.

Nested Classes

class MergeV2Checkpoints.Options Optional attributes for MergeV2Checkpoints  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static MergeV2Checkpoints
create(Scope scope, Operand<TString> checkpointPrefixes, Operand<TString> destinationPrefix, Options... options)
Factory method to create a class wrapping a new MergeV2Checkpoints operation.
static MergeV2Checkpoints.Options
deleteOldDirs(Boolean deleteOldDirs)

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "MergeV2Checkpoints"

Public Methods

public static MergeV2Checkpoints create (Scope scope, Operand<TString> checkpointPrefixes, Operand<TString> destinationPrefix, Options... options)

Factory method to create a class wrapping a new MergeV2Checkpoints operation.

Parameters
scope current scope
checkpointPrefixes prefixes of V2 checkpoints to merge.
destinationPrefix scalar. The desired final prefix. Allowed to be the same as one of the checkpoint_prefixes.
options carries optional attributes values
Returns
  • a new instance of MergeV2Checkpoints

public static MergeV2Checkpoints.Options deleteOldDirs (Boolean deleteOldDirs)

Parameters
deleteOldDirs see above.