thunder.core.devices.Device¶
- class thunder.core.devices.Device(string_or_devicetype, index=None, /)[source]¶
Bases:
object
- __init__(string_or_devicetype, index=None, /)[source]¶
- Parameters:
string_or_devicetype (str | thunder.core.devices.DeviceType) –
Methods
__init__
(string_or_devicetype[, index])device_str
()- rtype:
Attributes
devicetype
index
type