GPUOptions

public final class GPUOptions

Protobuf type tensorflow.GPUOptions

Nested Classes

class GPUOptions.Builder Protobuf type tensorflow.GPUOptions
class GPUOptions.Experimental Protobuf type tensorflow.GPUOptions.Experimental
interface GPUOptions.ExperimentalOrBuilder

Constants

int ALLOCATOR_TYPE_FIELD_NUMBER
int ALLOW_GROWTH_FIELD_NUMBER
int DEFERRED_DELETION_BYTES_FIELD_NUMBER
int EXPERIMENTAL_FIELD_NUMBER
int FORCE_GPU_COMPATIBLE_FIELD_NUMBER
int PER_PROCESS_GPU_MEMORY_FRACTION_FIELD_NUMBER
int POLLING_ACTIVE_DELAY_USECS_FIELD_NUMBER
int POLLING_INACTIVE_DELAY_MSECS_FIELD_NUMBER
int VISIBLE_DEVICE_LIST_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
String
getAllocatorType ()
 The type of GPU allocation strategy to use.
com.google.protobuf.ByteString
getAllocatorTypeBytes ()
 The type of GPU allocation strategy to use.
boolean
getAllowGrowth ()
 If true, the allocator does not pre-allocate the entire specified
 GPU memory region, instead starting small and growing as needed.
static GPUOptions
GPUOptions
long
getDeferredDeletionBytes ()
 Delay deletion of up to this many bytes to reduce the number of
 interactions with gpu driver code.
final static com.google.protobuf.Descriptors.Descriptor
GPUOptions.Experimental
getExperimental ()
 Everything inside experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat.
GPUOptions.ExperimentalOrBuilder
getExperimentalOrBuilder ()
 Everything inside experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat.
boolean
getForceGpuCompatible ()
 Force all tensors to be gpu_compatible.
double
getPerProcessGpuMemoryFraction ()
 Fraction of the available GPU memory to allocate for each process.
int
getPollingActiveDelayUsecs ()
 In the event polling loop sleep this many microseconds between
 PollEvents calls, when the queue is not empty.
int
getPollingInactiveDelayMsecs ()
 This field is deprecated and ignored.
int
final com.google.protobuf.UnknownFieldSet
String
getVisibleDeviceList ()
 A comma-separated list of GPU ids that determines the 'visible'
 to 'virtual' mapping of GPU devices.
com.google.protobuf.ByteString
getVisibleDeviceListBytes ()
 A comma-separated list of GPU ids that determines the 'visible'
 to 'virtual' mapping of GPU devices.
boolean
hasExperimental ()
 Everything inside experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat.
int
final boolean
static GPUOptions.Builder
static GPUOptions.Builder
GPUOptions.Builder
static GPUOptions
parseDelimitedFrom (InputStream input)
static GPUOptions
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GPUOptions
parseFrom (ByteBuffer data)
static GPUOptions
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GPUOptions
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GPUOptions
parseFrom (com.google.protobuf.CodedInputStream input)
static GPUOptions
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GPUOptions
parseFrom (com.google.protobuf.ByteString data)
static GPUOptions
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GPUOptions
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
GPUOptions.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int ALLOCATOR_TYPE_FIELD_NUMBER

Constant Value: 2

public static final int ALLOW_GROWTH_FIELD_NUMBER

Constant Value: 4

public static final int DEFERRED_DELETION_BYTES_FIELD_NUMBER

Constant Value: 3

public static final int EXPERIMENTAL_FIELD_NUMBER

Constant Value: 9

public static final int FORCE_GPU_COMPATIBLE_FIELD_NUMBER

Constant Value: 8

public static final int PER_PROCESS_GPU_MEMORY_FRACTION_FIELD_NUMBER

Constant Value: 1

public static final int POLLING_ACTIVE_DELAY_USECS_FIELD_NUMBER

Constant Value: 6

public static final int POLLING_INACTIVE_DELAY_MSECS_FIELD_NUMBER

Constant Value: 7

public static final int VISIBLE_DEVICE_LIST_FIELD_NUMBER

Constant Value: 5

Public Methods

public boolean equals (Object obj)

public String getAllocatorType ()

 The type of GPU allocation strategy to use.
 Allowed values:
 "": The empty string (default) uses a system-chosen default
     which may change over time.
 "BFC": A "Best-fit with coalescing" algorithm, simplified from a
        version of dlmalloc.
 
string allocator_type = 2;

public com.google.protobuf.ByteString getAllocatorTypeBytes ()

 The type of GPU allocation strategy to use.
 Allowed values:
 "": The empty string (default) uses a system-chosen default
     which may change over time.
 "BFC": A "Best-fit with coalescing" algorithm, simplified from a
        version of dlmalloc.
 
string allocator_type = 2;

public boolean getAllowGrowth ()

 If true, the allocator does not pre-allocate the entire specified
 GPU memory region, instead starting small and growing as needed.
 
bool allow_growth = 4;

public static GPUOptions getDefaultInstance ()

public GPUOptions getDefaultInstanceForType ()

public long getDeferredDeletionBytes ()

 Delay deletion of up to this many bytes to reduce the number of
 interactions with gpu driver code.  If 0, the system chooses
 a reasonable default (several MBs).
 
int64 deferred_deletion_bytes = 3;

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

public GPUOptions.Experimental getExperimental ()

 Everything inside experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat.
 
.tensorflow.GPUOptions.Experimental experimental = 9;

public GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder ()

 Everything inside experimental is subject to change and is not subject
 to API stability guarantees in
 https://www.tensorflow.org/guide/version_compat.
 
.tensorflow.GPUOptions.Experimental experimental = 9;