Implemented grad for cudnn softmax.

inputs should always be a list. So revert to the old code. If this cause problems, we need to find why inputs isn't a list.