TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.config.experimental.VirtualDeviceConfiguration

TensorFlow 1 version View source on GitHub

Class VirtualDeviceConfiguration

Configuration class for virtual devices for a PhysicalDevice.

Aliases:

  • Class tf.compat.v1.config.experimental.VirtualDeviceConfiguration
  • Class tf.compat.v2.config.experimental.VirtualDeviceConfiguration

Used in the guide:

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 VirtualDeviceConfiguration(memory_limit,)

Properties

memory_limit