import torch
device = torch.accelerator.current_accelerator() or torch.device("cpu")