tf.GPUOptions

class tf.GPUOptions

Properties

allocator_type

Magic attribute generated for "allocator_type" proto field.

allow_growth

Magic attribute generated for "allow_growth" proto field.

deferred_deletion_bytes

Magic attribute generated for "deferred_deletion_bytes" proto field.

per_process_gpu_memory_fraction

Magic attribute generated for "per_process_gpu_memory_fraction" proto field.

visible_device_list

Magic attribute generated for "visible_device_list" proto field.

Methods

ByteSize()

Clear()

ClearExtension(extension_handle)

ClearField(field_name)

CopyFrom(other_msg)

Copies the content of the specified message into the current message.

The method clears the current message and then merges the specified message using MergeFrom.

Args:

  • other_msg: Message to copy into the current one.

DiscardUnknownFields()

FindInitializationErrors()

Finds required fields which are not initialized.

Returns:

A list of strings. Each string is a path to an uninitialized field from the top-level message, e.g. "foo.bar[5].baz".

FromString(s)

HasExtension(extension_handle)

HasField(field_name)

IsInitialized(errors=None)

Checks if all required fields of a message are set.

Args:

  • errors: A list which, if provided, will be populated with the field paths of all missing required fields.

Returns:

True iff the specified message has all required fields set.

ListFields()

MergeFrom(msg)

MergeFromString(serialized)

ParseFromString(serialized)

Parse serialized protocol buffer data into this message.

Like MergeFromString(), except we clear the object first and do not return the value that MergeFromString returns.

RegisterExtension(extension_handle)

SerializePartialToString()

SerializeToString()

SetInParent()

Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.

WhichOneof(oneof_name)

Returns the name of the currently set field inside a oneof, or None.

__init__(**kwargs)

Class Members

ALLOCATOR_TYPE_FIELD_NUMBER

ALLOW_GROWTH_FIELD_NUMBER

DEFERRED_DELETION_BYTES_FIELD_NUMBER

DESCRIPTOR

PER_PROCESS_GPU_MEMORY_FRACTION_FIELD_NUMBER

VISIBLE_DEVICE_LIST_FIELD_NUMBER

Defined in tensorflow/core/protobuf/config_pb2.py.