Restores a tensor from checkpoint files.
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.RestoreSlice( file_pattern, tensor_name, shape_and_slice, dt, preferred_shard=-1, name=None )
This is like
Restore except that restored tensor can be listed as filling
only a slice of a larger tensor.
shape_and_slice specifies the shape of the
larger tensor and the slice that the restored tensor covers.
shape_and_slice input has the same format as the
elements of the
shapes_and_slices input of the
string. Must have a single element. The pattern of the files from which we read the tensor.
string. Must have a single element. The name of the tensor to be restored.
string. Scalar. The shapes and slice specifications to use when restoring a tensors.
tf.DType. The type of the tensor to be restored.
preferred_shard: An optional
int. Defaults to
-1. Index of file to open first if multiple files match
file_pattern. See the documentation for
name: A name for the operation (optional).
Tensor of type