ThreadPoolOptionProto

public final class ThreadPoolOptionProto

Protobuf type tensorflow.ThreadPoolOptionProto

Nested Classes

class ThreadPoolOptionProto.Builder Protobuf type tensorflow.ThreadPoolOptionProto  

Constants

int GLOBAL_NAME_FIELD_NUMBER
int NUM_THREADS_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
static ThreadPoolOptionProto
ThreadPoolOptionProto
final static com.google.protobuf.Descriptors.Descriptor
String
getGlobalName()
 The global name of the threadpool.
com.google.protobuf.ByteString
getGlobalNameBytes()
 The global name of the threadpool.
int
getNumThreads()
 The number of threads in the pool.
int
final com.google.protobuf.UnknownFieldSet
int
final boolean
static ThreadPoolOptionProto.Builder
static ThreadPoolOptionProto.Builder
ThreadPoolOptionProto.Builder
static ThreadPoolOptionProto
parseDelimitedFrom(InputStream input)
static ThreadPoolOptionProto
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ThreadPoolOptionProto
parseFrom(ByteBuffer data)
static ThreadPoolOptionProto
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ThreadPoolOptionProto
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ThreadPoolOptionProto
parseFrom(com.google.protobuf.CodedInputStream input)
static ThreadPoolOptionProto
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ThreadPoolOptionProto
parseFrom(com.google.protobuf.ByteString data)
static ThreadPoolOptionProto
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ThreadPoolOptionProto
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
ThreadPoolOptionProto.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int GLOBAL_NAME_FIELD_NUMBER

Constant Value: 2

public static final int NUM_THREADS_FIELD_NUMBER

Constant Value: 1

Public Methods

public boolean equals (Object obj)

public static ThreadPoolOptionProto getDefaultInstance ()

public ThreadPoolOptionProto getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public String getGlobalName ()

 The global name of the threadpool.
 If empty, then the threadpool is made and used according to the scope it's
 in - e.g., for a session threadpool, it is used by that session only.
 If non-empty, then:
 - a global threadpool associated with this name is looked
   up or created. This allows, for example, sharing one threadpool across
   many sessions (e.g., like the default behavior, if
   inter_op_parallelism_threads is not configured), but still partitioning
   into a large and small pool.
 - if the threadpool for this global_name already exists, then it is an
   error if the existing pool was created using a different num_threads
   value as is specified on this call.
 - threadpools created this way are never garbage collected.
 
string global_name = 2;

public com.google.protobuf.ByteString getGlobalNameBytes ()

 The global name of the threadpool.
 If empty, then the threadpool is made and used according to the scope it's
 in - e.g., for a session threadpool, it is used by that session only.
 If non-empty, then:
 - a global threadpool associated with this name is looked
   up or created. This allows, for example, sharing one threadpool across
   many sessions (e.g., like the default behavior, if
   inter_op_parallelism_threads is not configured), but still partitioning
   into a large and small pool.
 - if the threadpool for this global_name already exists, then it is an
   error if the existing pool was created using a different num_threads
   value as is specified on this call.
 - threadpools created this way are never garbage collected.
 
string global_name = 2;

public int getNumThreads ()

 The number of threads in the pool.
 0 means the system picks a value based on where this option proto is used
 (see the declaration of the specific field for more info).
 
int32 num_threads = 1;

public getParserForType ()

public int getSerializedSize ()

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

public final boolean isInitialized ()

public static ThreadPoolOptionProto.Builder newBuilder (ThreadPoolOptionProto prototype)

public static ThreadPoolOptionProto.Builder newBuilder ()

public ThreadPoolOptionProto.Builder newBuilderForType ()

public static ThreadPoolOptionProto parseDelimitedFrom (InputStream input)

Throws
IOException

public static ThreadPoolOptionProto parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ThreadPoolOptionProto parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static ThreadPoolOptionProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ThreadPoolOptionProto parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ThreadPoolOptionProto parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static ThreadPoolOptionProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ThreadPoolOptionProto parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static ThreadPoolOptionProto parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ThreadPoolOptionProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public ThreadPoolOptionProto.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException