还是以谷歌的colab为例,查看gpu、cuda、cudnn信息

import torch
torch.__version__

'1.4.0'

也就是说colab上自带的pytorch版本是最新的1.4.0版本

torch.version.cuda

'10.1'

torch.backends.cudnn.version()

cuda是计算平台,cudnn是GPU加速库,cuda和cudnn的版本要对应。

torch.cuda.get_device_name(0)

'Tesla T4'

目前使用的显卡是Tesla T4,查了下价格,2万左右。

相关文章:

  • 2021-12-19
  • 2021-06-25
  • 2021-06-01
  • 2021-10-27
  • 2021-09-16
  • 2021-08-14
  • 2021-10-17
  • 2022-02-10
猜你喜欢
  • 2022-01-01
  • 2021-08-25
  • 2021-08-03
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案