

def test_max_axis_keepdims():

    def fun(x):
        return to_scalar(np.max(x, axis=1, keepdims=True))
    d_fun = (lambda x: to_scalar(grad(fun)(x)))
    mat = npr.randn(3, 4, 5)
    check_grads(fun, mat)
    check_grads(d_fun, x)

dataset/ETHPy150Open HIPS/autograd/tests/test_numpy.py test_max_axis_keepdims/VarMisuse@80/96 `mat`->`x`