diff --git a/numba_dpex/dpnp_iface/_intrinsic.py b/numba_dpex/dpnp_iface/_intrinsic.py index c432a473b1..08399254ef 100644 --- a/numba_dpex/dpnp_iface/_intrinsic.py +++ b/numba_dpex/dpnp_iface/_intrinsic.py @@ -127,7 +127,6 @@ def impl_dpnp_empty( ty_shape, ty_dtype, ty_order, - # ty_like, # see issue https://github.com/IntelPython/numba-dpex/issues/998 ty_device, ty_usm_type, ty_sycl_queue, @@ -145,7 +144,6 @@ def impl_dpnp_empty( dtype. ty_order (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. - ty_like (numba.core.types.npytypes.Array): Numba type for array. ty_device (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. ty_usm_type (numba.core.types.misc.UnicodeType): UnicodeType @@ -165,7 +163,6 @@ def impl_dpnp_empty( ty_shape, ty_dtype, ty_order, - # ty_like, # see issue https://github.com/IntelPython/numba-dpex/issues/998 ty_device, ty_usm_type, ty_sycl_queue, @@ -185,7 +182,6 @@ def impl_dpnp_zeros( ty_shape, ty_dtype, ty_order, - ty_like, ty_device, ty_usm_type, ty_sycl_queue, @@ -203,7 +199,6 @@ def impl_dpnp_zeros( dtype. ty_order (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. - ty_like (numba.core.types.npytypes.Array): Numba type for array. ty_device (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. ty_usm_type (numba.core.types.misc.UnicodeType): UnicodeType @@ -223,7 +218,6 @@ def impl_dpnp_zeros( ty_shape, ty_dtype, ty_order, - ty_like, ty_device, ty_usm_type, ty_sycl_queue, @@ -245,7 +239,6 @@ def impl_dpnp_ones( ty_shape, ty_dtype, ty_order, - ty_like, ty_device, ty_usm_type, ty_sycl_queue, @@ -263,7 +256,6 @@ def impl_dpnp_ones( dtype. ty_order (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. - ty_like (numba.core.types.npytypes.Array): Numba type for array. ty_device (numba.core.types.misc.UnicodeType): UnicodeType from numba for strings. ty_usm_type (numba.core.types.misc.UnicodeType): UnicodeType @@ -283,7 +275,6 @@ def impl_dpnp_ones( ty_shape, ty_dtype, ty_order, - ty_like, ty_device, ty_usm_type, ty_sycl_queue, diff --git a/numba_dpex/dpnp_iface/arrayobj.py b/numba_dpex/dpnp_iface/arrayobj.py index 90282b08d9..105d551e5f 100644 --- a/numba_dpex/dpnp_iface/arrayobj.py +++ b/numba_dpex/dpnp_iface/arrayobj.py @@ -210,8 +210,6 @@ def ol_dpnp_empty( shape, dtype=None, order="C", - # like=None, # this gets lost when dpnp.empty() is called outside dpjit, - # see issue https://github.com/IntelPython/numba-dpex/issues/998 device=None, usm_type="device", sycl_queue=None, @@ -229,12 +227,6 @@ def ol_dpnp_empty( Default: None. order (str, optional): memory layout for the array "C" or "F". Default: "C". - like (numba.core.types.npytypes.Array, optional): A type for - reference object to allow the creation of arrays which are not - `NumPy` arrays. If an array-like passed in as `like` supports the - `__array_function__` protocol, the result will be defined by it. - In this case, it ensures the creation of an array object - compatible with that passed in via this argument. device (numba.core.types.misc.StringLiteral, optional): array API concept of device where the output array is created. `device` can be `None`, a oneAPI filter selector string, an instance of @@ -278,7 +270,6 @@ def impl( shape, dtype=None, order="C", - # like=None, see issue https://github.com/IntelPython/numba-dpex/issues/998 device=None, usm_type="device", sycl_queue=None, @@ -287,7 +278,6 @@ def impl( shape, _dtype, order, - # like, see issue https://github.com/IntelPython/numba-dpex/issues/998 _device, _usm_type, sycl_queue, @@ -309,7 +299,6 @@ def ol_dpnp_zeros( shape, dtype=None, order="C", - like=None, device=None, usm_type="device", sycl_queue=None, @@ -327,12 +316,6 @@ def ol_dpnp_zeros( Default: None. order (str, optional): memory layout for the array "C" or "F". Default: "C". - like (numba.core.types.npytypes.Array, optional): A type for - reference object to allow the creation of arrays which are not - `NumPy` arrays. If an array-like passed in as `like` supports the - `__array_function__` protocol, the result will be defined by it. - In this case, it ensures the creation of an array object - compatible with that passed in via this argument. device (numba.core.types.misc.StringLiteral, optional): array API concept of device where the output array is created. `device` can be `None`, a oneAPI filter selector string, an instance of @@ -376,7 +359,6 @@ def impl( shape, dtype=None, order="C", - like=None, device=None, usm_type="device", sycl_queue=None, @@ -385,7 +367,6 @@ def impl( shape, _dtype, order, - like, _device, _usm_type, sycl_queue, @@ -407,7 +388,6 @@ def ol_dpnp_ones( shape, dtype=None, order="C", - like=None, device=None, usm_type="device", sycl_queue=None, @@ -425,12 +405,6 @@ def ol_dpnp_ones( Default: None. order (str, optional): memory layout for the array "C" or "F". Default: "C". - like (numba.core.types.npytypes.Array, optional): A type for - reference object to allow the creation of arrays which are not - `NumPy` arrays. If an array-like passed in as `like` supports the - `__array_function__` protocol, the result will be defined by it. - In this case, it ensures the creation of an array object - compatible with that passed in via this argument. device (numba.core.types.misc.StringLiteral, optional): array API concept of device where the output array is created. `device` can be `None`, a oneAPI filter selector string, an instance of @@ -474,7 +448,6 @@ def impl( shape, dtype=None, order="C", - like=None, device=None, usm_type="device", sycl_queue=None, @@ -483,7 +456,6 @@ def impl( shape, _dtype, order, - like, _device, _usm_type, sycl_queue,