Tensor Representation of Softmax Regression