tensorflow - 在 Keras 中未检测到 GCP GPU

标签 tensorflow keras deep-learning google-compute-engine nvidia

我在带有一个 NVIDIA Tesla P4GPU 的 GCP 实例上运行 UNet Keras 模型。但它没有检测到 GPU。相反,它在 CPU 上运行。附:我安装了驱动程序和 tensorflow-gpu 购买它不会工作。如何解决这个问题?

I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (instance-1): /proc/driver/nvidia/version does not exist
Num GPUs Available:  0

最佳答案

您需要先安装驱动程序。 Follow this instruction

关于tensorflow - 在 Keras 中未检测到 GCP GPU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59472583/

相关文章:

machine-learning - 神经网络会在不同的运行时间翻译成同一个句子吗?我可以在运行时收到很多翻译的句子吗?

python - Tensorflow keras Matrix size-与极其简单的模型不兼容

python - 如何使用Tensorflow v1.1 seq2seq.dynamic_decode?

python - 错误 : Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow)

python - 如何禁用警告 "tensorflow:Method (on_train_batch_end) is slow compared to the batch update (). Check your callbacks"

python - 尝试理解caffe中的自定义损失层

python - train.py 文件中没有名为 'tensorflow.contrib' 的模块

python - 将目录中的图像作为 Tensorflow 数据集加载

python - 使用 Keras 创建自定义条件指标

amazon-web-services - 使用内置 sagemaker 算法进行增量学习