-
Notifications
You must be signed in to change notification settings - Fork 174
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
仿照msar训练自己的数据集出现的问题 #113
Comments
请问你解决了吗?我也遇到了类似的问题
|
C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [26,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [27,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [28,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [29,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [30,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.C:/w/b/windows/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: block: [3414,0,0], thread: [31,0,0] Assertion
index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.Traceback (most recent call last):
File "D:/B/Flat-Lattice-Transformer-master/V0/flat_main.py", line 641, in
trainer.train()
File "E:\anaconda\envs\FLAT\lib\site-packages\fastNLP\core\trainer.py", line 616, in train
raise e
File "E:\anaconda\envs\FLAT\lib\site-packages\fastNLP\core\trainer.py", line 609, in train
self._train()
File "E:\anaconda\envs\FLAT\lib\site-packages\fastNLP\core\trainer.py", line 664, in _train
prediction = self._data_forward(self.model, batch_x)
File "E:\anaconda\envs\FLAT\lib\site-packages\fastNLP\core\trainer.py", line 752, in data_forward
y = network(**x)
File "E:\anaconda\envs\FLAT\lib\site-packages\torch\nn\modules\module.py", line 1102, in call_impl
return forward_call(*input, **kwargs)
File "D:\B\Flat-Lattice-Transformer-master\V0\models.py", line 489, in forward
print=(self.batch_num==327))
File "E:\anaconda\envs\FLAT\lib\site-packages\torch\nn\modules\module.py", line 1102, in call_impl
return forward_call(*input, **kwargs)
File "D:\B\Flat-Lattice-Transformer-master\V0\modules.py", line 1341, in forward
rel_pos_embedding=rel_pos_embedding,print=print)
File "E:\anaconda\envs\FLAT\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "D:\B\Flat-Lattice-Transformer-master\V0\modules.py", line 1166, in forward
rel_pos_embedding=rel_pos_embedding)
File "E:\anaconda\envs\FLAT\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "D:\B\Flat-Lattice-Transformer-master\V0\modules.py", line 367, in forward
mask = seq_len_to_mask(seq_len+lex_num).bool().unsqueeze(1).unsqueeze(1)
File "E:\anaconda\envs\FLAT\lib\site-packages\fastNLP\core\utils.py", line 655, in seq_len_to_mask
broad_cast_seq_len = torch.arange(max_len).expand(batch_size, -1).to(seq_len)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: