TensorFlow: Blas GEMM launch failed

后端 未结 15 1139
攒了一身酷
攒了一身酷 2020-12-05 05:11

When I\'m trying to use TensorFlow with Keras using the gpu, I\'m getting this error message:

C:\\Users\\nicol\\Anaconda3\\envs\\tensorflow\\lib\\site-packag         


        
15条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 05:32

    I ran into this problem when trying to run several servers that use a model to serve predictions. As I wasn't training a model but simply using it, the difference between using GPU or CPU was minor. For this specific case, the issue can be avoided by forcing Tensorflow to use the CPU by "hiding" the GPU.

    import os
    os.environ["CUDA_VISIBLE_DEVICES"] = "-1"  # Force TF to use only the CPU
    

提交回复
热议问题