#include <io_ops.h>
Restores a tensor from checkpoint files.
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.
Arguments:
Optional attributes (see Attrs):
file_pattern. See the documentation for Restore.Returns:
Output: The restored tensor. | 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 | |
|---|---|
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. |
::tensorflow::Output tensor
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 )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs PreferredShard( int64 x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/restore-slice.html