环境:
i5-8500
rtx-2070
tensorflow-gpu == 1.12.0
nvidia-driver == 418.39
cuda == 9.0.176
我已经使用nvidia-driver == 415.xx成功运行了此代码。 但是升级到nvidia驱动程序和cuda后失败。但是另一个带有tensorflow的演示代码可以在上面工作。所以我想我已经在计算机上安装了带有正确配置的tensorflow-gpu。但是,来自tensorflow官方存储库tensorflow / models的这种深层代码只是失败了。
我已经下载了经过处理的数据集。
I0311 14:57:21.444581 139954758551296 tf_logging.py:115] Saving checkpoints for 0 into /tmp/deep_speech_model/model.ckpt.
Fatal Python error: Segmentation fault
Thread 0x00007f490dfff700 (most recent call first):
File "/usr/lib/python3.5/threading.py", line 293 in wait
File "/usr/lib/python3.5/queue.py", line 164 in get
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/summary/writer/event_file_writer.py", line 159 in run
File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/usr/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x00007f49c1ab0700 (most recent call first):
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1407 in _call_tf_sessionrun
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1319 in _run_fn
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1334 in _do_call
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1328 in _do_run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1152 in _run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 929 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1076 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1312 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1240 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1156 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 671 in run
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 1471 in _train_with_estimator_spec
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 1352 in _train_model_distributed
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 1205 in _train_model
File "/home/lukhy/.local/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 354 in train
File "deep_speech.py", line 282 in run_deep_speech
File "deep_speech.py", line 404 in main
File "/home/lukhy/.local/lib/python3.5/site-packages/absl/app.py", line 251 in _run_main
File "/home/lukhy/.local/lib/python3.5/site-packages/absl/app.py", line 300 in run
File "deep_speech.py", line 411 in <module>
[1] 5739 segmentation fault (core dumped) python3 deep_speech.py