@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class RestoreSlice extends Pointer
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:
* 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:
* Output
: The restored tensor.Modifier and Type | Class and Description |
---|---|
static class |
RestoreSlice.Attrs
Optional attribute setters for RestoreSlice
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RestoreSlice(Pointer p)
Pointer cast constructor.
|
RestoreSlice(Scope scope,
Input file_pattern,
Input tensor_name,
Input shape_and_slice,
int dt) |
RestoreSlice(Scope scope,
Input file_pattern,
Input tensor_name,
Input shape_and_slice,
int dt,
RestoreSlice.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
RestoreSlice |
operation(Operation setter) |
static RestoreSlice.Attrs |
PreferredShard(long x) |
Output |
tensor() |
RestoreSlice |
tensor(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public RestoreSlice(Pointer p)
Pointer(Pointer)
.public RestoreSlice(@Const @ByRef Scope scope, @ByVal Input file_pattern, @ByVal Input tensor_name, @ByVal Input shape_and_slice, @Cast(value="tensorflow::DataType") int dt)
public Node node()
@ByVal public static RestoreSlice.Attrs PreferredShard(@Cast(value="tensorflow::int64") long x)
public RestoreSlice operation(Operation setter)
public RestoreSlice tensor(Output setter)
Copyright © 2022. All rights reserved.