tiatoolbox . utils . misc . select_device
tiatoolbox
utils
misc
select_device
Selects the appropriate device as requested.
on_gpu (bool) – Selects gpu if True.
“gpu” if on_gpu is True otherwise returns “cpu”
device (str)