Implement Softmax on GPU.