【发布时间】:2020-10-23 02:39:56
【问题描述】:
我正在尝试在 Google Colab 上运行 stylegan2,但所有文件都在我的 Drive 上,并避免使用来自 github of stylegan2 的 !git clone。 这是我在特定单元格上的代码:
%tensorflow_version 1.x
%cd /content/drive/My Drive/stylegan2-master/
!nvcc test_nvcc.cu -o test_nvcc -run
print('Tensorflow version: {}'.format(tf.__version__) )
!nvidia-smi -L
print('GPU Identified at: {}'.format(tf.test.gpu_device_name()))
结果:
/content/drive/我的云端硬盘/stylegan2-master CPU打招呼。 cudaErrorNoDevice:未检测到支持 CUDA 的设备 张量流版本:1.15.2 NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。确保已安装并运行最新的 NVIDIA 驱动程序。
GPU 识别于:
为什么我无法获得 GPU ? 我是该领域的新手,所以我可能遗漏了一些非常简单的东西,但仍然无法在互联网上找到答案。
【问题讨论】:
标签: tensorflow gpu google-colaboratory nvidia