EntropyDrop's picture
Release SKING_DDJ_v101c portable inference bundle
76d7a6e verified
Raw History Blame Contribute Delete
184 Bytes
import torch
def get_device(device_arg):
if device_arg == "auto":
return torch.device("cuda" if torch.cuda.is_available() else "cpu")
return torch.device(device_arg)