Configuration class for a logical devices.
See Migration guide for more details.
tf.config.LogicalDeviceConfiguration( memory_limit=None, experimental_priority=None )
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.
memory_limit: (optional) Maximum memory (in MB) to allocate on the virtual device. Currently only supported for GPUs.
experimental_priority: (optional) Priority to assign to a virtual device. Lower values have higher priorities and 0 is the default. Within a physical GPU, the GPU scheduler will prioritize ops on virtual devices with higher priority. Currently only supported for Nvidia GPUs.
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.