ZeweiChu/PyTorch-Course

RuntimeError: CUDA error: out of memory

Abel1802 opened this issue · 5 comments


RuntimeError Traceback (most recent call last)
in
11
12 if USE_CUDA:
---> 13 input_labels = input_labels.cuda()
14 pos_labels = pos_labels.cuda()
15 neg_labels = neg_labels.cuda()

RuntimeError: CUDA error: out of memory

Where is this error coming from? Can you reduce the batch size or change the hyper parameters to make the model smaller?

Where is the picture you mentioned in your reply?