prob = F.softmax(output, dim=1)

Just want to mention that ROC is a binary metric. So if you have multiple classes, you have to select the one you care about in case you have more than 2 possible class labels (i.e., more than 2 columns there)