

def test_cumsum():

    def fun(x):
        return to_scalar(np.cumsum(x, axis=0))
    d_fun = (lambda x: to_scalar(grad(fun)(mat)))
    mat = npr.randn(10, 11)
    check_grads(fun, mat)
    check_grads(d_fun, mat)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_cumsum/VarMisuse@47/54 `x`->`mat`