google-research / google-research/language

AttributeError: 'module' object has no attribute 'experimental'

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.8k
Forks
362
PR merge metrics
No merged PRs in 30d

Description

```
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/language/language/question_answering/bert_joint/run_nq.py", line 1442, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/root/language/language/question_answering/bert_joint/run_nq.py", line 1412, in main
predict_input_fn, yield_single_examples=True):
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/estimator/estimator.py", line 541, in predict
input_fn, model_fn_lib.ModeKeys.PREDICT)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/estimator/estimator.py", line 994, in _get_features_from_input_fn
result = self._call_input_fn(input_fn, mode)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/tpu/python/tpu/tpu_estimator.py", line 2330, in _call_input_fn
return input_fn(**kwargs)
File "/root/language/language/question_answering/bert_joint/run_nq.py", line 1047, in input_fn
tf.data.experimental.map_and_batch(
AttributeError: 'module' object has no attribute 'experimental'

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.