1
0

More than 1 year has passed since last update.

Pytorchのバージョンを確認、GPUの情報をワンライナーで確認

Posted at

Pytorchのバージョンを確認

python3 -c "import torch; print(torch.__version__);"

GPUを使えるかどうかを確認

python3 -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_name(0));"
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0