You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
I encountered the following error:
I find tensorflow/tensorflow#26600, but it didn't solve my problem.
This is my environment
Could you please provide your environment?
进程已结束,退出代码为 1
The text was updated successfully, but these errors were encountered: