@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Restore extends Pointer
file_pattern may contain
wildcard symbols (* and ?) in the filename portion only, not in the
directory portion.
If a file_pattern matches several files, preferred_shard can be used to hint
in which file the requested tensor is likely to be found. This op will first
open the file at index preferred_shard in the list of matching files and try
to restore tensors from that file. Only if some tensors or tensor slices are
not found in that first file, then the Op opens all the files. Setting
preferred_shard to match the value passed as the shard input
of a matching Save Op may speed up Restore. This attribute only affects
performance, not correctness. The default value -1 means files are processed in
order.
See also RestoreSlice.
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.
* 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.
Returns:
* Output: The restored tensor.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Restore.Attrs
Optional attribute setters for Restore
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Restore(Pointer p)
Pointer cast constructor.
|
Restore(tensorflow.Scope scope,
tensorflow.Input file_pattern,
tensorflow.Input tensor_name,
int dt) |
Restore(tensorflow.Scope scope,
tensorflow.Input file_pattern,
tensorflow.Input tensor_name,
int dt,
tensorflow.Restore.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Restore |
operation(tensorflow.Operation operation) |
static tensorflow.Restore.Attrs |
PreferredShard(long x) |
tensorflow.Output |
tensor() |
tensorflow.Restore |
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 Restore(Pointer p)
Pointer.Pointer(Pointer).public Restore(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input file_pattern, @ByVal tensorflow.Input tensor_name, @Cast(value="tensorflow::DataType") int dt)
public Restore(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input file_pattern, @ByVal tensorflow.Input tensor_name, @Cast(value="tensorflow::DataType") int dt, @Const @ByRef tensorflow.Restore.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.Restore.Attrs PreferredShard(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Restore operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output tensor()
public tensorflow.Restore tensor(tensorflow.Output tensor)
Copyright © 2019. All rights reserved.