

def test_non_numpy_sum():

    def fun(x, y):
        return to_scalar(sum([x, y]))
    d_fun = (lambda x, y: to_scalar(grad(fun)(x, y)))
    mat1 = npr.randn(10, 11)
    mat2 = npr.randn(10, 11)
    check_grads(fun, mat1, mat2)
    check_grads(mat2, mat1, mat2)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_non_numpy_sum/VarMisuse@89/106 `d_fun`->`mat2`