Device#
API#
- warp_nn.utils.device.parse_device( ) Device[source]#
Parse the input device and return a
Deviceinstance.If the specified device is
Noneor it cannot be resolved, the default available device will be returned instead. For invalid device specifications, a warning message will be logged.- Parameters:
device – Device specification.
- Returns:
Device.