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