tensorflow running error with cublas

后端 未结 6 942
無奈伤痛
無奈伤痛 2020-12-16 04:24

when I successfully install tensorflow on cluster, I immediately running mnist demo to check if it\'s going well, but here I came up with a problem. I don\'t know what is th

6条回答
  •  粉色の甜心
    2020-12-16 04:33

    This was a nightmare to find a fix for - but the fix is somewhat simple

    https://www.tensorflow.org/guide/using_gpu

    # 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....)
    

提交回复
热议问题