tensorflow:: ops:: RestoreSlice

#include <io_ops.h>

Restores a tensor from checkpoint files.

Summary

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.

The shape_and_slice input has the same format as the elements of the shapes_and_slices input of the SaveSlices op.

Args:

  • scope: A Scope object
  • file_pattern: Must have a single element. The pattern of the files from which we read the tensor.
  • tensor_name: Must have a single element. The name of the tensor to be restored.
  • shape_and_slice: Scalar. The shapes and slice specifications to use when restoring a tensors.
  • dt: The type of the tensor to be restored.

Optional attributes (see Attrs ):

  • preferred_shard: Index of file to open first if multiple files match file_pattern . See the documentation for Restore .

Returns:

Constructors and Destructors

RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt)
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs)

Public attributes

operation
tensor

Public functions

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Public static functions

PreferredShard (int64 x)

Structs

tensorflow:: ops:: RestoreSlice:: Attrs

Optional attribute setters for RestoreSlice .

Public attributes

operation

Operation operation

tensor

::tensorflow::Output tensor

Public functions

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt
)

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt,
  const RestoreSlice::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

PreferredShard

Attrs PreferredShard(
  int64 x
)