Pytorch softmax example. I think what I am looking for is the sparse softmax.

Borneo - FACEBOOKpixBorneo - FACEBOOKpix