Package org.tensorflow.framework
Class ConfigProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ConfigProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
org.tensorflow.framework.ConfigProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ConfigProtoOrBuilder
- Enclosing class:
ConfigProto
public static final class ConfigProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
implements ConfigProtoOrBuilder
Session configuration parameters. The system picks appropriate values for fields that are not set.Protobuf type
tensorflow.ConfigProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllDeviceFilters(Iterable<String> values) When any filters are present sessions will ignore all devices which do not match the filters.addAllSessionInterOpThreadPool(Iterable<? extends ThreadPoolOptionProto> values) This option is experimental - it may be replaced with a different mechanism in the future.addDeviceFilters(String value) When any filters are present sessions will ignore all devices which do not match the filters.addDeviceFiltersBytes(com.google.protobuf.ByteString value) When any filters are present sessions will ignore all devices which do not match the filters.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSessionInterOpThreadPool(int index, ThreadPoolOptionProto value) This option is experimental - it may be replaced with a different mechanism in the future.addSessionInterOpThreadPool(int index, ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future.This option is experimental - it may be replaced with a different mechanism in the future.addSessionInterOpThreadPool(ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future.This option is experimental - it may be replaced with a different mechanism in the future.addSessionInterOpThreadPoolBuilder(int index) This option is experimental - it may be replaced with a different mechanism in the future.build()clear()Whether soft placement is allowed.Optional list of all workers to use in this session.When any filters are present sessions will ignore all devices which do not match the filters..tensorflow.ConfigProto.Experimental experimental = 16;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Options that apply to all GPUs.Options that apply to all graphs.Nodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number.The execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number.If true, any resources such as Variables used in the session will not be shared with other sessions.Whether device placements should be logged.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Global timeout for all blocking operations in this session.Assignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).Options that apply to pluggable devices.Options that apply when this session uses the distributed runtime.This option is experimental - it may be replaced with a different mechanism in the future.When true, WorkerSessions are created with device attributes from the full cluster.If true, use a new set of threads for this session rather than the global pool of threads.clone()booleanMap from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.booleanWhether soft placement is allowed.Optional list of all workers to use in this session.Optional list of all workers to use in this session.Optional list of all workers to use in this session.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMap from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.intgetDeviceCountOrDefault(String key, int defaultValue) Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.intMap from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.getDeviceFilters(int index) When any filters are present sessions will ignore all devices which do not match the filters.com.google.protobuf.ByteStringgetDeviceFiltersBytes(int index) When any filters are present sessions will ignore all devices which do not match the filters.intWhen any filters are present sessions will ignore all devices which do not match the filters.com.google.protobuf.ProtocolStringListWhen any filters are present sessions will ignore all devices which do not match the filters..tensorflow.ConfigProto.Experimental experimental = 16;.tensorflow.ConfigProto.Experimental experimental = 16;.tensorflow.ConfigProto.Experimental experimental = 16;Options that apply to all GPUs.Options that apply to all GPUs.Options that apply to all GPUs.Options that apply to all graphs.Options that apply to all graphs.Options that apply to all graphs.intNodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number.intThe execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number.booleanIf true, any resources such as Variables used in the session will not be shared with other sessions.booleanWhether device placements should be logged.Deprecated.longGlobal timeout for all blocking operations in this session.intAssignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).Options that apply to pluggable devices.Options that apply to pluggable devices.Options that apply to pluggable devices.Options that apply when this session uses the distributed runtime.Options that apply when this session uses the distributed runtime.Options that apply when this session uses the distributed runtime.getSessionInterOpThreadPool(int index) This option is experimental - it may be replaced with a different mechanism in the future.getSessionInterOpThreadPoolBuilder(int index) This option is experimental - it may be replaced with a different mechanism in the future.This option is experimental - it may be replaced with a different mechanism in the future.intThis option is experimental - it may be replaced with a different mechanism in the future.This option is experimental - it may be replaced with a different mechanism in the future.getSessionInterOpThreadPoolOrBuilder(int index) This option is experimental - it may be replaced with a different mechanism in the future.List<? extends ThreadPoolOptionProtoOrBuilder> This option is experimental - it may be replaced with a different mechanism in the future.booleanWhen true, WorkerSessions are created with device attributes from the full cluster.booleanIf true, use a new set of threads for this session rather than the global pool of threads.booleanOptional list of all workers to use in this session.boolean.tensorflow.ConfigProto.Experimental experimental = 16;booleanOptions that apply to all GPUs.booleanOptions that apply to all graphs.booleanOptions that apply to pluggable devices.booleanOptions that apply when this session uses the distributed runtime.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeClusterDef(ClusterDef value) Optional list of all workers to use in this session..tensorflow.ConfigProto.Experimental experimental = 16;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ConfigProto other) mergeGpuOptions(GPUOptions value) Options that apply to all GPUs.mergeGraphOptions(GraphOptions value) Options that apply to all graphs.Options that apply to pluggable devices.Options that apply when this session uses the distributed runtime.final ConfigProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllDeviceCount(Map<String, Integer> values) Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.putDeviceCount(String key, int value) Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.removeDeviceCount(String key) Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use.removeSessionInterOpThreadPool(int index) This option is experimental - it may be replaced with a different mechanism in the future.setAllowSoftPlacement(boolean value) Whether soft placement is allowed.setClusterDef(ClusterDef value) Optional list of all workers to use in this session.setClusterDef(ClusterDef.Builder builderForValue) Optional list of all workers to use in this session.setDeviceFilters(int index, String value) When any filters are present sessions will ignore all devices which do not match the filters..tensorflow.ConfigProto.Experimental experimental = 16;setExperimental(ConfigProto.Experimental.Builder builderForValue) .tensorflow.ConfigProto.Experimental experimental = 16;setGpuOptions(GPUOptions value) Options that apply to all GPUs.setGpuOptions(GPUOptions.Builder builderForValue) Options that apply to all GPUs.setGraphOptions(GraphOptions value) Options that apply to all graphs.setGraphOptions(GraphOptions.Builder builderForValue) Options that apply to all graphs.setInterOpParallelismThreads(int value) Nodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number.setIntraOpParallelismThreads(int value) The execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number.setIsolateSessionState(boolean value) If true, any resources such as Variables used in the session will not be shared with other sessions.setLogDevicePlacement(boolean value) Whether device placements should be logged.setOperationTimeoutInMs(long value) Global timeout for all blocking operations in this session.setPlacementPeriod(int value) Assignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).Options that apply to pluggable devices.setPluggableDeviceOptions(GPUOptions.Builder builderForValue) Options that apply to pluggable devices.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Options that apply when this session uses the distributed runtime.setRpcOptions(RpcOptions.RPCOptions.Builder builderForValue) Options that apply when this session uses the distributed runtime.setSessionInterOpThreadPool(int index, ThreadPoolOptionProto value) This option is experimental - it may be replaced with a different mechanism in the future.setSessionInterOpThreadPool(int index, ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future.setShareClusterDevicesInSession(boolean value) When true, WorkerSessions are created with device attributes from the full cluster.final ConfigProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUsePerSessionThreads(boolean value) If true, use a new set of threads for this session rather than the global pool of threads.Methods inherited from class com.google.protobuf.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 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.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.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.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.Builder>
-
setField
public ConfigProto.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.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
setRepeatedField
public ConfigProto.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.Builder>
-
addRepeatedField
public ConfigProto.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.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
mergeFrom
public ConfigProto.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.Builder>- Throws:
IOException
-
getDeviceCountCount
public int getDeviceCountCount()Description copied from interface:ConfigProtoOrBuilderMap from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1;- Specified by:
getDeviceCountCountin interfaceConfigProtoOrBuilder
-
containsDeviceCount
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1;- Specified by:
containsDeviceCountin interfaceConfigProtoOrBuilder
-
getDeviceCount
Deprecated.UsegetDeviceCountMap()instead.- Specified by:
getDeviceCountin interfaceConfigProtoOrBuilder
-
getDeviceCountMap
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1;- Specified by:
getDeviceCountMapin interfaceConfigProtoOrBuilder
-
getDeviceCountOrDefault
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1;- Specified by:
getDeviceCountOrDefaultin interfaceConfigProtoOrBuilder
-
getDeviceCountOrThrow
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1;- Specified by:
getDeviceCountOrThrowin interfaceConfigProtoOrBuilder
-
clearDeviceCount
-
removeDeviceCount
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1; -
getMutableDeviceCount
Deprecated.Use alternate mutation accessors instead. -
putDeviceCount
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1; -
putAllDeviceCount
Map from device type name (e.g., "CPU" or "GPU" ) to maximum number of devices of that type to use. If a particular device type is not found in the map, the system picks an appropriate number.
map<string, int32> device_count = 1; -
getIntraOpParallelismThreads
public int getIntraOpParallelismThreads()The execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number. If you create an ordinary session, e.g., from Python or C++, then there is exactly one intra op thread pool per process. The first session created determines the number of threads in this pool. All subsequent sessions reuse/share this one global pool. There are notable exceptions to the default behavior described above: 1. There is an environment variable for overriding this thread pool, named TF_OVERRIDE_GLOBAL_THREADPOOL. 2. When connecting to a server, such as a remote `tf.train.Server` instance, then this option will be ignored altogether.int32 intra_op_parallelism_threads = 2;- Specified by:
getIntraOpParallelismThreadsin interfaceConfigProtoOrBuilder- Returns:
- The intraOpParallelismThreads.
-
setIntraOpParallelismThreads
The execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number. If you create an ordinary session, e.g., from Python or C++, then there is exactly one intra op thread pool per process. The first session created determines the number of threads in this pool. All subsequent sessions reuse/share this one global pool. There are notable exceptions to the default behavior described above: 1. There is an environment variable for overriding this thread pool, named TF_OVERRIDE_GLOBAL_THREADPOOL. 2. When connecting to a server, such as a remote `tf.train.Server` instance, then this option will be ignored altogether.int32 intra_op_parallelism_threads = 2;- Parameters:
value- The intraOpParallelismThreads to set.- Returns:
- This builder for chaining.
-
clearIntraOpParallelismThreads
The execution of an individual op (for some op types) can be parallelized on a pool of intra_op_parallelism_threads. 0 means the system picks an appropriate number. If you create an ordinary session, e.g., from Python or C++, then there is exactly one intra op thread pool per process. The first session created determines the number of threads in this pool. All subsequent sessions reuse/share this one global pool. There are notable exceptions to the default behavior described above: 1. There is an environment variable for overriding this thread pool, named TF_OVERRIDE_GLOBAL_THREADPOOL. 2. When connecting to a server, such as a remote `tf.train.Server` instance, then this option will be ignored altogether.int32 intra_op_parallelism_threads = 2;- Returns:
- This builder for chaining.
-
getInterOpParallelismThreads
public int getInterOpParallelismThreads()Nodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number. Negative means all operations are performed in caller's thread. Note that the first Session created in the process sets the number of threads for all future sessions unless use_per_session_threads is true or session_inter_op_thread_pool is configured.
int32 inter_op_parallelism_threads = 5;- Specified by:
getInterOpParallelismThreadsin interfaceConfigProtoOrBuilder- Returns:
- The interOpParallelismThreads.
-
setInterOpParallelismThreads
Nodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number. Negative means all operations are performed in caller's thread. Note that the first Session created in the process sets the number of threads for all future sessions unless use_per_session_threads is true or session_inter_op_thread_pool is configured.
int32 inter_op_parallelism_threads = 5;- Parameters:
value- The interOpParallelismThreads to set.- Returns:
- This builder for chaining.
-
clearInterOpParallelismThreads
Nodes that perform blocking operations are enqueued on a pool of inter_op_parallelism_threads available in each process. 0 means the system picks an appropriate number. Negative means all operations are performed in caller's thread. Note that the first Session created in the process sets the number of threads for all future sessions unless use_per_session_threads is true or session_inter_op_thread_pool is configured.
int32 inter_op_parallelism_threads = 5;- Returns:
- This builder for chaining.
-
getUsePerSessionThreads
public boolean getUsePerSessionThreads()If true, use a new set of threads for this session rather than the global pool of threads. Only supported by direct sessions. If false, use the global threads created by the first session, or the per-session thread pools configured by session_inter_op_thread_pool. This option is deprecated. The same effect can be achieved by setting session_inter_op_thread_pool to have one element, whose num_threads equals inter_op_parallelism_threads.
bool use_per_session_threads = 9;- Specified by:
getUsePerSessionThreadsin interfaceConfigProtoOrBuilder- Returns:
- The usePerSessionThreads.
-
setUsePerSessionThreads
If true, use a new set of threads for this session rather than the global pool of threads. Only supported by direct sessions. If false, use the global threads created by the first session, or the per-session thread pools configured by session_inter_op_thread_pool. This option is deprecated. The same effect can be achieved by setting session_inter_op_thread_pool to have one element, whose num_threads equals inter_op_parallelism_threads.
bool use_per_session_threads = 9;- Parameters:
value- The usePerSessionThreads to set.- Returns:
- This builder for chaining.
-
clearUsePerSessionThreads
If true, use a new set of threads for this session rather than the global pool of threads. Only supported by direct sessions. If false, use the global threads created by the first session, or the per-session thread pools configured by session_inter_op_thread_pool. This option is deprecated. The same effect can be achieved by setting session_inter_op_thread_pool to have one element, whose num_threads equals inter_op_parallelism_threads.
bool use_per_session_threads = 9;- Returns:
- This builder for chaining.
-
getSessionInterOpThreadPoolList
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;- Specified by:
getSessionInterOpThreadPoolListin interfaceConfigProtoOrBuilder
-
getSessionInterOpThreadPoolCount
public int getSessionInterOpThreadPoolCount()This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;- Specified by:
getSessionInterOpThreadPoolCountin interfaceConfigProtoOrBuilder
-
getSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;- Specified by:
getSessionInterOpThreadPoolin interfaceConfigProtoOrBuilder
-
setSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
setSessionInterOpThreadPool
public ConfigProto.Builder setSessionInterOpThreadPool(int index, ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addSessionInterOpThreadPool
public ConfigProto.Builder addSessionInterOpThreadPool(ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addSessionInterOpThreadPool
public ConfigProto.Builder addSessionInterOpThreadPool(int index, ThreadPoolOptionProto.Builder builderForValue) This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addAllSessionInterOpThreadPool
public ConfigProto.Builder addAllSessionInterOpThreadPool(Iterable<? extends ThreadPoolOptionProto> values) This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
clearSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
removeSessionInterOpThreadPool
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
getSessionInterOpThreadPoolBuilder
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
getSessionInterOpThreadPoolOrBuilder
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;- Specified by:
getSessionInterOpThreadPoolOrBuilderin interfaceConfigProtoOrBuilder
-
getSessionInterOpThreadPoolOrBuilderList
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;- Specified by:
getSessionInterOpThreadPoolOrBuilderListin interfaceConfigProtoOrBuilder
-
addSessionInterOpThreadPoolBuilder
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
addSessionInterOpThreadPoolBuilder
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
getSessionInterOpThreadPoolBuilderList
This option is experimental - it may be replaced with a different mechanism in the future. Configures session thread pools. If this is configured, then RunOptions for a Run call can select the thread pool to use. The intended use is for when some session invocations need to run in a background pool limited to a small number of threads: - For example, a session may be configured to have one large pool (for regular compute) and one small pool (for periodic, low priority work); using the small pool is currently the mechanism for limiting the inter-op parallelism of the low priority work. Note that it does not limit the parallelism of work spawned by a single op kernel implementation. - Using this setting is normally not needed in training, but may help some serving use cases. - It is also generally recommended to set the global_name field of this proto, to avoid creating multiple large pools. It is typically better to run the non-low-priority work, even across sessions, in a single large pool.
repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; -
getPlacementPeriod
public int getPlacementPeriod()Assignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).
int32 placement_period = 3;- Specified by:
getPlacementPeriodin interfaceConfigProtoOrBuilder- Returns:
- The placementPeriod.
-
setPlacementPeriod
Assignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).
int32 placement_period = 3;- Parameters:
value- The placementPeriod to set.- Returns:
- This builder for chaining.
-
clearPlacementPeriod
Assignment of Nodes to Devices is recomputed every placement_period steps until the system warms up (at which point the recomputation typically slows down automatically).
int32 placement_period = 3;- Returns:
- This builder for chaining.
-
getDeviceFiltersList
public com.google.protobuf.ProtocolStringList getDeviceFiltersList()When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Specified by:
getDeviceFiltersListin interfaceConfigProtoOrBuilder- Returns:
- A list containing the deviceFilters.
-
getDeviceFiltersCount
public int getDeviceFiltersCount()When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Specified by:
getDeviceFiltersCountin interfaceConfigProtoOrBuilder- Returns:
- The count of deviceFilters.
-
getDeviceFilters
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Specified by:
getDeviceFiltersin interfaceConfigProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deviceFilters at the given index.
-
getDeviceFiltersBytes
public com.google.protobuf.ByteString getDeviceFiltersBytes(int index) When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Specified by:
getDeviceFiltersBytesin interfaceConfigProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deviceFilters at the given index.
-
setDeviceFilters
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Parameters:
index- The index to set the value at.value- The deviceFilters to set.- Returns:
- This builder for chaining.
-
addDeviceFilters
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Parameters:
value- The deviceFilters to add.- Returns:
- This builder for chaining.
-
addAllDeviceFilters
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Parameters:
values- The deviceFilters to add.- Returns:
- This builder for chaining.
-
clearDeviceFilters
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Returns:
- This builder for chaining.
-
addDeviceFiltersBytes
When any filters are present sessions will ignore all devices which do not match the filters. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 4;- Parameters:
value- The bytes of the deviceFilters to add.- Returns:
- This builder for chaining.
-
hasGpuOptions
public boolean hasGpuOptions()Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6;- Specified by:
hasGpuOptionsin interfaceConfigProtoOrBuilder- Returns:
- Whether the gpuOptions field is set.
-
getGpuOptions
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6;- Specified by:
getGpuOptionsin interfaceConfigProtoOrBuilder- Returns:
- The gpuOptions.
-
setGpuOptions
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6; -
setGpuOptions
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6; -
mergeGpuOptions
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6; -
clearGpuOptions
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6; -
getGpuOptionsBuilder
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6; -
getGpuOptionsOrBuilder
Options that apply to all GPUs.
.tensorflow.GPUOptions gpu_options = 6;- Specified by:
getGpuOptionsOrBuilderin interfaceConfigProtoOrBuilder
-
hasPluggableDeviceOptions
public boolean hasPluggableDeviceOptions()Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18;- Specified by:
hasPluggableDeviceOptionsin interfaceConfigProtoOrBuilder- Returns:
- Whether the pluggableDeviceOptions field is set.
-
getPluggableDeviceOptions
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18;- Specified by:
getPluggableDeviceOptionsin interfaceConfigProtoOrBuilder- Returns:
- The pluggableDeviceOptions.
-
setPluggableDeviceOptions
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18; -
setPluggableDeviceOptions
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18; -
mergePluggableDeviceOptions
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18; -
clearPluggableDeviceOptions
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18; -
getPluggableDeviceOptionsBuilder
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18; -
getPluggableDeviceOptionsOrBuilder
Options that apply to pluggable devices.
.tensorflow.GPUOptions pluggable_device_options = 18;- Specified by:
getPluggableDeviceOptionsOrBuilderin interfaceConfigProtoOrBuilder
-
getAllowSoftPlacement
public boolean getAllowSoftPlacement()Whether soft placement is allowed. If allow_soft_placement is true, an op will be placed on CPU if 1. there's no GPU implementation for the OP or 2. no GPU devices are known or registered or 3. need to co-locate with reftype input(s) which are from CPU.
bool allow_soft_placement = 7;- Specified by:
getAllowSoftPlacementin interfaceConfigProtoOrBuilder- Returns:
- The allowSoftPlacement.
-
setAllowSoftPlacement
Whether soft placement is allowed. If allow_soft_placement is true, an op will be placed on CPU if 1. there's no GPU implementation for the OP or 2. no GPU devices are known or registered or 3. need to co-locate with reftype input(s) which are from CPU.
bool allow_soft_placement = 7;- Parameters:
value- The allowSoftPlacement to set.- Returns:
- This builder for chaining.
-
clearAllowSoftPlacement
Whether soft placement is allowed. If allow_soft_placement is true, an op will be placed on CPU if 1. there's no GPU implementation for the OP or 2. no GPU devices are known or registered or 3. need to co-locate with reftype input(s) which are from CPU.
bool allow_soft_placement = 7;- Returns:
- This builder for chaining.
-
getLogDevicePlacement
public boolean getLogDevicePlacement()Whether device placements should be logged.
bool log_device_placement = 8;- Specified by:
getLogDevicePlacementin interfaceConfigProtoOrBuilder- Returns:
- The logDevicePlacement.
-
setLogDevicePlacement
Whether device placements should be logged.
bool log_device_placement = 8;- Parameters:
value- The logDevicePlacement to set.- Returns:
- This builder for chaining.
-
clearLogDevicePlacement
Whether device placements should be logged.
bool log_device_placement = 8;- Returns:
- This builder for chaining.
-
hasGraphOptions
public boolean hasGraphOptions()Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10;- Specified by:
hasGraphOptionsin interfaceConfigProtoOrBuilder- Returns:
- Whether the graphOptions field is set.
-
getGraphOptions
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10;- Specified by:
getGraphOptionsin interfaceConfigProtoOrBuilder- Returns:
- The graphOptions.
-
setGraphOptions
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10; -
setGraphOptions
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10; -
mergeGraphOptions
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10; -
clearGraphOptions
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10; -
getGraphOptionsBuilder
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10; -
getGraphOptionsOrBuilder
Options that apply to all graphs.
.tensorflow.GraphOptions graph_options = 10;- Specified by:
getGraphOptionsOrBuilderin interfaceConfigProtoOrBuilder
-
getOperationTimeoutInMs
public long getOperationTimeoutInMs()Global timeout for all blocking operations in this session. If non-zero, and not overridden on a per-operation basis, this value will be used as the deadline for all blocking operations.
int64 operation_timeout_in_ms = 11;- Specified by:
getOperationTimeoutInMsin interfaceConfigProtoOrBuilder- Returns:
- The operationTimeoutInMs.
-
setOperationTimeoutInMs
Global timeout for all blocking operations in this session. If non-zero, and not overridden on a per-operation basis, this value will be used as the deadline for all blocking operations.
int64 operation_timeout_in_ms = 11;- Parameters:
value- The operationTimeoutInMs to set.- Returns:
- This builder for chaining.
-
clearOperationTimeoutInMs
Global timeout for all blocking operations in this session. If non-zero, and not overridden on a per-operation basis, this value will be used as the deadline for all blocking operations.
int64 operation_timeout_in_ms = 11;- Returns:
- This builder for chaining.
-
hasRpcOptions
public boolean hasRpcOptions()Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13;- Specified by:
hasRpcOptionsin interfaceConfigProtoOrBuilder- Returns:
- Whether the rpcOptions field is set.
-
getRpcOptions
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13;- Specified by:
getRpcOptionsin interfaceConfigProtoOrBuilder- Returns:
- The rpcOptions.
-
setRpcOptions
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13; -
setRpcOptions
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13; -
mergeRpcOptions
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13; -
clearRpcOptions
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13; -
getRpcOptionsBuilder
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13; -
getRpcOptionsOrBuilder
Options that apply when this session uses the distributed runtime.
.tensorflow.RPCOptions rpc_options = 13;- Specified by:
getRpcOptionsOrBuilderin interfaceConfigProtoOrBuilder
-
hasClusterDef
public boolean hasClusterDef()Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14;- Specified by:
hasClusterDefin interfaceConfigProtoOrBuilder- Returns:
- Whether the clusterDef field is set.
-
getClusterDef
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14;- Specified by:
getClusterDefin interfaceConfigProtoOrBuilder- Returns:
- The clusterDef.
-
setClusterDef
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14; -
setClusterDef
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14; -
mergeClusterDef
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14; -
clearClusterDef
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14; -
getClusterDefBuilder
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14; -
getClusterDefOrBuilder
Optional list of all workers to use in this session.
.tensorflow.ClusterDef cluster_def = 14;- Specified by:
getClusterDefOrBuilderin interfaceConfigProtoOrBuilder
-
getIsolateSessionState
public boolean getIsolateSessionState()If true, any resources such as Variables used in the session will not be shared with other sessions. However, when clusterspec propagation is enabled, this field is ignored and sessions are always isolated.
bool isolate_session_state = 15;- Specified by:
getIsolateSessionStatein interfaceConfigProtoOrBuilder- Returns:
- The isolateSessionState.
-
setIsolateSessionState
If true, any resources such as Variables used in the session will not be shared with other sessions. However, when clusterspec propagation is enabled, this field is ignored and sessions are always isolated.
bool isolate_session_state = 15;- Parameters:
value- The isolateSessionState to set.- Returns:
- This builder for chaining.
-
clearIsolateSessionState
If true, any resources such as Variables used in the session will not be shared with other sessions. However, when clusterspec propagation is enabled, this field is ignored and sessions are always isolated.
bool isolate_session_state = 15;- Returns:
- This builder for chaining.
-
hasExperimental
public boolean hasExperimental().tensorflow.ConfigProto.Experimental experimental = 16;- Specified by:
hasExperimentalin interfaceConfigProtoOrBuilder- Returns:
- Whether the experimental field is set.
-
getExperimental
.tensorflow.ConfigProto.Experimental experimental = 16;- Specified by:
getExperimentalin interfaceConfigProtoOrBuilder- Returns:
- The experimental.
-
setExperimental
.tensorflow.ConfigProto.Experimental experimental = 16; -
setExperimental
.tensorflow.ConfigProto.Experimental experimental = 16; -
mergeExperimental
.tensorflow.ConfigProto.Experimental experimental = 16; -
clearExperimental
.tensorflow.ConfigProto.Experimental experimental = 16; -
getExperimentalBuilder
.tensorflow.ConfigProto.Experimental experimental = 16; -
getExperimentalOrBuilder
.tensorflow.ConfigProto.Experimental experimental = 16;- Specified by:
getExperimentalOrBuilderin interfaceConfigProtoOrBuilder
-
setUnknownFields
public final ConfigProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-
mergeUnknownFields
public final ConfigProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigProto.Builder>
-