public final class CallableOptions extends com.google.protobuf.GeneratedMessageV3 implements CallableOptionsOrBuilder
Defines a subgraph in another `GraphDef` as a set of feed points and nodes to be fetched or executed. Compare with the arguments to `Session::Run()`.Protobuf type
tensorflow.CallableOptions| Modifier and Type | Class and Description |
|---|---|
static class |
CallableOptions.Builder
Defines a subgraph in another `GraphDef` as a set of feed points and nodes
to be fetched or executed.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FEED_DEVICES_FIELD_NUMBER |
static int |
FEED_FIELD_NUMBER |
static int |
FETCH_DEVICES_FIELD_NUMBER |
static int |
FETCH_FIELD_NUMBER |
static int |
FETCH_SKIP_SYNC_FIELD_NUMBER |
static int |
RUN_OPTIONS_FIELD_NUMBER |
static int |
TARGET_FIELD_NUMBER |
static int |
TENSOR_CONNECTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFeedDevices(java.lang.String key)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
|
boolean |
containsFetchDevices(java.lang.String key)
map<string, string> fetch_devices = 7; |
boolean |
equals(java.lang.Object obj) |
static CallableOptions |
getDefaultInstance() |
CallableOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getFeed(int index)
Tensors to be fed in the callable.
|
com.google.protobuf.ByteString |
getFeedBytes(int index)
Tensors to be fed in the callable.
|
int |
getFeedCount()
Tensors to be fed in the callable.
|
java.util.Map<java.lang.String,java.lang.String> |
getFeedDevices()
Deprecated.
|
int |
getFeedDevicesCount()
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
|
java.util.Map<java.lang.String,java.lang.String> |
getFeedDevicesMap()
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
|
java.lang.String |
getFeedDevicesOrDefault(java.lang.String key,
java.lang.String defaultValue)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
|
java.lang.String |
getFeedDevicesOrThrow(java.lang.String key)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
|
com.google.protobuf.ProtocolStringList |
getFeedList()
Tensors to be fed in the callable.
|
java.lang.String |
getFetch(int index)
Fetches.
|
com.google.protobuf.ByteString |
getFetchBytes(int index)
Fetches.
|
int |
getFetchCount()
Fetches.
|
java.util.Map<java.lang.String,java.lang.String> |
getFetchDevices()
Deprecated.
|
int |
getFetchDevicesCount()
map<string, string> fetch_devices = 7; |
java.util.Map<java.lang.String,java.lang.String> |
getFetchDevicesMap()
map<string, string> fetch_devices = 7; |
java.lang.String |
getFetchDevicesOrDefault(java.lang.String key,
java.lang.String defaultValue)
map<string, string> fetch_devices = 7; |
java.lang.String |
getFetchDevicesOrThrow(java.lang.String key)
map<string, string> fetch_devices = 7; |
com.google.protobuf.ProtocolStringList |
getFetchList()
Fetches.
|
boolean |
getFetchSkipSync()
By default, RunCallable() will synchronize the GPU stream before returning
fetched tensors on a GPU device, to ensure that the values in those tensors
have been produced.
|
com.google.protobuf.Parser<CallableOptions> |
getParserForType() |
RunOptions |
getRunOptions()
Options that will be applied to each run.
|
RunOptionsOrBuilder |
getRunOptionsOrBuilder()
Options that will be applied to each run.
|
int |
getSerializedSize() |
java.lang.String |
getTarget(int index)
Target Nodes.
|
com.google.protobuf.ByteString |
getTargetBytes(int index)
Target Nodes.
|
int |
getTargetCount()
Target Nodes.
|
com.google.protobuf.ProtocolStringList |
getTargetList()
Target Nodes.
|
TensorConnection |
getTensorConnection(int index)
Tensors to be connected in the callable.
|
int |
getTensorConnectionCount()
Tensors to be connected in the callable.
|
java.util.List<TensorConnection> |
getTensorConnectionList()
Tensors to be connected in the callable.
|
TensorConnectionOrBuilder |
getTensorConnectionOrBuilder(int index)
Tensors to be connected in the callable.
|
java.util.List<? extends TensorConnectionOrBuilder> |
getTensorConnectionOrBuilderList()
Tensors to be connected in the callable.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRunOptions()
Options that will be applied to each run.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static CallableOptions.Builder |
newBuilder() |
static CallableOptions.Builder |
newBuilder(CallableOptions prototype) |
CallableOptions.Builder |
newBuilderForType() |
protected CallableOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CallableOptions |
parseDelimitedFrom(java.io.InputStream input) |
static CallableOptions |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CallableOptions |
parseFrom(byte[] data) |
static CallableOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CallableOptions |
parseFrom(java.nio.ByteBuffer data) |
static CallableOptions |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CallableOptions |
parseFrom(com.google.protobuf.ByteString data) |
static CallableOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CallableOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CallableOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CallableOptions |
parseFrom(java.io.InputStream input) |
static CallableOptions |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CallableOptions> |
parser() |
CallableOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FEED_FIELD_NUMBER
public static final int FETCH_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
public static final int RUN_OPTIONS_FIELD_NUMBER
public static final int TENSOR_CONNECTION_FIELD_NUMBER
public static final int FEED_DEVICES_FIELD_NUMBER
public static final int FETCH_DEVICES_FIELD_NUMBER
public static final int FETCH_SKIP_SYNC_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ProtocolStringList getFeedList()
Tensors to be fed in the callable. Each feed is the name of a tensor.
repeated string feed = 1;getFeedList in interface CallableOptionsOrBuilderpublic int getFeedCount()
Tensors to be fed in the callable. Each feed is the name of a tensor.
repeated string feed = 1;getFeedCount in interface CallableOptionsOrBuilderpublic java.lang.String getFeed(int index)
Tensors to be fed in the callable. Each feed is the name of a tensor.
repeated string feed = 1;getFeed in interface CallableOptionsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getFeedBytes(int index)
Tensors to be fed in the callable. Each feed is the name of a tensor.
repeated string feed = 1;getFeedBytes in interface CallableOptionsOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getFetchList()
Fetches. A list of tensor names. The caller of the callable expects a tensor to be returned for each fetch[i] (see RunStepResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 2;getFetchList in interface CallableOptionsOrBuilderpublic int getFetchCount()
Fetches. A list of tensor names. The caller of the callable expects a tensor to be returned for each fetch[i] (see RunStepResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 2;getFetchCount in interface CallableOptionsOrBuilderpublic java.lang.String getFetch(int index)
Fetches. A list of tensor names. The caller of the callable expects a tensor to be returned for each fetch[i] (see RunStepResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 2;getFetch in interface CallableOptionsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getFetchBytes(int index)
Fetches. A list of tensor names. The caller of the callable expects a tensor to be returned for each fetch[i] (see RunStepResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 2;getFetchBytes in interface CallableOptionsOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getTargetList()
Target Nodes. A list of node names. The named nodes will be run by the callable but their outputs will not be returned.
repeated string target = 3;getTargetList in interface CallableOptionsOrBuilderpublic int getTargetCount()
Target Nodes. A list of node names. The named nodes will be run by the callable but their outputs will not be returned.
repeated string target = 3;getTargetCount in interface CallableOptionsOrBuilderpublic java.lang.String getTarget(int index)
Target Nodes. A list of node names. The named nodes will be run by the callable but their outputs will not be returned.
repeated string target = 3;getTarget in interface CallableOptionsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTargetBytes(int index)
Target Nodes. A list of node names. The named nodes will be run by the callable but their outputs will not be returned.
repeated string target = 3;getTargetBytes in interface CallableOptionsOrBuilderindex - The index of the value to return.public boolean hasRunOptions()
Options that will be applied to each run.
.tensorflow.RunOptions run_options = 4;hasRunOptions in interface CallableOptionsOrBuilderpublic RunOptions getRunOptions()
Options that will be applied to each run.
.tensorflow.RunOptions run_options = 4;getRunOptions in interface CallableOptionsOrBuilderpublic RunOptionsOrBuilder getRunOptionsOrBuilder()
Options that will be applied to each run.
.tensorflow.RunOptions run_options = 4;getRunOptionsOrBuilder in interface CallableOptionsOrBuilderpublic java.util.List<TensorConnection> getTensorConnectionList()
Tensors to be connected in the callable. Each TensorConnection denotes a pair of tensors in the graph, between which an edge will be created in the callable.
repeated .tensorflow.TensorConnection tensor_connection = 5;getTensorConnectionList in interface CallableOptionsOrBuilderpublic java.util.List<? extends TensorConnectionOrBuilder> getTensorConnectionOrBuilderList()
Tensors to be connected in the callable. Each TensorConnection denotes a pair of tensors in the graph, between which an edge will be created in the callable.
repeated .tensorflow.TensorConnection tensor_connection = 5;getTensorConnectionOrBuilderList in interface CallableOptionsOrBuilderpublic int getTensorConnectionCount()
Tensors to be connected in the callable. Each TensorConnection denotes a pair of tensors in the graph, between which an edge will be created in the callable.
repeated .tensorflow.TensorConnection tensor_connection = 5;getTensorConnectionCount in interface CallableOptionsOrBuilderpublic TensorConnection getTensorConnection(int index)
Tensors to be connected in the callable. Each TensorConnection denotes a pair of tensors in the graph, between which an edge will be created in the callable.
repeated .tensorflow.TensorConnection tensor_connection = 5;getTensorConnection in interface CallableOptionsOrBuilderpublic TensorConnectionOrBuilder getTensorConnectionOrBuilder(int index)
Tensors to be connected in the callable. Each TensorConnection denotes a pair of tensors in the graph, between which an edge will be created in the callable.
repeated .tensorflow.TensorConnection tensor_connection = 5;getTensorConnectionOrBuilder in interface CallableOptionsOrBuilderpublic int getFeedDevicesCount()
CallableOptionsOrBuilder
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
The options below allow changing that - feeding tensors backed by
device memory, or returning tensors that are backed by device memory.
The maps below map the name of a feed/fetch tensor (which appears in
'feed' or 'fetch' fields above), to the fully qualified name of the device
owning the memory backing the contents of the tensor.
For example, creating a callable with the following options:
CallableOptions {
feed: "a:0"
feed: "b:0"
fetch: "x:0"
fetch: "y:0"
feed_devices: {
"a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
fetch_devices: {
"y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
}
means that the Callable expects:
- The first argument ("a:0") is a Tensor backed by GPU memory.
- The second argument ("b:0") is a Tensor backed by host memory.
and of its return values:
- The first output ("x:0") will be backed by host memory.
- The second output ("y:0") will be backed by GPU memory.
FEEDS:
It is the responsibility of the caller to ensure that the memory of the fed
tensors will be correctly initialized and synchronized before it is
accessed by operations executed during the call to Session::RunCallable().
This is typically ensured by using the TensorFlow memory allocators
(Device::GetAllocator()) to create the Tensor to be fed.
Alternatively, for CUDA-enabled GPU devices, this typically means that the
operation that produced the contents of the tensor has completed, i.e., the
CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
cuStreamSynchronize()).
map<string, string> feed_devices = 6;getFeedDevicesCount in interface CallableOptionsOrBuilderpublic boolean containsFeedDevices(java.lang.String key)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
The options below allow changing that - feeding tensors backed by
device memory, or returning tensors that are backed by device memory.
The maps below map the name of a feed/fetch tensor (which appears in
'feed' or 'fetch' fields above), to the fully qualified name of the device
owning the memory backing the contents of the tensor.
For example, creating a callable with the following options:
CallableOptions {
feed: "a:0"
feed: "b:0"
fetch: "x:0"
fetch: "y:0"
feed_devices: {
"a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
fetch_devices: {
"y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
}
means that the Callable expects:
- The first argument ("a:0") is a Tensor backed by GPU memory.
- The second argument ("b:0") is a Tensor backed by host memory.
and of its return values:
- The first output ("x:0") will be backed by host memory.
- The second output ("y:0") will be backed by GPU memory.
FEEDS:
It is the responsibility of the caller to ensure that the memory of the fed
tensors will be correctly initialized and synchronized before it is
accessed by operations executed during the call to Session::RunCallable().
This is typically ensured by using the TensorFlow memory allocators
(Device::GetAllocator()) to create the Tensor to be fed.
Alternatively, for CUDA-enabled GPU devices, this typically means that the
operation that produced the contents of the tensor has completed, i.e., the
CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
cuStreamSynchronize()).
map<string, string> feed_devices = 6;containsFeedDevices in interface CallableOptionsOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getFeedDevices()
getFeedDevicesMap() instead.getFeedDevices in interface CallableOptionsOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getFeedDevicesMap()
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
The options below allow changing that - feeding tensors backed by
device memory, or returning tensors that are backed by device memory.
The maps below map the name of a feed/fetch tensor (which appears in
'feed' or 'fetch' fields above), to the fully qualified name of the device
owning the memory backing the contents of the tensor.
For example, creating a callable with the following options:
CallableOptions {
feed: "a:0"
feed: "b:0"
fetch: "x:0"
fetch: "y:0"
feed_devices: {
"a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
fetch_devices: {
"y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
}
means that the Callable expects:
- The first argument ("a:0") is a Tensor backed by GPU memory.
- The second argument ("b:0") is a Tensor backed by host memory.
and of its return values:
- The first output ("x:0") will be backed by host memory.
- The second output ("y:0") will be backed by GPU memory.
FEEDS:
It is the responsibility of the caller to ensure that the memory of the fed
tensors will be correctly initialized and synchronized before it is
accessed by operations executed during the call to Session::RunCallable().
This is typically ensured by using the TensorFlow memory allocators
(Device::GetAllocator()) to create the Tensor to be fed.
Alternatively, for CUDA-enabled GPU devices, this typically means that the
operation that produced the contents of the tensor has completed, i.e., the
CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
cuStreamSynchronize()).
map<string, string> feed_devices = 6;getFeedDevicesMap in interface CallableOptionsOrBuilderpublic java.lang.String getFeedDevicesOrDefault(java.lang.String key,
java.lang.String defaultValue)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
The options below allow changing that - feeding tensors backed by
device memory, or returning tensors that are backed by device memory.
The maps below map the name of a feed/fetch tensor (which appears in
'feed' or 'fetch' fields above), to the fully qualified name of the device
owning the memory backing the contents of the tensor.
For example, creating a callable with the following options:
CallableOptions {
feed: "a:0"
feed: "b:0"
fetch: "x:0"
fetch: "y:0"
feed_devices: {
"a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
fetch_devices: {
"y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
}
means that the Callable expects:
- The first argument ("a:0") is a Tensor backed by GPU memory.
- The second argument ("b:0") is a Tensor backed by host memory.
and of its return values:
- The first output ("x:0") will be backed by host memory.
- The second output ("y:0") will be backed by GPU memory.
FEEDS:
It is the responsibility of the caller to ensure that the memory of the fed
tensors will be correctly initialized and synchronized before it is
accessed by operations executed during the call to Session::RunCallable().
This is typically ensured by using the TensorFlow memory allocators
(Device::GetAllocator()) to create the Tensor to be fed.
Alternatively, for CUDA-enabled GPU devices, this typically means that the
operation that produced the contents of the tensor has completed, i.e., the
CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
cuStreamSynchronize()).
map<string, string> feed_devices = 6;getFeedDevicesOrDefault in interface CallableOptionsOrBuilderpublic java.lang.String getFeedDevicesOrThrow(java.lang.String key)
The Tensor objects fed in the callable and fetched from the callable
are expected to be backed by host (CPU) memory by default.
The options below allow changing that - feeding tensors backed by
device memory, or returning tensors that are backed by device memory.
The maps below map the name of a feed/fetch tensor (which appears in
'feed' or 'fetch' fields above), to the fully qualified name of the device
owning the memory backing the contents of the tensor.
For example, creating a callable with the following options:
CallableOptions {
feed: "a:0"
feed: "b:0"
fetch: "x:0"
fetch: "y:0"
feed_devices: {
"a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
fetch_devices: {
"y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
}
}
means that the Callable expects:
- The first argument ("a:0") is a Tensor backed by GPU memory.
- The second argument ("b:0") is a Tensor backed by host memory.
and of its return values:
- The first output ("x:0") will be backed by host memory.
- The second output ("y:0") will be backed by GPU memory.
FEEDS:
It is the responsibility of the caller to ensure that the memory of the fed
tensors will be correctly initialized and synchronized before it is
accessed by operations executed during the call to Session::RunCallable().
This is typically ensured by using the TensorFlow memory allocators
(Device::GetAllocator()) to create the Tensor to be fed.
Alternatively, for CUDA-enabled GPU devices, this typically means that the
operation that produced the contents of the tensor has completed, i.e., the
CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
cuStreamSynchronize()).
map<string, string> feed_devices = 6;getFeedDevicesOrThrow in interface CallableOptionsOrBuilderpublic int getFetchDevicesCount()
CallableOptionsOrBuildermap<string, string> fetch_devices = 7;getFetchDevicesCount in interface CallableOptionsOrBuilderpublic boolean containsFetchDevices(java.lang.String key)
map<string, string> fetch_devices = 7;containsFetchDevices in interface CallableOptionsOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getFetchDevices()
getFetchDevicesMap() instead.getFetchDevices in interface CallableOptionsOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getFetchDevicesMap()
map<string, string> fetch_devices = 7;getFetchDevicesMap in interface CallableOptionsOrBuilderpublic java.lang.String getFetchDevicesOrDefault(java.lang.String key,
java.lang.String defaultValue)
map<string, string> fetch_devices = 7;getFetchDevicesOrDefault in interface CallableOptionsOrBuilderpublic java.lang.String getFetchDevicesOrThrow(java.lang.String key)
map<string, string> fetch_devices = 7;getFetchDevicesOrThrow in interface CallableOptionsOrBuilderpublic boolean getFetchSkipSync()
By default, RunCallable() will synchronize the GPU stream before returning fetched tensors on a GPU device, to ensure that the values in those tensors have been produced. This simplifies interacting with the tensors, but potentially incurs a performance hit. If this options is set to true, the caller is responsible for ensuring that the values in the fetched tensors have been produced before they are used. The caller can do this by invoking `Device::Sync()` on the underlying device(s), or by feeding the tensors back to the same Session using `feed_devices` with the same corresponding device name.
bool fetch_skip_sync = 8;getFetchSkipSync in interface CallableOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CallableOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CallableOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CallableOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CallableOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CallableOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CallableOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CallableOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic CallableOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CallableOptions.Builder newBuilder()
public static CallableOptions.Builder newBuilder(CallableOptions prototype)
public CallableOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CallableOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CallableOptions getDefaultInstance()
public static com.google.protobuf.Parser<CallableOptions> parser()
public com.google.protobuf.Parser<CallableOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CallableOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder