Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered
trying to run trasformer in v2 with TF-2.0 stable and branch in models : tf_2_0_rc1(https://github.com/tensorflow/models/tree/tf_2_0_rc1) as per ticket #7644 with below command: python transformer_main.py --data_dir=$DATA_DIR --model_dir=$MODEL_DIR --vocab_file=$VOCAB_FILE --param_set=big --bleu_source=$DATA_DIR/newstest2014.en --bleu_ref=$DATA_DIR/newstest2014.de
Got error with below Stack trace:
W1118 07:34:57.648332 140172354287360 util.py:144] Unresolved object in checkpoint: (root).optimizer's state 'v' for (root).layer_with_weights-0.decoder_stack.layers.5.2.layer.filter_dense_layer.bias WARNING:tensorflow:Unresolved object in checkpoint: (root).optimizer's state 'v' for (root).layer_with_weights-0.decoder_stack.layers.5.2.layer.output_dense_layer.kernel W1118 07:34:57.648442 140172354287360 util.py:144] Unresolved object in checkpoint: (root).optimizer's state 'v' for (root).layer_with_weights-0.decoder_stack.layers.5.2.layer.output_dense_layer.kernel WARNING:tensorflow:Unresolved object in checkpoint: (root).optimizer's state 'v' for (root).layer_with_weights-0.decoder_stack.layers.5.2.layer.output_dense_layer.bias W1118 07:34:57.648550 140172354287360 util.py:144] Unresolved object in checkpoint: (root).optimizer's state 'v' for (root).layer_with_weights-0.decoder_stack.layers.5.2.layer.output_dense_layer.bias WARNING:tensorflow:A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/alpha/guide/checkpoints#loading_mechanics for details. W1118 07:34:57.648662 140172354287360 util.py:152] A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/alpha/guide/checkpoints#loading_mechanics for details. 2019-11-18 07:34:57.650464: E tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:750] failed to record completion event; therefore, failed to create inter-stream dependency 2019-11-18 07:34:57.650537: I tensorflow/stream_executor/stream.cc:4816] [stream=0x5401120,impl=0x53ffe90] did not memcpy host-to-device; source: 0x7f7b6c055f00 2019-11-18 07:34:57.650560: E tensorflow/stream_executor/stream.cc:332] Error recording event in stream: error recording CUDA event on stream 0x5400b10: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered; not marking stream as bad, as the Event object may be at fault. Monitor for further errors. 2019-11-18 07:34:57.650586: E tensorflow/stream_executor/cuda/cuda_event.cc:29] Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered 2019-11-18 07:34:57.650613: F tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc:273] Unexpected Event status: 1 Fatal Python error: Aborted
Thread 0x00007f7c6b627700 (most recent call first): File "/home/ubuntu/tf2py/lib/python3.5/site-packages/tensorflow_core/python/ops/gen_dataset_ops.py", line 1141 in delete_iterator File "/home/ubuntu/tf2py/lib/python3.5/site-packages/tensorflow_core/python/data/ops/iterator_ops.py", line 537 in del Aborted
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
Please try our new code with the latest TensorFlow.