# 获取当前设备
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

相关文章:

  • 2021-06-07
  • 2021-06-13
  • 2021-10-24
  • 2021-10-13
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2021-04-22
  • 2022-01-04
  • 2021-11-18
  • 2022-01-01
  • 2021-12-26
  • 2021-06-09
  • 2021-09-05
相关资源
相似解决方案