服务器运行tensorflow gpu程序报错:failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED解决方案
首先 查看cuda版本和tensorflow-gpu版本是否对应,不对应的话更改tensorflow-gpu版本
其次 在import tensorflow as tf这一句下面,注意不可以是别的地方,添加如下代码
# add to the top of your code under import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
如果还不行,看看服务器是不是已经被占满了。