Package org.tensorflow.framework
Class ConfigProto.Experimental.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ConfigProto.Experimental.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
org.tensorflow.framework.ConfigProto.Experimental.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ConfigProto.ExperimentalOrBuilder
- Enclosing class:
ConfigProto.Experimental
public static final class ConfigProto.Experimental.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
implements ConfigProto.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.ConfigProto.Experimental-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Port for the Pathways server.If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.Task name for group resolution.If true, use NCCL for CollectiveOps.Distributed coordination service configurations.Whether eager remote execution will stream all the function calls or allow them to happen in parallel.Whether functional control flow op lowering should be disabled.If true, the session will treat the graph as being non-static for optimization purposes.If true, the session will not store an additional copy of the graph for each subgraph.If using a direct session, disable spinning while waiting for work in the thread pool.Whether to enable the MLIR-based TF->XLA bridge.Whether to enable the MLIR-based Graph optimizations.If true, use Pathways with TFRT API for multi host support.Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Whether to enable the MLIR-based TF->XLA bridge.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If true, the session may treat the graph as being static for optimization purposes.Guidance to formatting of large RecvBuf fields for transfer.Metadata about the session.This was promoted to a non-experimental API.In the following, session state means the value of a variable, elements in a hash table, or any other resource, accessible by worker sessions held by a TF server.The threshold to merge small streams in TFRT.If true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.If true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.If true, use ifrt as the backend for TFRT.If true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable.Whether runtime execution uses TFRT.Minimum number of batches run through the XLA graph before XLA fusion autotuner is enabled.Provides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.clone()intPort for the Pathways server.booleanIf true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.Task name for group resolution.com.google.protobuf.ByteStringTask name for group resolution.booleanIf true, use NCCL for CollectiveOps.Distributed coordination service configurations.Distributed coordination service configurations.Distributed coordination service configurations.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether eager remote execution will stream all the function calls or allow them to happen in parallel.booleanWhether functional control flow op lowering should be disabled.booleanIf true, the session will treat the graph as being non-static for optimization purposes.booleanIf true, the session will not store an additional copy of the graph for each subgraph.booleanIf using a direct session, disable spinning while waiting for work in the thread pool.booleanWhether to enable the MLIR-based TF->XLA bridge.booleanWhether to enable the MLIR-based Graph optimizations.booleanIf true, use Pathways with TFRT API for multi host support.Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"com.google.protobuf.ByteStringWhich executor to use, the default executor will be used if it is an empty string or "DEFAULT"Whether to enable the MLIR-based TF->XLA bridge.intWhether to enable the MLIR-based TF->XLA bridge.booleanIf true, the session may treat the graph as being static for optimization purposes.intGuidance to formatting of large RecvBuf fields for transfer.Metadata about the session.Metadata about the session.Metadata about the session.booleanThis was promoted to a non-experimental API.booleanIn the following, session state means the value of a variable, elements in a hash table, or any other resource, accessible by worker sessions held by a TF server.intThe threshold to merge small streams in TFRT.booleanIf true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.booleanIf true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.booleanIf true, use ifrt as the backend for TFRT.booleanIf true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable.booleanWhether runtime execution uses TFRT.longMinimum number of batches run through the XLA graph before XLA fusion autotuner is enabled.booleanProvides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.booleanDistributed coordination service configurations.booleanMetadata about the session.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanDistributed coordination service configurations.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata about the session.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBackendServerPort(int value) Port for the Pathways server.setCollectiveDeterministicSequentialExecution(boolean value) If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.setCollectiveGroupLeader(String value) Task name for group resolution.setCollectiveGroupLeaderBytes(com.google.protobuf.ByteString value) Task name for group resolution.setCollectiveNccl(boolean value) If true, use NCCL for CollectiveOps.Distributed coordination service configurations.Distributed coordination service configurations.setDisableEagerExecutorStreamingEnqueue(boolean value) Whether eager remote execution will stream all the function calls or allow them to happen in parallel.setDisableFunctionalOpsLowering(boolean value) Whether functional control flow op lowering should be disabled.setDisableOptimizeForStaticGraph(boolean value) If true, the session will treat the graph as being non-static for optimization purposes.setDisableOutputPartitionGraphs(boolean value) If true, the session will not store an additional copy of the graph for each subgraph.setDisableThreadSpinning(boolean value) If using a direct session, disable spinning while waiting for work in the thread pool.setEnableMlirBridge(boolean value) Whether to enable the MLIR-based TF->XLA bridge.setEnableMlirGraphOptimization(boolean value) Whether to enable the MLIR-based Graph optimizations.setEnableMultiHost(boolean value) If true, use Pathways with TFRT API for multi host support.setExecutorType(String value) Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"setExecutorTypeBytes(com.google.protobuf.ByteString value) Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"Whether to enable the MLIR-based TF->XLA bridge.setMlirBridgeRolloutValue(int value) Whether to enable the MLIR-based TF->XLA bridge.setOptimizeForStaticGraph(boolean value) If true, the session may treat the graph as being static for optimization purposes.setRecvBufMaxChunk(int value) Guidance to formatting of large RecvBuf fields for transfer.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Metadata about the session.setSessionMetadata(SessionMetadata.Builder builderForValue) Metadata about the session.setShareClusterDevicesInSession(boolean value) This was promoted to a non-experimental API.setShareSessionStateInClusterspecPropagation(boolean value) In the following, session state means the value of a variable, elements in a hash table, or any other resource, accessible by worker sessions held by a TF server.setStreamMergeThreshold(int value) The threshold to merge small streams in TFRT.setTargetGpu(boolean value) If true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.setTargetTpu(boolean value) If true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.setTfrtUseIfrt(boolean value) If true, use ifrt as the backend for TFRT.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUseNumaAffinity(boolean value) If true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable.setUseTfrt(boolean value) Whether runtime execution uses TFRT.setXlaFusionAutotunerThresh(long value) Minimum number of batches run through the XLA graph before XLA fusion autotuner is enabled.setXlaPreferSingleGraphCluster(boolean value) Provides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
setField
public ConfigProto.Experimental.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
clearField
public ConfigProto.Experimental.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
clearOneof
public ConfigProto.Experimental.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
setRepeatedField
public ConfigProto.Experimental.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
addRepeatedField
public ConfigProto.Experimental.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigProto.Experimental.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
mergeFrom
public ConfigProto.Experimental.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigProto.Experimental.Builder>- Throws:
IOException
-
getCollectiveGroupLeader
Task name for group resolution.
string collective_group_leader = 1;- Specified by:
getCollectiveGroupLeaderin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The collectiveGroupLeader.
-
getCollectiveGroupLeaderBytes
public com.google.protobuf.ByteString getCollectiveGroupLeaderBytes()Task name for group resolution.
string collective_group_leader = 1;- Specified by:
getCollectiveGroupLeaderBytesin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The bytes for collectiveGroupLeader.
-
setCollectiveGroupLeader
Task name for group resolution.
string collective_group_leader = 1;- Parameters:
value- The collectiveGroupLeader to set.- Returns:
- This builder for chaining.
-
clearCollectiveGroupLeader
Task name for group resolution.
string collective_group_leader = 1;- Returns:
- This builder for chaining.
-
setCollectiveGroupLeaderBytes
public ConfigProto.Experimental.Builder setCollectiveGroupLeaderBytes(com.google.protobuf.ByteString value) Task name for group resolution.
string collective_group_leader = 1;- Parameters:
value- The bytes for collectiveGroupLeader to set.- Returns:
- This builder for chaining.
-
getExecutorType
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;- Specified by:
getExecutorTypein interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The executorType.
-
getExecutorTypeBytes
public com.google.protobuf.ByteString getExecutorTypeBytes()Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;- Specified by:
getExecutorTypeBytesin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The bytes for executorType.
-
setExecutorType
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;- Parameters:
value- The executorType to set.- Returns:
- This builder for chaining.
-
clearExecutorType
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;- Returns:
- This builder for chaining.
-
setExecutorTypeBytes
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;- Parameters:
value- The bytes for executorType to set.- Returns:
- This builder for chaining.
-
getRecvBufMaxChunk
public int getRecvBufMaxChunk()Guidance to formatting of large RecvBuf fields for transfer. Any positive value sets the max chunk size. 0 defaults to 4096. Any negative value indicates no max, i.e. one chunk only.
int32 recv_buf_max_chunk = 4;- Specified by:
getRecvBufMaxChunkin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The recvBufMaxChunk.
-
setRecvBufMaxChunk
Guidance to formatting of large RecvBuf fields for transfer. Any positive value sets the max chunk size. 0 defaults to 4096. Any negative value indicates no max, i.e. one chunk only.
int32 recv_buf_max_chunk = 4;- Parameters:
value- The recvBufMaxChunk to set.- Returns:
- This builder for chaining.
-
clearRecvBufMaxChunk
Guidance to formatting of large RecvBuf fields for transfer. Any positive value sets the max chunk size. 0 defaults to 4096. Any negative value indicates no max, i.e. one chunk only.
int32 recv_buf_max_chunk = 4;- Returns:
- This builder for chaining.
-
getUseNumaAffinity
public boolean getUseNumaAffinity()If true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable. One consequence will be the existence of as many CPU devices as there are available NUMA nodes.
bool use_numa_affinity = 5;- Specified by:
getUseNumaAffinityin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The useNumaAffinity.
-
setUseNumaAffinity
If true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable. One consequence will be the existence of as many CPU devices as there are available NUMA nodes.
bool use_numa_affinity = 5;- Parameters:
value- The useNumaAffinity to set.- Returns:
- This builder for chaining.
-
clearUseNumaAffinity
If true, and supported by the platform, the runtime will attempt to use NUMA affinity where applicable. One consequence will be the existence of as many CPU devices as there are available NUMA nodes.
bool use_numa_affinity = 5;- Returns:
- This builder for chaining.
-
getCollectiveDeterministicSequentialExecution
public boolean getCollectiveDeterministicSequentialExecution()If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.
bool collective_deterministic_sequential_execution = 6;- Specified by:
getCollectiveDeterministicSequentialExecutionin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The collectiveDeterministicSequentialExecution.
-
setCollectiveDeterministicSequentialExecution
public ConfigProto.Experimental.Builder setCollectiveDeterministicSequentialExecution(boolean value) If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.
bool collective_deterministic_sequential_execution = 6;- Parameters:
value- The collectiveDeterministicSequentialExecution to set.- Returns:
- This builder for chaining.
-
clearCollectiveDeterministicSequentialExecution
If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.
bool collective_deterministic_sequential_execution = 6;- Returns:
- This builder for chaining.
-
getCollectiveNccl
public boolean getCollectiveNccl()If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;- Specified by:
getCollectiveNcclin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The collectiveNccl.
-
setCollectiveNccl
If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;- Parameters:
value- The collectiveNccl to set.- Returns:
- This builder for chaining.
-
clearCollectiveNccl
If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;- Returns:
- This builder for chaining.
-
getDisableThreadSpinning
public boolean getDisableThreadSpinning()If using a direct session, disable spinning while waiting for work in the thread pool. This may result in higher latency for completing ops, but in the case where there is a lot of spinning may result in lower CPU usage.
bool disable_thread_spinning = 9;- Specified by:
getDisableThreadSpinningin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The disableThreadSpinning.
-
setDisableThreadSpinning
If using a direct session, disable spinning while waiting for work in the thread pool. This may result in higher latency for completing ops, but in the case where there is a lot of spinning may result in lower CPU usage.
bool disable_thread_spinning = 9;- Parameters:
value- The disableThreadSpinning to set.- Returns:
- This builder for chaining.
-
clearDisableThreadSpinning
If using a direct session, disable spinning while waiting for work in the thread pool. This may result in higher latency for completing ops, but in the case where there is a lot of spinning may result in lower CPU usage.
bool disable_thread_spinning = 9;- Returns:
- This builder for chaining.
-
hasSessionMetadata
public boolean hasSessionMetadata()Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11;- Specified by:
hasSessionMetadatain interfaceConfigProto.ExperimentalOrBuilder- Returns:
- Whether the sessionMetadata field is set.
-
getSessionMetadata
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11;- Specified by:
getSessionMetadatain interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The sessionMetadata.
-
setSessionMetadata
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11; -
setSessionMetadata
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11; -
mergeSessionMetadata
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11; -
clearSessionMetadata
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11; -
getSessionMetadataBuilder
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11; -
getSessionMetadataOrBuilder
Metadata about the session. If set, this can be used by the runtime and the Ops for debugging, monitoring, etc. NOTE: This is currently used and propagated only by the direct session and EagerContext.
.tensorflow.SessionMetadata session_metadata = 11;- Specified by:
getSessionMetadataOrBuilderin interfaceConfigProto.ExperimentalOrBuilder
-
getOptimizeForStaticGraph
public boolean getOptimizeForStaticGraph()If true, the session may treat the graph as being static for optimization purposes. If this option is set to true when a session is created, the full GraphDef must be passed in a single call to Session::Create(), and Session::Extend() may not be supported.
bool optimize_for_static_graph = 12;- Specified by:
getOptimizeForStaticGraphin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The optimizeForStaticGraph.
-
setOptimizeForStaticGraph
If true, the session may treat the graph as being static for optimization purposes. If this option is set to true when a session is created, the full GraphDef must be passed in a single call to Session::Create(), and Session::Extend() may not be supported.
bool optimize_for_static_graph = 12;- Parameters:
value- The optimizeForStaticGraph to set.- Returns:
- This builder for chaining.
-
clearOptimizeForStaticGraph
If true, the session may treat the graph as being static for optimization purposes. If this option is set to true when a session is created, the full GraphDef must be passed in a single call to Session::Create(), and Session::Extend() may not be supported.
bool optimize_for_static_graph = 12;- Returns:
- This builder for chaining.
-
getEnableMlirBridge
public boolean getEnableMlirBridge()Whether to enable the MLIR-based TF->XLA bridge. This is only used if set to true. Default value or false is ignored. Use mlir_bridge_rollout for finer control. If this option is set to true when a session is created, MLIR is used to perform the set of graph transformations to put the graph in a form that can be executed with delegation of some computations to an accelerator. This builds on the model of XLA where a subset of the graph is encapsulated and attached to a "compile" operation, whose result is fed to an "execute" operation. The kernel for these operations is responsible to lower the encapsulated graph to a particular device.
bool enable_mlir_bridge = 13;- Specified by:
getEnableMlirBridgein interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The enableMlirBridge.
-
setEnableMlirBridge
Whether to enable the MLIR-based TF->XLA bridge. This is only used if set to true. Default value or false is ignored. Use mlir_bridge_rollout for finer control. If this option is set to true when a session is created, MLIR is used to perform the set of graph transformations to put the graph in a form that can be executed with delegation of some computations to an accelerator. This builds on the model of XLA where a subset of the graph is encapsulated and attached to a "compile" operation, whose result is fed to an "execute" operation. The kernel for these operations is responsible to lower the encapsulated graph to a particular device.
bool enable_mlir_bridge = 13;- Parameters:
value- The enableMlirBridge to set.- Returns:
- This builder for chaining.
-
clearEnableMlirBridge
Whether to enable the MLIR-based TF->XLA bridge. This is only used if set to true. Default value or false is ignored. Use mlir_bridge_rollout for finer control. If this option is set to true when a session is created, MLIR is used to perform the set of graph transformations to put the graph in a form that can be executed with delegation of some computations to an accelerator. This builds on the model of XLA where a subset of the graph is encapsulated and attached to a "compile" operation, whose result is fed to an "execute" operation. The kernel for these operations is responsible to lower the encapsulated graph to a particular device.
bool enable_mlir_bridge = 13;- Returns:
- This builder for chaining.
-
getMlirBridgeRolloutValue
public int getMlirBridgeRolloutValue()Whether to enable the MLIR-based TF->XLA bridge.
.tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17;- Specified by:
getMlirBridgeRolloutValuein interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The enum numeric value on the wire for mlirBridgeRollout.
-
setMlirBridgeRolloutValue
Whether to enable the MLIR-based TF->XLA bridge.
.tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17;- Parameters:
value- The enum numeric value on the wire for mlirBridgeRollout to set.- Returns:
- This builder for chaining.
-
getMlirBridgeRollout
Whether to enable the MLIR-based TF->XLA bridge.
.tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17;- Specified by:
getMlirBridgeRolloutin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The mlirBridgeRollout.
-
setMlirBridgeRollout
public ConfigProto.Experimental.Builder setMlirBridgeRollout(ConfigProto.Experimental.MlirBridgeRollout value) Whether to enable the MLIR-based TF->XLA bridge.
.tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17;- Parameters:
value- The mlirBridgeRollout to set.- Returns:
- This builder for chaining.
-
clearMlirBridgeRollout
Whether to enable the MLIR-based TF->XLA bridge.
.tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17;- Returns:
- This builder for chaining.
-
getEnableMlirGraphOptimization
public boolean getEnableMlirGraphOptimization()Whether to enable the MLIR-based Graph optimizations. This will become a part of standard Tensorflow graph optimization pipeline, currently this is only used for gradual migration and testing new passes that are replacing existing optimizations in Grappler.
bool enable_mlir_graph_optimization = 16;- Specified by:
getEnableMlirGraphOptimizationin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The enableMlirGraphOptimization.
-
setEnableMlirGraphOptimization
Whether to enable the MLIR-based Graph optimizations. This will become a part of standard Tensorflow graph optimization pipeline, currently this is only used for gradual migration and testing new passes that are replacing existing optimizations in Grappler.
bool enable_mlir_graph_optimization = 16;- Parameters:
value- The enableMlirGraphOptimization to set.- Returns:
- This builder for chaining.
-
clearEnableMlirGraphOptimization
Whether to enable the MLIR-based Graph optimizations. This will become a part of standard Tensorflow graph optimization pipeline, currently this is only used for gradual migration and testing new passes that are replacing existing optimizations in Grappler.
bool enable_mlir_graph_optimization = 16;- Returns:
- This builder for chaining.
-
getDisableOutputPartitionGraphs
public boolean getDisableOutputPartitionGraphs()If true, the session will not store an additional copy of the graph for each subgraph. If this option is set to true when a session is created, the `RunOptions.output_partition_graphs` options must not be set.
bool disable_output_partition_graphs = 14;- Specified by:
getDisableOutputPartitionGraphsin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The disableOutputPartitionGraphs.
-
setDisableOutputPartitionGraphs
If true, the session will not store an additional copy of the graph for each subgraph. If this option is set to true when a session is created, the `RunOptions.output_partition_graphs` options must not be set.
bool disable_output_partition_graphs = 14;- Parameters:
value- The disableOutputPartitionGraphs to set.- Returns:
- This builder for chaining.
-
clearDisableOutputPartitionGraphs
If true, the session will not store an additional copy of the graph for each subgraph. If this option is set to true when a session is created, the `RunOptions.output_partition_graphs` options must not be set.
bool disable_output_partition_graphs = 14;- Returns:
- This builder for chaining.
-
getXlaFusionAutotunerThresh
public long getXlaFusionAutotunerThresh()Minimum number of batches run through the XLA graph before XLA fusion autotuner is enabled. Default value of zero disables the autotuner. The XLA fusion autotuner can improve performance by executing a heuristic search on the compiler parameters.
int64 xla_fusion_autotuner_thresh = 15;- Specified by:
getXlaFusionAutotunerThreshin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The xlaFusionAutotunerThresh.
-
setXlaFusionAutotunerThresh
Minimum number of batches run through the XLA graph before XLA fusion autotuner is enabled. Default value of zero disables the autotuner. The XLA fusion autotuner can improve performance by executing a heuristic search on the compiler parameters.
int64 xla_fusion_autotuner_thresh = 15;- Parameters:
value- The xlaFusionAutotunerThresh to set.- Returns:
- This builder for chaining.
-
clearXlaFusionAutotunerThresh
Minimum number of batches run through the XLA graph before XLA fusion autotuner is enabled. Default value of zero disables the autotuner. The XLA fusion autotuner can improve performance by executing a heuristic search on the compiler parameters.
int64 xla_fusion_autotuner_thresh = 15;- Returns:
- This builder for chaining.
-
getUseTfrt
public boolean getUseTfrt()Whether runtime execution uses TFRT.
bool use_tfrt = 18;- Specified by:
getUseTfrtin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The useTfrt.
-
setUseTfrt
Whether runtime execution uses TFRT.
bool use_tfrt = 18;- Parameters:
value- The useTfrt to set.- Returns:
- This builder for chaining.
-
clearUseTfrt
Whether runtime execution uses TFRT.
bool use_tfrt = 18;- Returns:
- This builder for chaining.
-
getEnableMultiHost
public boolean getEnableMultiHost()If true, use Pathways with TFRT API for multi host support.
bool enable_multi_host = 27;- Specified by:
getEnableMultiHostin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The enableMultiHost.
-
setEnableMultiHost
If true, use Pathways with TFRT API for multi host support.
bool enable_multi_host = 27;- Parameters:
value- The enableMultiHost to set.- Returns:
- This builder for chaining.
-
clearEnableMultiHost
If true, use Pathways with TFRT API for multi host support.
bool enable_multi_host = 27;- Returns:
- This builder for chaining.
-
getTfrtUseIfrt
public boolean getTfrtUseIfrt()If true, use ifrt as the backend for TFRT. This is only used when `use_tfrt` is true.
bool tfrt_use_ifrt = 32;- Specified by:
getTfrtUseIfrtin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The tfrtUseIfrt.
-
setTfrtUseIfrt
If true, use ifrt as the backend for TFRT. This is only used when `use_tfrt` is true.
bool tfrt_use_ifrt = 32;- Parameters:
value- The tfrtUseIfrt to set.- Returns:
- This builder for chaining.
-
clearTfrtUseIfrt
If true, use ifrt as the backend for TFRT. This is only used when `use_tfrt` is true.
bool tfrt_use_ifrt = 32;- Returns:
- This builder for chaining.
-
getBackendServerPort
public int getBackendServerPort()Port for the Pathways server. Ignored if enable_multi_host=false.
int32 backend_server_port = 28;- Specified by:
getBackendServerPortin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The backendServerPort.
-
setBackendServerPort
Port for the Pathways server. Ignored if enable_multi_host=false.
int32 backend_server_port = 28;- Parameters:
value- The backendServerPort to set.- Returns:
- This builder for chaining.
-
clearBackendServerPort
Port for the Pathways server. Ignored if enable_multi_host=false.
int32 backend_server_port = 28;- Returns:
- This builder for chaining.
-
getTargetTpu
public boolean getTargetTpu()If true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.
bool target_tpu = 29;- Specified by:
getTargetTpuin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The targetTpu.
-
setTargetTpu
If true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.
bool target_tpu = 29;- Parameters:
value- The targetTpu to set.- Returns:
- This builder for chaining.
-
clearTargetTpu
If true, TFRT will use TPU specific compiler passes and perform TPU specific initialization.
bool target_tpu = 29;- Returns:
- This builder for chaining.
-
getTargetGpu
public boolean getTargetGpu()If true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.
bool target_gpu = 30;- Specified by:
getTargetGpuin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The targetGpu.
-
setTargetGpu
If true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.
bool target_gpu = 30;- Parameters:
value- The targetGpu to set.- Returns:
- This builder for chaining.
-
clearTargetGpu
If true, TFRT will use GPU specific compiler passes and perform GPU specific initialization.
bool target_gpu = 30;- Returns:
- This builder for chaining.
-
getStreamMergeThreshold
public int getStreamMergeThreshold()The threshold to merge small streams in TFRT. The stream with cost smaller than the threshold will be merged. Setting it to value 1 disables all merges.
int32 stream_merge_threshold = 31;- Specified by:
getStreamMergeThresholdin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The streamMergeThreshold.
-
setStreamMergeThreshold
The threshold to merge small streams in TFRT. The stream with cost smaller than the threshold will be merged. Setting it to value 1 disables all merges.
int32 stream_merge_threshold = 31;- Parameters:
value- The streamMergeThreshold to set.- Returns:
- This builder for chaining.
-
clearStreamMergeThreshold
The threshold to merge small streams in TFRT. The stream with cost smaller than the threshold will be merged. Setting it to value 1 disables all merges.
int32 stream_merge_threshold = 31;- Returns:
- This builder for chaining.
-
getDisableFunctionalOpsLowering
public boolean getDisableFunctionalOpsLowering()Whether functional control flow op lowering should be disabled. This is useful when executing within a portable runtime where control flow op kernels may not be loaded due to selective registration.
bool disable_functional_ops_lowering = 21;- Specified by:
getDisableFunctionalOpsLoweringin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The disableFunctionalOpsLowering.
-
setDisableFunctionalOpsLowering
Whether functional control flow op lowering should be disabled. This is useful when executing within a portable runtime where control flow op kernels may not be loaded due to selective registration.
bool disable_functional_ops_lowering = 21;- Parameters:
value- The disableFunctionalOpsLowering to set.- Returns:
- This builder for chaining.
-
clearDisableFunctionalOpsLowering
Whether functional control flow op lowering should be disabled. This is useful when executing within a portable runtime where control flow op kernels may not be loaded due to selective registration.
bool disable_functional_ops_lowering = 21;- Returns:
- This builder for chaining.
-
getXlaPreferSingleGraphCluster
public boolean getXlaPreferSingleGraphCluster()Provides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.
bool xla_prefer_single_graph_cluster = 22;- Specified by:
getXlaPreferSingleGraphClusterin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The xlaPreferSingleGraphCluster.
-
setXlaPreferSingleGraphCluster
Provides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.
bool xla_prefer_single_graph_cluster = 22;- Parameters:
value- The xlaPreferSingleGraphCluster to set.- Returns:
- This builder for chaining.
-
clearXlaPreferSingleGraphCluster
Provides a hint to XLA auto clustering to prefer forming a single large cluster that encompases most of the graph.
bool xla_prefer_single_graph_cluster = 22;- Returns:
- This builder for chaining.
-
hasCoordinationConfig
public boolean hasCoordinationConfig()Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23;- Specified by:
hasCoordinationConfigin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- Whether the coordinationConfig field is set.
-
getCoordinationConfig
Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23;- Specified by:
getCoordinationConfigin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The coordinationConfig.
-
setCoordinationConfig
public ConfigProto.Experimental.Builder setCoordinationConfig(CoordinationConfig.CoordinationServiceConfig value) Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23; -
setCoordinationConfig
public ConfigProto.Experimental.Builder setCoordinationConfig(CoordinationConfig.CoordinationServiceConfig.Builder builderForValue) Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23; -
mergeCoordinationConfig
public ConfigProto.Experimental.Builder mergeCoordinationConfig(CoordinationConfig.CoordinationServiceConfig value) Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23; -
clearCoordinationConfig
Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23; -
getCoordinationConfigBuilder
Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23; -
getCoordinationConfigOrBuilder
Distributed coordination service configurations.
.tensorflow.CoordinationServiceConfig coordination_config = 23;- Specified by:
getCoordinationConfigOrBuilderin interfaceConfigProto.ExperimentalOrBuilder
-
getDisableOptimizeForStaticGraph
public boolean getDisableOptimizeForStaticGraph()If true, the session will treat the graph as being non-static for optimization purposes. If this option is set to true when a session is created, the full GraphDef will be retained to enable calls to Session::Extend(). Calling Extend() without setting this flag will result in errors. This option is meant to replace `optimize_for_static_graph` and it aims to negate its value.
bool disable_optimize_for_static_graph = 24;- Specified by:
getDisableOptimizeForStaticGraphin interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The disableOptimizeForStaticGraph.
-
setDisableOptimizeForStaticGraph
If true, the session will treat the graph as being non-static for optimization purposes. If this option is set to true when a session is created, the full GraphDef will be retained to enable calls to Session::Extend(). Calling Extend() without setting this flag will result in errors. This option is meant to replace `optimize_for_static_graph` and it aims to negate its value.
bool disable_optimize_for_static_graph = 24;- Parameters:
value- The disableOptimizeForStaticGraph to set.- Returns:
- This builder for chaining.
-
clearDisableOptimizeForStaticGraph
If true, the session will treat the graph as being non-static for optimization purposes. If this option is set to true when a session is created, the full GraphDef will be retained to enable calls to Session::Extend(). Calling Extend() without setting this flag will result in errors. This option is meant to replace `optimize_for_static_graph` and it aims to negate its value.
bool disable_optimize_for_static_graph = 24;- Returns:
- This builder for chaining.
-
getDisableEagerExecutorStreamingEnqueue
public boolean getDisableEagerExecutorStreamingEnqueue()Whether eager remote execution will stream all the function calls or allow them to happen in parallel. When true, streaming execution is disabled, and parallel execution is allowed.
bool disable_eager_executor_streaming_enqueue = 26;- Specified by:
getDisableEagerExecutorStreamingEnqueuein interfaceConfigProto.ExperimentalOrBuilder- Returns:
- The disableEagerExecutorStreamingEnqueue.
-
setDisableEagerExecutorStreamingEnqueue
Whether eager remote execution will stream all the function calls or allow them to happen in parallel. When true, streaming execution is disabled, and parallel execution is allowed.
bool disable_eager_executor_streaming_enqueue = 26;- Parameters:
value- The disableEagerExecutorStreamingEnqueue to set.- Returns:
- This builder for chaining.
-
clearDisableEagerExecutorStreamingEnqueue
Whether eager remote execution will stream all the function calls or allow them to happen in parallel. When true, streaming execution is disabled, and parallel execution is allowed.
bool disable_eager_executor_streaming_enqueue = 26;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ConfigProto.Experimental.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-
mergeUnknownFields
public final ConfigProto.Experimental.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
-