Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for environment #9

Open
unknowed-ER opened this issue Dec 19, 2021 · 0 comments
Open

Request for environment #9

unknowed-ER opened this issue Dec 19, 2021 · 0 comments

Comments

@unknowed-ER
Copy link

I encountered the following error:

2021-12-19 21:55:51,066 - tensorflow - WARNING - From /home/fsx/dureader2.0/tfmrc/model/multi_task_mrc.py:329: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.

2021-12-19 21:55:57,006 - brc - INFO - Time to build graph: 8.593860626220703 s
Traceback (most recent call last):
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1356, in _do_call
return fn(*args)
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1339, in _run_fn
self._extend_graph()
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1374, in _extend_graph
tf_session.ExtendSession(self._session)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'CudnnRNN' used by {{node cu_dnngru/CudnnRNN}}with these attrs: [seed=0, dropout=0, T=DT_FLOAT, input_mode="linear_input", direction="unidirectional", rnn_mode="gru", seed2=0, is_training=true]
Registered devices: [CPU, XLA_CPU, XLA_GPU]
Registered kernels:
device='GPU'; T in [DT_DOUBLE]
device='GPU'; T in [DT_FLOAT]
device='GPU'; T in [DT_HALF]

[[cu_dnngru/CudnnRNN]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/fsx/dureader2.0/tfmrc/run.py", line 411, in
run()
File "/home/fsx/dureader2.0/tfmrc/run.py", line 403, in run
train(args)
File "/home/fsx/dureader2.0/tfmrc/run.py", line 274, in train
rc_model = MultiAnsModel(vocab, args)
File "/home/fsx/dureader2.0/tfmrc/model/multi_task_mrc.py", line 59, in init
self._build_graph()
File "/home/fsx/dureader2.0/tfmrc/model/multi_task_mrc.py", line 81, in _build_graph
param_num = sum([np.prod(self.sess.run(tf.shape(v))) for v in self.all_params])
File "/home/fsx/dureader2.0/tfmrc/model/multi_task_mrc.py", line 81, in
param_num = sum([np.prod(self.sess.run(tf.shape(v))) for v in self.all_params])
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 950, in run
run_metadata_ptr)
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run
run_metadata)
File "/home/fsx/anaconda3/envs/dureader/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'CudnnRNN' used by node cu_dnngru/CudnnRNN (defined at /dureader2.0/tfmrc/layers/rnet_modules/recurrent.py:41) with these attrs: [seed=0, dropout=0, T=DT_FLOAT, input_mode="linear_input", direction="unidirectional", rnn_mode="gru", seed2=0, is_training=true]
Registered devices: [CPU, XLA_CPU, XLA_GPU]
Registered kernels:
device='GPU'; T in [DT_DOUBLE]
device='GPU'; T in [DT_FLOAT]
device='GPU'; T in [DT_HALF]

[[cu_dnngru/CudnnRNN]]

I find tensorflow/tensorflow#26600, but it didn't solve my problem.
This is my environment

cudnn 7.4.1
cuda 10.0
gcc 4.8.5

absl-py 1.0.0
astor 0.8.1
cached-property 1.5.2
certifi 2021.10.8
click 8.0.3
gast 0.5.3
google-pasta 0.2.0
grpcio 1.43.0
h5py 3.6.0
hanziconv 0.3.2
importlib-metadata 4.9.0
joblib 1.1.0
keras 2.7.0
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
Markdown 3.3.6
nltk 3.6.5
numpy 1.16.0
pandas 1.1.5
pip 21.2.2
protobuf 3.19.1
python-dateutil 2.8.2
pytz 2021.3
regex 2021.11.10
setuptools 58.0.4
six 1.16.0
tensorboard 1.14.0
tensorflow 1.14.0
tensorflow-estimator 1.14.0
tensorflow-gpu 1.14.0
termcolor 1.1.0
tqdm 4.62.3
typing_extensions 4.0.1
Werkzeug 2.0.2
wheel 0.37.0
wrapt 1.13.3
zipp 3.6.0

Could you please provide your environment?

进程已结束,退出代码为 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant