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
Modifier and Type | Method and Description |
---|---|
ConfigProto.Experimental.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigProto.Experimental |
build() |
ConfigProto.Experimental |
buildPartial() |
ConfigProto.Experimental.Builder |
clear() |
ConfigProto.Experimental.Builder |
clearCollectiveDeterministicSequentialExecution()
If true, make collective op execution order sequential and deterministic
for potentially concurrent collective instances.
|
ConfigProto.Experimental.Builder |
clearCollectiveGroupLeader()
Task name for group resolution.
|
ConfigProto.Experimental.Builder |
clearCollectiveNccl()
If true, use NCCL for CollectiveOps.
|
ConfigProto.Experimental.Builder |
clearDisableThreadSpinning()
If using a direct session, disable spinning while waiting for work in
the thread pool.
|
ConfigProto.Experimental.Builder |
clearExecutorType()
Which executor to use, the default executor will be used
if it is an empty string or "DEFAULT"
|
ConfigProto.Experimental.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ConfigProto.Experimental.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ConfigProto.Experimental.Builder |
clearRecvBufMaxChunk()
Guidance to formatting of large RecvBuf fields for transfer.
|
ConfigProto.Experimental.Builder |
clearShareClusterDevicesInSession()
When true, WorkerSessions are created with device attributes from the
full cluster.
|
ConfigProto.Experimental.Builder |
clearShareSessionStateInClusterspecPropagation()
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.
|
ConfigProto.Experimental.Builder |
clearUseNumaAffinity()
If true, and supported by the platform, the runtime will attempt to
use NUMA affinity where applicable.
|
ConfigProto.Experimental.Builder |
clone() |
boolean |
getCollectiveDeterministicSequentialExecution()
If true, make collective op execution order sequential and deterministic
for potentially concurrent collective instances.
|
String |
getCollectiveGroupLeader()
Task name for group resolution.
|
com.google.protobuf.ByteString |
getCollectiveGroupLeaderBytes()
Task name for group resolution.
|
boolean |
getCollectiveNccl()
If true, use NCCL for CollectiveOps.
|
ConfigProto.Experimental |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableThreadSpinning()
If using a direct session, disable spinning while waiting for work in
the thread pool.
|
String |
getExecutorType()
Which executor to use, the default executor will be used
if it is an empty string or "DEFAULT"
|
com.google.protobuf.ByteString |
getExecutorTypeBytes()
Which executor to use, the default executor will be used
if it is an empty string or "DEFAULT"
|
int |
getRecvBufMaxChunk()
Guidance to formatting of large RecvBuf fields for transfer.
|
boolean |
getShareClusterDevicesInSession()
When true, WorkerSessions are created with device attributes from the
full cluster.
|
boolean |
getShareSessionStateInClusterspecPropagation()
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.
|
boolean |
getUseNumaAffinity()
If true, and supported by the platform, the runtime will attempt to
use NUMA affinity where applicable.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ConfigProto.Experimental.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ConfigProto.Experimental.Builder |
mergeFrom(ConfigProto.Experimental other) |
ConfigProto.Experimental.Builder |
mergeFrom(com.google.protobuf.Message other) |
ConfigProto.Experimental.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConfigProto.Experimental.Builder |
setCollectiveDeterministicSequentialExecution(boolean value)
If true, make collective op execution order sequential and deterministic
for potentially concurrent collective instances.
|
ConfigProto.Experimental.Builder |
setCollectiveGroupLeader(String value)
Task name for group resolution.
|
ConfigProto.Experimental.Builder |
setCollectiveGroupLeaderBytes(com.google.protobuf.ByteString value)
Task name for group resolution.
|
ConfigProto.Experimental.Builder |
setCollectiveNccl(boolean value)
If true, use NCCL for CollectiveOps.
|
ConfigProto.Experimental.Builder |
setDisableThreadSpinning(boolean value)
If using a direct session, disable spinning while waiting for work in
the thread pool.
|
ConfigProto.Experimental.Builder |
setExecutorType(String value)
Which executor to use, the default executor will be used
if it is an empty string or "DEFAULT"
|
ConfigProto.Experimental.Builder |
setExecutorTypeBytes(com.google.protobuf.ByteString value)
Which executor to use, the default executor will be used
if it is an empty string or "DEFAULT"
|
ConfigProto.Experimental.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigProto.Experimental.Builder |
setRecvBufMaxChunk(int value)
Guidance to formatting of large RecvBuf fields for transfer.
|
ConfigProto.Experimental.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ConfigProto.Experimental.Builder |
setShareClusterDevicesInSession(boolean value)
When true, WorkerSessions are created with device attributes from the
full cluster.
|
ConfigProto.Experimental.Builder |
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.
|
ConfigProto.Experimental.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConfigProto.Experimental.Builder |
setUseNumaAffinity(boolean value)
If true, and supported by the platform, the runtime will attempt to
use NUMA affinity where applicable.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ConfigProto.Experimental build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ConfigProto.Experimental buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ConfigProto.Experimental.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder mergeFrom(ConfigProto.Experimental other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public ConfigProto.Experimental.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ConfigProto.Experimental.Builder>
IOException
public String getCollectiveGroupLeader()
Task name for group resolution.
string collective_group_leader = 1;
getCollectiveGroupLeader
in interface ConfigProto.ExperimentalOrBuilder
public com.google.protobuf.ByteString getCollectiveGroupLeaderBytes()
Task name for group resolution.
string collective_group_leader = 1;
getCollectiveGroupLeaderBytes
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setCollectiveGroupLeader(String value)
Task name for group resolution.
string collective_group_leader = 1;
public ConfigProto.Experimental.Builder clearCollectiveGroupLeader()
Task name for group resolution.
string collective_group_leader = 1;
public ConfigProto.Experimental.Builder setCollectiveGroupLeaderBytes(com.google.protobuf.ByteString value)
Task name for group resolution.
string collective_group_leader = 1;
public String getExecutorType()
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;
getExecutorType
in interface ConfigProto.ExperimentalOrBuilder
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;
getExecutorTypeBytes
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setExecutorType(String value)
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;
public ConfigProto.Experimental.Builder clearExecutorType()
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;
public ConfigProto.Experimental.Builder setExecutorTypeBytes(com.google.protobuf.ByteString value)
Which executor to use, the default executor will be used if it is an empty string or "DEFAULT"
string executor_type = 3;
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;
getRecvBufMaxChunk
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setRecvBufMaxChunk(int value)
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;
public ConfigProto.Experimental.Builder 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;
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;
getUseNumaAffinity
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setUseNumaAffinity(boolean value)
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;
public ConfigProto.Experimental.Builder 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;
public boolean getCollectiveDeterministicSequentialExecution()
If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.
bool collective_deterministic_sequential_execution = 6;
getCollectiveDeterministicSequentialExecution
in interface ConfigProto.ExperimentalOrBuilder
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;
public ConfigProto.Experimental.Builder clearCollectiveDeterministicSequentialExecution()
If true, make collective op execution order sequential and deterministic for potentially concurrent collective instances.
bool collective_deterministic_sequential_execution = 6;
public boolean getCollectiveNccl()
If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;
getCollectiveNccl
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setCollectiveNccl(boolean value)
If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;
public ConfigProto.Experimental.Builder clearCollectiveNccl()
If true, use NCCL for CollectiveOps. This feature is highly experimental.
bool collective_nccl = 7;
public boolean getShareSessionStateInClusterspecPropagation()
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. When ClusterSpec propagation is enabled, the value of isolate_session_state is ignored when deciding whether to share session states in a TF server (for backwards compatibility reasons). - If share_session_state_in_clusterspec_propagation is true, the session states are shared. - If share_session_state_in_clusterspec_propagation is false, session states are isolated. When clusterspec propagation is not used, the value of share_session_state_in_clusterspec_propagation is ignored when deciding whether to share session states in a TF server. - If isolate_session_state is true, session states are isolated. - If isolate_session_state is false, session states are shared. TODO(b/129330037): Add a single API that consistently treats isolate_session_state and ClusterSpec propagation.
bool share_session_state_in_clusterspec_propagation = 8;
getShareSessionStateInClusterspecPropagation
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder 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. When ClusterSpec propagation is enabled, the value of isolate_session_state is ignored when deciding whether to share session states in a TF server (for backwards compatibility reasons). - If share_session_state_in_clusterspec_propagation is true, the session states are shared. - If share_session_state_in_clusterspec_propagation is false, session states are isolated. When clusterspec propagation is not used, the value of share_session_state_in_clusterspec_propagation is ignored when deciding whether to share session states in a TF server. - If isolate_session_state is true, session states are isolated. - If isolate_session_state is false, session states are shared. TODO(b/129330037): Add a single API that consistently treats isolate_session_state and ClusterSpec propagation.
bool share_session_state_in_clusterspec_propagation = 8;
public ConfigProto.Experimental.Builder clearShareSessionStateInClusterspecPropagation()
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. When ClusterSpec propagation is enabled, the value of isolate_session_state is ignored when deciding whether to share session states in a TF server (for backwards compatibility reasons). - If share_session_state_in_clusterspec_propagation is true, the session states are shared. - If share_session_state_in_clusterspec_propagation is false, session states are isolated. When clusterspec propagation is not used, the value of share_session_state_in_clusterspec_propagation is ignored when deciding whether to share session states in a TF server. - If isolate_session_state is true, session states are isolated. - If isolate_session_state is false, session states are shared. TODO(b/129330037): Add a single API that consistently treats isolate_session_state and ClusterSpec propagation.
bool share_session_state_in_clusterspec_propagation = 8;
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;
getDisableThreadSpinning
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setDisableThreadSpinning(boolean value)
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;
public ConfigProto.Experimental.Builder 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;
public boolean getShareClusterDevicesInSession()
When true, WorkerSessions are created with device attributes from the full cluster. This is helpful when a worker wants to partition a graph (for example during a PartitionedCallOp).
bool share_cluster_devices_in_session = 10;
getShareClusterDevicesInSession
in interface ConfigProto.ExperimentalOrBuilder
public ConfigProto.Experimental.Builder setShareClusterDevicesInSession(boolean value)
When true, WorkerSessions are created with device attributes from the full cluster. This is helpful when a worker wants to partition a graph (for example during a PartitionedCallOp).
bool share_cluster_devices_in_session = 10;
public ConfigProto.Experimental.Builder clearShareClusterDevicesInSession()
When true, WorkerSessions are created with device attributes from the full cluster. This is helpful when a worker wants to partition a graph (for example during a PartitionedCallOp).
bool share_cluster_devices_in_session = 10;
public final ConfigProto.Experimental.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
public final ConfigProto.Experimental.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Experimental.Builder>
Copyright © 2015–2019. All rights reserved.