MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LogicalDevice

Class LogicalDevice

tensorflow/python/eager/context.py:240–254  ·  view source on GitHub ↗

Abstraction for a device initialized by the runtime. A LogicalDevice corresponds to a initialized instance on a PhysicalDevice or a remote device available in the cluster. Tensors and operations can be placed on a specific LogicalDevice by calling `tf.device()` with the `name` of the Logica

Source from the content-addressed store, hash-verified

238
239
240class LogicalDevice(
241 collections.namedtuple("LogicalDevice", ["name", "device_type"])):
242 """Abstraction for a device initialized by the runtime.
243
244 A LogicalDevice corresponds to a initialized instance on a PhysicalDevice or a
245 remote device available in the cluster. Tensors and operations can be placed
246 on a specific LogicalDevice by calling `tf.device()` with the `name` of the
247 LogicalDevice.
248
249 Fields:
250 name: The fully qualified name of the device. Can be used for Op or function
251 placement.
252 device_type: String declaring the type of device such as "CPU" or "GPU".
253 """
254 pass
255
256
257@tf_export("config.experimental.VirtualDeviceConfiguration")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected