

def test_index_mixed():
    A = npr.randn(5, 6, 4)

    def fun(x):
        return to_scalar(x[3, 2:, [1, 3]])
    d_fun = (lambda x: to_scalar(grad(fun)(x)))
    check_grads(fun, d_fun)
    check_grads(d_fun, A)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_index_mixed/VarMisuse@72/83 `A`->`d_fun`