Class RunOptions.Experimental.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RunOptions.Experimental.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
org.tensorflow.proto.RunOptions.Experimental.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, RunOptions.ExperimentalOrBuilder
- Enclosing class:
RunOptions.Experimental
public static final class RunOptions.Experimental.Builder
extends 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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()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)..tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;If true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency.clone()longIf 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).static final Descriptors.Descriptor.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;booleanIf true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency.boolean.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(RunOptions.Experimental other) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;mergeUnknownFields(UnknownFieldSet unknownFields) 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).setField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;setUnknownFields(UnknownFieldSet unknownFields) 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.Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
setRepeatedField
public RunOptions.Experimental.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
addRepeatedField
public RunOptions.Experimental.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RunOptions.Experimental.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
mergeFrom
public RunOptions.Experimental.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RunOptions.Experimental.Builder>- Throws:
IOException
-
getCollectiveGraphKey
public 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;- Specified by:
getCollectiveGraphKeyin interfaceRunOptions.ExperimentalOrBuilder- Returns:
- The collectiveGraphKey.
-
setCollectiveGraphKey
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;- Parameters:
value- The collectiveGraphKey to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getUseRunHandlerPool
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;- Specified by:
getUseRunHandlerPoolin interfaceRunOptions.ExperimentalOrBuilder- Returns:
- The useRunHandlerPool.
-
setUseRunHandlerPool
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;- Parameters:
value- The useRunHandlerPool to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasRunHandlerPoolOptions
public boolean hasRunHandlerPoolOptions().tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;- Specified by:
hasRunHandlerPoolOptionsin interfaceRunOptions.ExperimentalOrBuilder- Returns:
- Whether the runHandlerPoolOptions field is set.
-
getRunHandlerPoolOptions
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;- Specified by:
getRunHandlerPoolOptionsin interfaceRunOptions.ExperimentalOrBuilder- Returns:
- The runHandlerPoolOptions.
-
setRunHandlerPoolOptions
public RunOptions.Experimental.Builder setRunHandlerPoolOptions(RunOptions.Experimental.RunHandlerPoolOptions value) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; -
setRunHandlerPoolOptions
public RunOptions.Experimental.Builder setRunHandlerPoolOptions(RunOptions.Experimental.RunHandlerPoolOptions.Builder builderForValue) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; -
mergeRunHandlerPoolOptions
public RunOptions.Experimental.Builder mergeRunHandlerPoolOptions(RunOptions.Experimental.RunHandlerPoolOptions value) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; -
clearRunHandlerPoolOptions
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; -
getRunHandlerPoolOptionsBuilder
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; -
getRunHandlerPoolOptionsOrBuilder
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;- Specified by:
getRunHandlerPoolOptionsOrBuilderin interfaceRunOptions.ExperimentalOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<RunOptions.Experimental.Builder>
-