ZoeChen299
2020-04-28 23:39
采纳率: 0%
浏览 1.7k

Bert训练模型时报错:Windows fatal exception: access violation

运行之后:

2020-04-28 23:26:44.729208: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Windows fatal exception: access violation

Current thread 0x00004a90 (most recent call first):
  File "C:\Users\DELL\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 84 in _preread_check
  File "C:\Users\DELL\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 122 in read
      File "D:\senti\code\Bert\modeling.py", line 94 in from_json_file
  File "D:/senti/code/Bert/run_classifier.py", line 844 in main
  File "C:\Users\DELL\Anaconda3\envs\tensorflow-gpu\lib\site-packages\absl\app.py", line 250 in _run_main
  File "C:\Users\DELL\Anaconda3\envs\tensorflow-gpu\lib\site-packages\absl\app.py", line 299 in run
  File "C:\Users\DELL\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow_core\python\platform\app.py", line 40 in run
  File "D:/senti/code/Bert/run_classifier.py", line 1025 in <module>

Process finished with exit code -1073741819 (0xC0000005)


  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • chengjinpei 2020-11-27 22:18

    降低一下tf版本

    评论
    解决 无用
    打赏 举报
  • chengjinpei 2020-11-27 22:29

    还有一点是确定使用的GPU

     

    评论
    解决 无用
    打赏 举报
  • jiutingcai 2021-06-12 17:02

    你解决了吗

    评论
    解决 无用
    打赏 举报
  • 遨游在知识的海洋 2021-07-09 15:09

    我跟你遇到了一样的错误,想问大家都解决了吗,怎么弄得???

    评论
    解决 无用
    打赏 举报
  • dabocaiqq 2020-09-25 23:03
    评论
    解决 无用 1
    打赏 举报

相关推荐 更多相似问题