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

CUDA error: device-side assert triggered #16

Open
JingyuLi-code opened this issue May 17, 2021 · 0 comments
Open

CUDA error: device-side assert triggered #16

JingyuLi-code opened this issue May 17, 2021 · 0 comments

Comments

@JingyuLi-code
Copy link

When I default parameter: python train.py --gpus 0 --id experiment-xe --geometry_relation True , it can run but in 6 epoch around errors occur as follows:
I guess that 1. I use wrong dataset label. 2. code error. How can I fix this issue? Thanks!

/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [1367,0,0], thread: [92,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [1367,0,0], thread: [93,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [1367,0,0], thread: [94,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [1367,0,0], thread: [95,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
Traceback (most recent call last):
File "train.py", line 155, in
train(opt)
File "train.py", line 87, in train
out = decoder(sg_data, fc_feats, att_feats, labels, att_masks)
File "/home1/ljy/.conda/envs/relation_trans/lib/python2.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home1/ljy/VSUA-Captioning-master/models/CaptionModel.py", line 25, in forward
return getattr(self, '_'+mode)(*args, **kwargs)
File "/home1/ljy/VSUA-Captioning-master/models/VSUAModel.py", line 284, in _forward
if sample_mask.sum() == 0:
RuntimeError: CUDA error: device-side assert triggered

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