Error when running tensorflow models

32 views
Skip to first unread message

진윤호

unread,
Sep 6, 2019, 6:42:56 AM9/6/19
to Protocol Buffers
Hi team,

I'm facing an error when running tensorflow model (bert).

Error message is as follows:

[libprotobuf FATAL external/protobuf_archive/src/google/protobuf/map.h:1064] CHECK failed: it != end(): key not found: architecture
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: it != end(): key not found: architecture
Fatal Python error: Aborted

back trace:

  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1429 in _call_tf_sessionrun
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1341 in _run_fn
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1356 in _do_call
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350 in _do_run
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1173 in _run
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 950 in run
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/util.py", line 90 in after_create_session
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 878 in create_session
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1205 in _create_session
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1200 in __init__
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 725 in __init__
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1007 in __init__
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 635 in predict
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_estimator.py", line 2913 in predict
  File "run_squad.py", line 1272 in main
  File "/home/titan-n0/.local/lib/python3.6/site-packages/absl/app.py", line 250 in _run_main
  File "/home/titan-n0/.local/lib/python3.6/site-packages/absl/app.py", line 299 in run
  File "/home/titan-n0/.local/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40 in run
  File "run_squad.py", line 1302 in <module>

I'm using python 3.6.8 and the result of `pip3 show protobuf` says

Name: protobuf
Version: 3.9.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: None
Author-email: None
License: 3-Clause BSD License
Location: /home/titan-n0/.local/lib/python3.6/site-packages
Requires: six, setuptools


The above error occurs right before making a checkpoint. I need this to make a saved model fro tf serving.
Would be grateful if you can help me out.

Thanks in advance.

진윤호

unread,
Sep 6, 2019, 6:48:07 AM9/6/19
to Protocol Buffers
I'm using ubuntu by the way.
Reply all
Reply to author
Forward
0 new messages