Ich versuche, tf.one_hot auszuführen, CUDA_ERROR_LAUNCH_FAILED Fehler erhalten. Hier sind die Details:TensorFlow GPU, CUDA_ERROR_LAUNCH_FAILED auf tf.one_hot()
Beispielcode:
import tensorflow as tf
idx_0 = tf.placeholder(tf.int64, [None])
mask = tf.one_hot(idx_0, 3, axis=-1)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
a = sess.run([mask],feed_dict={idx_0:[0,1,2]})
print(a)
Erwartetes Ergebnis:
[array([[ 1., 0., 0.],
[ 0., 1., 0.],
[ 0., 0., 1.]], dtype=float32)]
Tatsächliches Ergebnis:
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_driver.cc:1177] could not synchronize on CUDA context: CUDA_ERROR_LAUNCH_FAILED :: No stack trace available
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_event.cc:49] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_util.cc:370] GPU sync failed
Config des PC:
- TensorFlow 0.12.0-rc1
- Python 3.5
- CUDA 8.0
- cuDNN 5.1
- OS: 10 Windows-
- GPU: GeForce GTX 970
tf.one_hot laufen ok, wenn läuft auf Linux CPU, Linux GPU (GeForce GTX 660), Windows 10 CPU. Nicht in Ordnung auf der Windows 10-GPU.
Auf der Windows 10 GPU werden tf.matmul, tf.reduce_mean, tf.reduce_sum ok ausgeführt. Aber tf.one_hot ist nicht ok.
Ist das ein Fehler, oder ich vermisse etwas? Vielen Dank.
(Edit 2016.12.16)
Ich habe den Code auf der gleichen Maschine, in Xubuntu, GPU laufen. Der Code läuft gut. Also ich denke das ist ein Problem in TensorFlow-Windows.
Dank . Veröffentlicht unter https://github.com/tensorflow/tensorflow/issues/6783. – luzi82