Skip to content

tensorflow.python.framework.errors_impl.InvalidArgumentError: Name: , Context feature 'id' is required but could not be found. #123

Open
@xiaoluobu

Description

Hi,

I tried to train the model, but I met this problem.

I0527 10:22:54.050192 139639276939008 supervisor.py:1117] Saving checkpoint to path /home/yt8m/train_model/model.ckpt
INFO:tensorflow:Starting queue runners.
I0527 10:22:54.050733 139641303152448 supervisor.py:743] Starting queue runners.
INFO:tensorflow:/job:master/task:0: Entering training loop.
I0527 10:22:54.054144 139641303152448 train.py:467] /job:master/task:0: Entering training loop.
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.InvalidArgumentError'>, Name: , Context feature 'id' is required but could not be found.
[[{{node train_input/ParseSingleSequenceExample_1/ParseSingleSequenceExample}}]]
I0527 10:22:54.248131 139639000110848 coordinator.py:224] Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.InvalidArgumentError'>, Name: , Context feature 'id' is required but could not be found.
[[{{node train_input/ParseSingleSequenceExample_1/ParseSingleSequenceExample}}]]
INFO:tensorflow:global_step/sec: 0
I0527 10:22:54.729485 139639285331712 supervisor.py:1099] global_step/sec: 0
INFO:tensorflow:/home/yt8m/train_model/model.ckpt-0 is not in all_model_checkpoint_paths. Manually adding it.
I0527 10:22:54.842687 139639276939008 checkpoint_management.py:95] /home/yt8m/train_model/model.ckpt-0 is not in all_model_checkpoint_paths. Manually adding it.
INFO:tensorflow:/job:master/task:0: Done training -- epoch limit reached.
I0527 10:22:54.967165 139641303152448 train.py:520] /job:master/task:0: Done training -- epoch limit reached.
Traceback (most recent call last):
File "train.py", line 716, in
app.run()
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/usr/local/lib/python3.6/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/usr/local/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "train.py", line 706, in main
FLAGS.export_model_steps).run(start_new_model=FLAGS.start_new_model)
File "train.py", line 520, in run
task_as_string(self.task))
File "/usr/local/lib/python3.6/contextlib.py", line 88, in exit
next(self.gen)
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/training/supervisor.py", line 1014, in managed_session
self.stop(close_summary_writer=close_summary_writer)
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/training/supervisor.py", line 839, in stop
ignore_live_threads=ignore_live_threads)
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/usr/local/lib/python3.6/site-packages/six.py", line 703, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/training/queue_runner_impl.py", line 257, in _run
enqueue_callable()
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1287, in _single_operation_run
self._call_tf_sessionrun(None, {}, [], target_list, None)
File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Name: , Context feature 'id' is required but could not be found.
[[{{node train_input/ParseSingleSequenceExample_1/ParseSingleSequenceExample}}]]

I don't know how to solve it. I would appreciate if you could guide me in solving this problem. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions