Tensorflow crashes with CUBLAS_STATUS_ALLOC_FAILED

前端 未结 10 1190
醉梦人生
醉梦人生 2020-12-03 00:43

I\'m running tensorflow-gpu on Windows 10 using a simple MINST neural network program. When it tries to run, it encounters a CUBLAS_STATUS_ALLOC_FAILED error. A

10条回答
  •  借酒劲吻你
    2020-12-03 01:31

    The location of the "allow_growth" property of the session config seems to be different now. It's explained here: https://www.tensorflow.org/tutorials/using_gpu

    So currently you'd have to set it like this:

    import tensorflow as tf
    config = tf.ConfigProto()
    config.gpu_options.allow_growth = True
    session = tf.Session(config=config, ...)
    

提交回复
热议问题