distrax.devices.get_device#
- distrax.devices.get_device(name='')[source]#
Gets the device as specified by the name.
- Parameters:
name (
str
) – Name of a supported device, i.e. brd- Return type:
Optional
[DEVICE
]- Returns:
A name tuple with the name of the storage and the class
Examples
>>> distrax.devices as devices >>> device = devices.get_device("brd") >>> device.name brd >>> device.DEVICE BRDDevice