def test_reshape_method_nolist():
    # The reshape can be called in two different ways:
    # like A.reshape((5,4)) or A.reshape(5,4).
    # This test checks that we support the second way.
    A = npr.randn(5, 6, 4)
    def fun(x): return to_scalar(x.reshape(5 * 4, 6))
    d_fun = lambda x : to_scalar(grad(fun)(x))
    check_grads(fun, A)
    check_grads(d_fun, A)
dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py/test_reshape_method_nolist/original