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
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> |
getDeviceCount()
Use
getDeviceCountMap() instead. |
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 |
hashCode()
|
final boolean | |
static ConfigProto.Builder | |
static ConfigProto.Builder |
newBuilder(ConfigProto prototype)
|
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
|
parser()
|
ConfigProto.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|