Skip to content

Commit e32da01

Browse files
squeeze array method (#1022)
1 parent 5800f55 commit e32da01

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

dpnp/dpnp_array.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,17 @@ def size(self):
680680
return self._array_obj.size
681681

682682
# 'sort',
683-
# 'squeeze',
683+
684+
def squeeze(self, axis=None):
685+
"""
686+
Remove single-dimensional entries from the shape of an array.
687+
688+
.. seealso::
689+
:obj:`dpnp.squeeze` for full documentation
690+
691+
"""
692+
693+
return dpnp.squeeze(self, axis)
684694

685695
def std(self, axis=None, dtype=None, out=None, ddof=0, keepdims=False):
686696
""" Returns the variance of the array elements, along given axis.

tests/skipped_tests_gpu.tbl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -906,17 +906,6 @@ tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_s
906906
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis_failure1
907907
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis_failure2
908908
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis_failure3
909-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze1
910-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze2
911-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_failure
912-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_int_axis1
913-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_int_axis2
914-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_scalar1
915-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_scalar2
916-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis1
917-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis2
918-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis3
919-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestDims::test_squeeze_tuple_axis4
920909
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_0_{shapes=[(3,), (2,)]}::test_invalid_broadcast
921910
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_0_{shapes=[(3,), (2,)]}::test_invalid_broadcast_arrays
922911
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_1_{shapes=[(3, 2), (2, 3)]}::test_invalid_broadcast

0 commit comments

Comments
 (0)