public static final class RunOptions.Experimental.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder> implements RunOptions.ExperimentalOrBuilder
Everything inside Experimental is subject to change and is not subject to API stability guarantees in https://www.tensorflow.org/guide/version_compat.Protobuf type
tensorflow.RunOptions.Experimental| Modifier and Type | Method and Description |
|---|---|
RunOptions.Experimental.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RunOptions.Experimental |
build() |
RunOptions.Experimental |
buildPartial() |
RunOptions.Experimental.Builder |
clear() |
RunOptions.Experimental.Builder |
clearCollectiveGraphKey()
If non-zero, declares that this graph is going to use collective
ops and must synchronize step_ids with any other graph with this
same group_key value (in a distributed computation where tasks
run disjoint graphs).
|
RunOptions.Experimental.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RunOptions.Experimental.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RunOptions.Experimental.Builder |
clearUseRunHandlerPool()
If true, then operations (using the inter-op pool) across all
session::run() calls will be centrally scheduled, optimizing for (median
and tail) latency.
|
RunOptions.Experimental.Builder |
clone() |
long |
getCollectiveGraphKey()
If non-zero, declares that this graph is going to use collective
ops and must synchronize step_ids with any other graph with this
same group_key value (in a distributed computation where tasks
run disjoint graphs).
|
RunOptions.Experimental |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getUseRunHandlerPool()
If true, then operations (using the inter-op pool) across all
session::run() calls will be centrally scheduled, optimizing for (median
and tail) latency.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RunOptions.Experimental.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RunOptions.Experimental.Builder |
mergeFrom(com.google.protobuf.Message other) |
RunOptions.Experimental.Builder |
mergeFrom(RunOptions.Experimental other) |
RunOptions.Experimental.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunOptions.Experimental.Builder |
setCollectiveGraphKey(long value)
If non-zero, declares that this graph is going to use collective
ops and must synchronize step_ids with any other graph with this
same group_key value (in a distributed computation where tasks
run disjoint graphs).
|
RunOptions.Experimental.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RunOptions.Experimental.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
RunOptions.Experimental.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunOptions.Experimental.Builder |
setUseRunHandlerPool(boolean value)
If true, then operations (using the inter-op pool) across all
session::run() calls will be centrally scheduled, optimizing for (median
and tail) latency.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RunOptions.Experimental build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RunOptions.Experimental buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RunOptions.Experimental.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder mergeFrom(RunOptions.Experimental other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public RunOptions.Experimental.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunOptions.Experimental.Builder>java.io.IOExceptionpublic long getCollectiveGraphKey()
If non-zero, declares that this graph is going to use collective ops and must synchronize step_ids with any other graph with this same group_key value (in a distributed computation where tasks run disjoint graphs).
int64 collective_graph_key = 1;getCollectiveGraphKey in interface RunOptions.ExperimentalOrBuilderpublic RunOptions.Experimental.Builder setCollectiveGraphKey(long value)
If non-zero, declares that this graph is going to use collective ops and must synchronize step_ids with any other graph with this same group_key value (in a distributed computation where tasks run disjoint graphs).
int64 collective_graph_key = 1;value - The collectiveGraphKey to set.public RunOptions.Experimental.Builder clearCollectiveGraphKey()
If non-zero, declares that this graph is going to use collective ops and must synchronize step_ids with any other graph with this same group_key value (in a distributed computation where tasks run disjoint graphs).
int64 collective_graph_key = 1;public boolean getUseRunHandlerPool()
If true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency. Consider using this option for CPU-bound workloads like inference.
bool use_run_handler_pool = 2;getUseRunHandlerPool in interface RunOptions.ExperimentalOrBuilderpublic RunOptions.Experimental.Builder setUseRunHandlerPool(boolean value)
If true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency. Consider using this option for CPU-bound workloads like inference.
bool use_run_handler_pool = 2;value - The useRunHandlerPool to set.public RunOptions.Experimental.Builder clearUseRunHandlerPool()
If true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency. Consider using this option for CPU-bound workloads like inference.
bool use_run_handler_pool = 2;public final RunOptions.Experimental.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>public final RunOptions.Experimental.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>