How to fix 'CUDA error: device-side assert triggered'? #5635
-
I want to train a model on a dataset made by myself but whenever I Run my training program it shows this warning:
I've asked this warning in the reply to other questions and I was first suggested to add '()'after x = x.cuda and then to remove the sentence of 'x = x.cuda()'. None of this works. So I searched on the internet and according to their words when this warning show after it successfully ran several epochs it means I may not use the right normalization, and while it shows it in the beginning it might be because I used the wrong label in my dataset like my y in my dataset's data are in the wrong type(my dataset is for a graph classification task). So I tried to let my read_myds_data function just return dataset[i] where the dataset is Proteins from tudataset but it still warns me the same.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Can you ensure that the following runs through? for data in dataset:
assert data.x.size(1) == dataset[0].x.size(1) |
Beta Was this translation helpful? Give feedback.
Can you ensure that the following runs through?