Class RunOptions.Experimental.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RunOptions.Experimental.Builder>
com.google.protobuf.GeneratedMessage.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 GeneratedMessage.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 TypeMethodDescriptionbuild()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.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 GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(RunOptions.Experimental other) .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;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)..tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;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 GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<RunOptions.Experimental.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<RunOptions.Experimental.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.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
-
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 classGeneratedMessage.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
-