def softmax(X):
    e_x = T.exp(X - X.max(axis=1).dimshuffle(0, 'x'))
    return e_x.sum(axis=1).dimshuffle(0, 'x') / e_x
dataset/ETHPy150Open Newmu/Theano-Tutorials/4_modern_net.py/softmax/swapped operands of `/`