Failed to create cuSolverDN instance.问题的解决 Tensorflow

cusolverDnCreate(&cusolver_dn_handle) == CUSOLVER_STATUS_SUCCESS Failed to create cuSolverDN instance.

经过查询发现问题反馈普遍是Gpu 跑满,在TensorFlow2上的解决方法

physical_devices = tf.config.list_physical_devices('GPU')
try:
  tf.config.experimental.set_memory_growth(physical_devices[0], True)
except:
  # Invalid device or cannot modify virtual devices once initialized.
  pass

经测试可以解决。

在Tensorflow1 上的解决方法

config = tf.ConfigProto() 
config.gpu_options.allow_growth = True

尚未测试。

你可能感兴趣的:(Tensorflow2.0,学习)