Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow NVIDIA-SMI失败,因为它无法';与英伟达司机进行沟通。确保已安装并运行最新的NVIDIA驱动程序。为什么?_Tensorflow_Gpu_Google Colaboratory_Nvidia - Fatal编程技术网

Tensorflow NVIDIA-SMI失败,因为它无法';与英伟达司机进行沟通。确保已安装并运行最新的NVIDIA驱动程序。为什么?

Tensorflow NVIDIA-SMI失败,因为它无法';与英伟达司机进行沟通。确保已安装并运行最新的NVIDIA驱动程序。为什么?,tensorflow,gpu,google-colaboratory,nvidia,Tensorflow,Gpu,Google Colaboratory,Nvidia,我正试图在Google Colab上运行stylegan2,但所有文件都在我的驱动器上,并且避免使用!git克隆自。 以下是我在特定单元格上的代码: %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__

我正试图在Google Colab上运行stylegan2,但所有文件都在我的驱动器上,并且避免使用!git克隆自。 以下是我在特定单元格上的代码:

    %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()))
结果是:

/内容/驱动器/我的驱动器/样式2主控 中央处理器说你好。 cudaErrorNoDevice:未检测到支持CUDA的设备 Tensorflow版本:1.15.2 <强> NVIDIA-SMI失败,因为它无法与英伟达司机通信。确保已安装并运行最新的NVIDIA驱动程序。

GPU标识在:

为什么我不能得到GPU?
我是这个领域的新手,所以我可能遗漏了一些非常简单的东西,但仍然无法在互联网上找到答案。

您必须首先在笔记本设置中启用GPU

您可以通过单击
Edit>Notebook settings
并选择GPU作为硬件加速器轻松完成此操作


应该是这样。

对不起,我完全误解了你的回答。在我的情况下,我在多个笔记本电脑中都这么做了,即使在重新启动运行时后,仍然没有获得GPU或TPU。