Spec-Zone.ru › TensorFlow

tf.config.LogicalDevice

Abstraction for a logical device initialized by the runtime.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.config.LogicalDevice

tf.config.LogicalDevice(
    name, device_type
)

A tf.config.LogicalDevice corresponds to an initialized logical device on a tf.config.PhysicalDevice or a remote device visible to the cluster. Tensors and operations can be placed on a specific logical device by calling tf.device with a specified tf.config.LogicalDevice.

Fields
name The fully qualified name of the device. Can be used for Op or function placement.
device_type String declaring the type of device such as "CPU" or "GPU".
Attributes
name A namedtuple alias for field number 0
device_type A namedtuple alias for field number 1

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/config/LogicalDevice

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API