常用的linux指令记录 查看tf、cuda、cudnn版本,查看gpu使用情况等

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a493823882/article/details/87514247

0.前言:

进入python:cmd输入python

推出python:cmd输入exit()

1. 查看tensorflow版本与路径(python指令)

tf.__verison__, tf.__path__

2. 查看nvidia显卡使用情况

nvidia -smi

3. 查看python版本

python -V

4. 查看python路径

显示所有python的 路径

whereis python

显示正在使用的python的路径

which python

5. 查看cuda与cudnn版本

cuda:

cat /usr/local/cuda/version.txt

cudnn:

cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

猜你喜欢

转载自blog.csdn.net/a493823882/article/details/87514247