RuntimeError: cuda runtime error (59)

Hi,if my label is just like this:0,2,5 and so on,how can i fix this problem?Because some classes just have one ,so these either in training set or test set.The problem is very tough.