tensorflow (not tensorflow-gpu): failed call to cuInit: UNKNOWN ERROR (303)

前端 未结 2 537
清歌不尽
清歌不尽 2021-02-13 15:00

My Test

import tensorflow as tf
hello = tf.constant(\'Hello, TensorFlow!\')
sess = tf.Session()

My Error

2条回答
  •  面向向阳花
    2021-02-13 15:30

    You can attempt to work around this problem on cpu-only machines by using the tensorflow-cpu package instead of tensorflow.

    pip uninstall tensorflow
    pip install tensorflow-cpu
    

提交回复
热议问题