-
Notifications
You must be signed in to change notification settings - Fork 80
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
RuntimeError: CUDA error: device-side assert triggered #8
Comments
/opt/conda/conda-bld/pytorch_1550802451070/work/aten/src/THCUNN/ClassNLLCriterion.cu:105: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion more details likes this |
It's just the Voc_size is not same as the actual size |
@PopMeshgrid Hi, I met the same problem, have u solved this problem? thx! |
I suggest you check the label's length of your dataset. |
/opt/conda/conda-bld/pytorch_1565272279342/work/aten/src/THCUNN/ClassNLLCriterion.cu:105: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion
t >= 0 && t < n_classes
failed.Traceback (most recent call last):
File "train.py", line 364, in
decoder_input_init,decoder_hidden_init,attention_sum_init,decoder_attention_init)
File "train.py", line 212, in my_train
if int(y[0][i][di]) == 0:
RuntimeError: CUDA error: device-side assert triggered
when i use my dataset,it have above issue,how to solve it?
The text was updated successfully, but these errors were encountered: