You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Judge whether GPU is avaiableiftorch.backends.mps.is_available()
device=torch.device("mps")
elsedevice=torch.device("cpu")
# Push model into GPUmodel.to(device)