ConfigProto.Builder

public static final class ConfigProto.Builder

 Session configuration parameters.
 The system picks appropriate values for fields that are not set.
 
Protobuf type tensorflow.ConfigProto

Public Methods

ConfigProto.Builder
addAllDeviceFilters (Iterable<String> values)
 When any filters are present sessions will ignore all devices which do not
 match the filters.
ConfigProto.Builder
addAllSessionInterOpThreadPool (Iterable<? extends ThreadPoolOptionProto > values)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto.Builder
addDeviceFilters (String value)
 When any filters are present sessions will ignore all devices which do not
 match the filters.
ConfigProto.Builder
addDeviceFiltersBytes (com.google.protobuf.ByteString value)
 When any filters are present sessions will ignore all devices which do not
 match the filters.
ConfigProto.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ConfigProto.Builder
addSessionInterOpThreadPool ( ThreadPoolOptionProto value)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto.Builder
addSessionInterOpThreadPool (int index, ThreadPoolOptionProto value)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto.Builder
addSessionInterOpThreadPool ( ThreadPoolOptionProto.Builder builderForValue)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto.Builder
addSessionInterOpThreadPool (int index, ThreadPoolOptionProto.Builder builderForValue)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ThreadPoolOptionProto.Builder
addSessionInterOpThreadPoolBuilder (int index)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ThreadPoolOptionProto.Builder
addSessionInterOpThreadPoolBuilder ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto
ConfigProto
ConfigProto.Builder
ConfigProto.Builder
clearAllowSoftPlacement ()
 Whether soft placement is allowed.
ConfigProto.Builder
clearClusterDef ()
 Optional list of all workers to use in this session.
ConfigProto.Builder
ConfigProto.Builder
clearDeviceFilters ()
 When any filters are present sessions will ignore all devices which do not
 match the filters.
ConfigProto.Builder
clearExperimental ()
.tensorflow.ConfigProto.Experimental experimental = 16;
ConfigProto.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
ConfigProto.Builder
clearGpuOptions ()
 Options that apply to all GPUs.
ConfigProto.Builder
clearGraphOptions ()
 Options that apply to all graphs.
ConfigProto.Builder
clearInterOpParallelismThreads ()
 Nodes that perform blocking operations are enqueued on a pool of
 inter_op_parallelism_threads available in each process.
ConfigProto.Builder
clearIntraOpParallelismThreads ()
 The execution of an individual op (for some op types) can be
 parallelized on a pool of intra_op_parallelism_threads.
ConfigProto.Builder
clearIsolateSessionState ()
 If true, any resources such as Variables used in the session will not be
 shared with other sessions.
ConfigProto.Builder
clearLogDevicePlacement ()
 Whether device placements should be logged.
ConfigProto.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
ConfigProto.Builder
clearOperationTimeoutInMs ()
 Global timeout for all blocking operations in this session.
ConfigProto.Builder
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).
ConfigProto.Builder
clearRpcOptions ()
 Options that apply when this session uses the distributed runtime.
ConfigProto.Builder
clearSessionInterOpThreadPool ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ConfigProto.Builder
clearShareClusterDevicesInSession ()
 When true, WorkerSessions are created with device attributes from the
 full cluster.
ConfigProto.Builder
clearUsePerSessionThreads ()
 If true, use a new set of threads for this session rather than the global
 pool of threads.
ConfigProto.Builder
boolean
containsDeviceCount (String key)
 Map from device type name (e.g., "CPU" or "GPU" ) to maximum
 number of devices of that type to use.
boolean
getAllowSoftPlacement ()
 Whether soft placement is allowed.
ClusterDef
getClusterDef ()
 Optional list of all workers to use in this session.
ClusterDef.Builder
getClusterDefBuilder ()
 Optional list of all workers to use in this session.
ClusterDefOrBuilder
getClusterDefOrBuilder ()
 Optional list of all workers to use in this session.
ConfigProto
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Map<String, Integer>
int
getDeviceCountCount ()
 Map from device type name (e.g., "CPU" or "GPU" ) to maximum
 number of devices of that type to use.
Map<String, Integer>
getDeviceCountMap ()
 Map from device type name (e.g., "CPU" or "GPU" ) to maximum
 number of devices of that type to use.
int
getDeviceCountOrDefault (String key, int defaultValue)
 Map from device type name (e.g., "CPU" or "GPU" ) to maximum
 number of devices of that type to use.
int
getDeviceCountOrThrow (String key)
 Map from device type name (e.g., "CPU" or "GPU" ) to maximum
 number of devices of that type to use.
