utils.devices#
Functions for working with the torch.device module
Functions
Get the CPU device |
|
Get a GPU device |
|
Get the number of available GPUs |
|
Return all available GPUs, or [cpu(),] if no GPU exists |
|
Return gpu(i) if exists, otherwise return None |