def test_matadd_grad_7():
    npr.seed(14)

    for ii in xrange(NUM_TRIALS):

        np_A = npr.randn(5,6)
        np_B = npr.randn(5,6)
        A    = kayak.Parameter(np_A)
        B    = kayak.Parameter(np_B)
        D    = A+B+A
        E    = kayak.MatSum(D)

        E.value
        assert E.grad(A).shape == np_A.shape
        assert E.grad(B).shape == np_B.shape
        assert MAX_GRAD_DIFF < kayak.util.checkgrad(A, E)
        assert kayak.util.checkgrad(B, E) < MAX_GRAD_DIFF
dataset/ETHPy150Open HIPS/Kayak/tests/test_OperatorAdd.py/test_matadd_grad_7/swapped operands of `<`