

def test_trace2():

    def fun(x):
        return np.trace(x, offset=offset)
    d_fun = (lambda x: to_scalar(grad(fun)(x)))
    mat = npr.randn(11, 10)
    offset = npr.randint((- 9), 11)
    check_grads(fun, mat)
    check_grads(d_fun, offset)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_trace2/VarMisuse@85/98 `mat`->`offset`