tf.config.LogicalDeviceConfiguration

View source on GitHub

Class LogicalDeviceConfiguration

Configuration class for a logical devices.

Aliases: tf.config.experimental.VirtualDeviceConfiguration

The class specifies the parameters to configure a tf.config.PhysicalDevice as it is initialized to a tf.config.LogicalDevice during runtime initialization. Not all fields are valid for all device types.

See tf.config.get_logical_device_configuration and tf.config.set_logical_device_configuration for usage examples.

Fields:

  • memory_limit: (optional) Maximum memory (in MB) to allocate on the virtual device. Currently only supported for GPUs.

__new__

View source

@staticmethod
__new__(
    cls,
    memory_limit=None
)

Create new instance of LogicalDeviceConfiguration(memory_limit,)

Properties

memory_limit

Compat aliases