scglue.models.nn.autodevice

scglue.models.nn.autodevice()[source]

Get torch computation device automatically based on GPU availability and memory usage

Return type:

device

Returns:

device – Computation device