ConfigProto

public final class ConfigProto

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

Nested Classes

class ConfigProto.Builder
 Session configuration parameters. 
class ConfigProto.Experimental
 Everything inside Experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat. 
interface ConfigProto.ExperimentalOrBuilder

Constants

int ALLOW_SOFT_PLACEMENT_FIELD_NUMBER
int CLUSTER_DEF_FIELD_NUMBER
int DEVICE_COUNT_FIELD_NUMBER
int DEVICE_FILTERS_FIELD_NUMBER
int EXPERIMENTAL_FIELD_NUMBER
int GPU_OPTIONS_FIELD_NUMBER
int GRAPH_OPTIONS_FIELD_NUMBER
int INTER_OP_PARALLELISM_THREADS_FIELD_NUMBER
int INTRA_OP_PARALLELISM_THREADS_FIELD_NUMBER
int ISOLATE_SESSION_STATE_FIELD_NUMBER
int LOG_DEVICE_PLACEMENT_FIELD_NUMBER
int OPERATION_TIMEOUT_IN_MS_FIELD_NUMBER
int PLACEMENT_PERIOD_FIELD_NUMBER
int RPC_OPTIONS_FIELD_NUMBER
int SESSION_INTER_OP_THREAD_POOL_FIELD_NUMBER
int SHARE_CLUSTER_DEVICES_IN_SESSION_FIELD_NUMBER
int USE_PER_SESSION_THREADS_FIELD_NUMBER

Public Methods

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
equals (Object obj)
boolean
getAllowSoftPlacement ()
 Whether soft placement is allowed.
ClusterDef
getClusterDef ()
 Optional list of all workers to use in this session.
ClusterDefOrBuilder
getClusterDefOrBuilder ()
 Optional list of all workers to use in this session.
static ConfigProto
ConfigProto
final static 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.ExperimentalOrBuilder
getExperimentalOrBuilder ()
.tensorflow.ConfigProto.Experimental experimental = 16;
GPUOptions
getGpuOptions ()
 Options that apply to all GPUs.
GPUOptionsOrBuilder
getGpuOptionsOrBuilder ()
 Options that apply to all GPUs.
GraphOptions
getGraphOptions ()
 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.
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.
RPCOptionsOrBuilder
getRpcOptionsOrBuilder ()
 Options that apply when this session uses the distributed runtime.
int
ThreadPoolOptionProto
getSessionInterOpThreadPool (int index)
 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.
final com.google.protobuf.UnknownFieldSet
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.
int
final boolean
static ConfigProto.Builder
static ConfigProto.Builder
ConfigProto.Builder
static ConfigProto
parseDelimitedFrom (InputStream input)
static ConfigProto
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConfigProto
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConfigProto
parseFrom (com.google.protobuf.CodedInputStream input)
static ConfigProto
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConfigProto
parseFrom (ByteBuffer data)
static ConfigProto
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConfigProto
parseFrom (com.google.protobuf.ByteString data)
static ConfigProto
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConfigProto
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
ConfigProto.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods