检测Tensorflow可用设备(比如:显卡)

python -c "from tensorflow.python.client import device_lib;device_lib.list_local_devices()"