String
getDeviceFilters (int index)
 When any filters are present sessions will ignore all devices which do not
 match the filters.
com.google.protobuf.ByteString
getDeviceFiltersBytes (int index)
 When any filters are present sessions will ignore all devices which do not
 match the filters.
int
getDeviceFiltersCount ()
 When any filters are present sessions will ignore all devices which do not
 match the filters.
com.google.protobuf.ProtocolStringList
getDeviceFiltersList ()
 When any filters are present sessions will ignore all devices which do not
 match the filters.
ConfigProto.Experimental
getExperimental ()
.tensorflow.ConfigProto.Experimental experimental = 16;
ConfigProto.Experimental.Builder
getExperimentalBuilder ()
.tensorflow.ConfigProto.Experimental experimental = 16;
ConfigProto.ExperimentalOrBuilder
getExperimentalOrBuilder ()
.tensorflow.ConfigProto.Experimental experimental = 16;
GPUOptions
getGpuOptions ()
 Options that apply to all GPUs.
GPUOptions.Builder
getGpuOptionsBuilder ()
 Options that apply to all GPUs.
GPUOptionsOrBuilder
getGpuOptionsOrBuilder ()
 Options that apply to all GPUs.
GraphOptions
getGraphOptions ()
 Options that apply to all graphs.
GraphOptions.Builder
getGraphOptionsBuilder ()
 Options that apply to all graphs.
GraphOptionsOrBuilder
getGraphOptionsOrBuilder ()
 Options that apply to all graphs.
int
getInterOpParallelismThreads ()
 Nodes that perform blocking operations are enqueued on a pool of
 inter_op_parallelism_threads available in each process.
int
getIntraOpParallelismThreads ()
 The execution of an individual op (for some op types) can be
 parallelized on a pool of intra_op_parallelism_threads.
boolean
getIsolateSessionState ()
 If true, any resources such as Variables used in the session will not be
 shared with other sessions.
boolean
getLogDevicePlacement ()
 Whether device placements should be logged.
Map<String, Integer>
getMutableDeviceCount ()
Use alternate mutation accessors instead.
long
getOperationTimeoutInMs ()
 Global timeout for all blocking operations in this session.
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).
RPCOptions
getRpcOptions ()
 Options that apply when this session uses the distributed runtime.
RPCOptions.Builder
getRpcOptionsBuilder ()
 Options that apply when this session uses the distributed runtime.
RPCOptionsOrBuilder
getRpcOptionsOrBuilder ()
 Options that apply when this session uses the distributed runtime.
ThreadPoolOptionProto
getSessionInterOpThreadPool (int index)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ThreadPoolOptionProto.Builder
getSessionInterOpThreadPoolBuilder (int index)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
List< ThreadPoolOptionProto.Builder >
getSessionInterOpThreadPoolBuilderList ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
int
getSessionInterOpThreadPoolCount ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
List< ThreadPoolOptionProto >
getSessionInterOpThreadPoolList ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
ThreadPoolOptionProtoOrBuilder
getSessionInterOpThreadPoolOrBuilder (int index)
 This option is experimental - it may be replaced with a different mechanism
 in the future.
List<? extends ThreadPoolOptionProtoOrBuilder >
getSessionInterOpThreadPoolOrBuilderList ()
 This option is experimental - it may be replaced with a different mechanism
 in the future.
boolean
getShareClusterDevicesInSession ()
 When true, WorkerSessions are created with device attributes from the
 full cluster.
boolean
getUsePerSessionThreads ()
 If true, use a new set of threads for this session rather than the global
 pool of threads.
boolean
hasClusterDef ()
 Optional list of all workers to use in this session.
boolean
hasExperimental ()
.tensorflow.ConfigProto.Experimental experimental = 16;
boolean
hasGpuOptions ()
 Options that apply to all GPUs.
boolean
hasGraphOptions ()
 Options that apply to all graphs.
boolean
hasRpcOptions ()
 Options that apply when this session uses the distributed runtime.
final boolean
ConfigProto.Builder
mergeClusterDef ( ClusterDef value)
 Optional list of all workers to use in this session.
ConfigProto.Builder
mergeExperimental ( ConfigProto.Experimental value)
.tensorflow.ConfigProto.Experimental experimental = 16;
ConfigProto.Builder
mergeFrom (com.google.protobuf.Message other)
ConfigProto.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ConfigProto.Builder
mergeGpuOptions ( GPUOptions value)
 Options that apply to all GPUs.
ConfigProto.Builder