以下是一些PyTorch在Ubuntu上的使用技巧:
torch.cuda.is_available()
torch.cuda.amp
torch.backends.cudnn.benchmark
DataLoader
num_workers