

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

    def fun(x):
        return to_scalar(np.concatenate((A, x)))
    d_fun = (lambda x: to_scalar(grad(fun)(B)))
    check_grads(fun, B)
    check_grads(d_fun, B)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_simple_concatenate/VarMisuse@73/83 `x`->`B`