diff --git a/dpnp/dparray.pyx b/dpnp/dparray.pyx index 7866f46ec261..dbc36b211a30 100644 --- a/dpnp/dparray.pyx +++ b/dpnp/dparray.pyx @@ -974,7 +974,7 @@ cdef class dparray: return iface_sum(*args, **kwargs) - def max(self, axis=None, out=None, keepdims=numpy._NoValue, initial=numpy._NoValue, where=numpy._NoValue): + def max(self, axis=None, out=None, keepdims=False, initial=None, where=True): """ Return the maximum along an axis. """ @@ -988,7 +988,7 @@ cdef class dparray: return mean(self, axis) - def min(self, axis=None, out=None, keepdims=numpy._NoValue, initial=numpy._NoValue, where=numpy._NoValue): + def min(self, axis=None, out=None, keepdims=False, initial=None, where=True): """ Return the minimum along a given axis. """ diff --git a/dpnp/dpnp_array.py b/dpnp/dpnp_array.py index 5d623c415e5f..1610b16ceb65 100644 --- a/dpnp/dpnp_array.py +++ b/dpnp/dpnp_array.py @@ -25,7 +25,6 @@ # ***************************************************************************** import dpctl.tensor as dpt -import numpy import dpnp @@ -907,9 +906,9 @@ def max( self, axis=None, out=None, - keepdims=numpy._NoValue, - initial=numpy._NoValue, - where=numpy._NoValue, + keepdims=False, + initial=None, + where=True, ): """Return the maximum along an axis.""" @@ -924,9 +923,9 @@ def min( self, axis=None, out=None, - keepdims=numpy._NoValue, - initial=numpy._NoValue, - where=numpy._NoValue, + keepdims=False, + initial=None, + where=True, ): """Return the minimum along a given axis.""" diff --git a/dpnp/dpnp_iface_statistics.py b/dpnp/dpnp_iface_statistics.py index c7254ad6d01f..515356e7569f 100644 --- a/dpnp/dpnp_iface_statistics.py +++ b/dpnp/dpnp_iface_statistics.py @@ -619,7 +619,6 @@ def nanvar(x1, axis=None, dtype=None, out=None, ddof=0, keepdims=False): Parameter `axis` is supported only with default value ``None``. Parameter `dtype` is supported only with default value ``None``. Parameter `out` is supported only with default value ``None``. - Parameter `keepdims` is supported only with default value ``numpy._NoValue``. Otherwise the function will be executed sequentially on CPU. """ @@ -665,7 +664,7 @@ def std(x1, axis=None, dtype=None, out=None, ddof=0, keepdims=False): Parameter `axis` is supported only with default value ``None``. Parameter `dtype` is supported only with default value ``None``. Parameter `out` is supported only with default value ``None``. - Parameter `keepdims` is supported only with default value ``numpy._NoValue``. + Parameter `keepdims` is supported only with default value ``False``. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP :ref:`Data types`. @@ -723,7 +722,7 @@ def var(x1, axis=None, dtype=None, out=None, ddof=0, keepdims=False): Parameter `axis` is supported only with default value ``None``. Parameter `dtype` is supported only with default value ``None``. Parameter `out` is supported only with default value ``None``. - Parameter `keepdims` is supported only with default value ``numpy._NoValue``. + Parameter `keepdims` is supported only with default value ``False``. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP :ref:`Data types`. diff --git a/tests/skipped_tests.tbl b/tests/skipped_tests.tbl index cc7ae4cdb630..917adf69d3d2 100644 --- a/tests/skipped_tests.tbl +++ b/tests/skipped_tests.tbl @@ -154,6 +154,13 @@ tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction: tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_ptp_nan_imag tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_ptp_nan_real +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan_imag +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan_real +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan_imag +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan_real + tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_0_{order='C', shape=(10,)}::test_cub_max tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_0_{order='C', shape=(10,)}::test_cub_min tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_1_{order='C', shape=(10, 20)}::test_cub_max diff --git a/tests/skipped_tests_gpu.tbl b/tests/skipped_tests_gpu.tbl index 6a105b50cba5..75504e75e0ea 100644 --- a/tests/skipped_tests_gpu.tbl +++ b/tests/skipped_tests_gpu.tbl @@ -279,6 +279,12 @@ tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction: tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_ptp_nan tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_ptp_nan_imag tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_ptp_nan_real +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan_imag +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_max_nan_real +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan_imag +tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestArrayReduction::test_min_nan_real tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_0_{order='C', shape=(10,)}::test_cub_max tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_0_{order='C', shape=(10,)}::test_cub_min @@ -296,6 +302,7 @@ tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_pa tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_6_{order='F', shape=(10, 20, 30)}::test_cub_min tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_7_{order='F', shape=(10, 20, 30, 40)}::test_cub_max tests/third_party/cupy/core_tests/test_ndarray_reduction.py::TestCubReduction_param_7_{order='F', shape=(10, 20, 30, 40)}::test_cub_min + tests/third_party/cupy/creation_tests/test_basic.py::TestBasicReshape_param_0_{shape=4}::test_empty_like_K_strides_reshape tests/third_party/cupy/creation_tests/test_basic.py::TestBasicReshape_param_1_{shape=(4,)}::test_empty_like_K_strides_reshape tests/third_party/cupy/creation_tests/test_basic.py::TestBasicReshape_param_2_{shape=(4, 2)}::test_empty_like_K_strides_reshape