Implemented grad for cudnn softmax.