![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
Deep Learning小舟
深度学习算法工程师
展开
-
apt 和apt-get的区别
apt = apt-get、apt-cache 和 apt-config 中最常用命令选项的集合原创 2022-07-03 12:10:17 · 3550 阅读 · 0 评论 -
查询计算机上是否有可用的GPU设备
查询计算机上是否有可用的GPU设备代码结果展示代码def is_gpu_available(cuda_only=True): from tensorflow.python.client import device_lib as _device_lib if cuda_only: return any((x.device_type == 'GPU') for x in _device_lib.list_local_devices())原创 2020-11-29 15:59:31 · 7827 阅读 · 4 评论 -
获取PC 服务器 可用的GPU
获取PC 服务器 可用的GPU代码结果展示代码def get_available_gpus(): from tensorflow.python.client import device_lib as _device_lib local_device_protos = _device_lib.list_local_devices() return [x.name for x in local_device_protos if x.device_type == 'GPU']prin原创 2020-11-29 15:47:28 · 5371 阅读 · 3 评论 -
Linux、Ubuntu中nohup的使用和关闭
Linux Ubuntu中nohup的使用和关闭看了nohup的教程,感觉太繁琐,其实主要用到的就块打开和关闭1.使用nohupnohup command > myout.file #将输出信息打印保存在myout.file文件中如:nohup python train.py > tran.txt2.关闭nohup找到进程号ps -fe|grep python 关闭进程kill -9 进程号...原创 2020-11-28 22:08:21 · 15718 阅读 · 8 评论