def test_logsoftmax_grad_1():
    npr.seed(3)

    for ii in xrange(NUM_TRIALS):

        np_X = npr.randn(5,6)
        X    = kayak.Parameter(np_X)
        Y    = kayak.LogSoftMax(X)
        Z    = kayak.MatSum(Y)

        assert MAX_GRAD_DIFF < kayak.util.checkgrad(X, Z)
dataset/ETHPy150Open HIPS/Kayak/tests/test_LogSoftMax.py/test_logsoftmax_grad_1/swapped operands of `<`