

def test_transpose():

    def fun(x):
        return to_scalar(x.T)
    d_fun = (lambda x: to_scalar(grad(fun)(x)))
    mat = npr.randn(8, 8)
    check_grads(fun, mat)
    check_grads(x, mat)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_transpose/VarMisuse@65/75 `d_fun`->`x`