Traceback (most recent call last):


 "/model_embeddings_test.py", line 48, in <module>

seqB_embeddings = model(seqB_tokens)[0]


 "/usr/local/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/transformers/transformers/modeling_bert.py", line 692, in forward

embedding_output = self.embeddings(input_ids, position_ids=position_ids, token_type_ids=token_type_ids)


 "/usr/local/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/transformers/transformers/modeling_roberta.py", line 60, in forward

position_ids=position_ids)


 "/transformers/transformers/modeling_bert.py", line 170, in forward

position_embeddings = self.position_embeddings(position_ids)


 "/usr/local/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/usr/local/anaconda3/lib/python3.7/site-packages/torch/nn/modules/sparse.py", line 118, in forward

self.norm_type, self.scale_grad_by_freq, self.sparse)


 "/usr/local/anaconda3/lib/python3.7/site-packages/torch/nn/functional.py", line 1454, in embedding

return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: index out of range at /opt/conda/conda-bld/pytorch_1550796191843/work/aten/src/TH/generic/THTensorEvenMoreMath.cpp:191

Traceback (most recent call last):


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/bin/asr_train.py", line 23, in <module>

main()


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/bin/asr_train.py", line 19, in main

ASRTask.main(cmd=cmd)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/tasks/abs_task.py", line 842, in main

cls.main_worker(args)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/tasks/abs_task.py", line 1161, in main_worker

distributed_option=distributed_option,


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/train/trainer.py", line 209, in run

options=trainer_options,


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/train/trainer.py", line 382, in train_one_epoch

loss, stats, weight = model(**batch)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/asr/espnet_model.py", line 115, in forward

encoder_out, encoder_out_lens = self.encode(speech, speech_lengths)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/asr/espnet_model.py", line 182, in encode

feats, feats_lengths = self.specaug(feats, feats_lengths)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/asr/specaug/specaug.py", line 79, in forward

x, x_lengths = self.time_warp(x, x_lengths)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/layers/time_warp.py", line 87, in forward

x[i][None, : x_lengths[i]], window=self.window, mode=self.mode,


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/espnet2/layers/time_warp.py", line 40, in time_warp

x[:, :, :center], (warped, x.shape[3]), mode=mode, align_corners=False


 "/home/users/ntu/tlvu/espnet_v0.7_202004011/espnet/tools/venv/lib/python3.7/site-packages/torch/nn/functional.py", line 2573, in interpolate

return torch._C._nn.upsample_bicubic2d(input, _output_size(2), align_corners)
RuntimeError: cuda runtime error (77) : an illegal memory access was encountered at /opt/conda/conda-bld/pytorch_1556653114079/work/aten/src/THCUNN/generic/SpatialUpSamplingBicubic.cu:76
