From 17d0c0a0f8485aa61c8da8c0936a246f67d21511 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 21 Feb 2025 13:15:50 +0100 Subject: [PATCH 1/2] Fix a typo in documentation --- dpctl/tensor/_copy_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/tensor/_copy_utils.py b/dpctl/tensor/_copy_utils.py index 9cf25d0dd8..a3e925bc1c 100644 --- a/dpctl/tensor/_copy_utils.py +++ b/dpctl/tensor/_copy_utils.py @@ -126,7 +126,7 @@ def from_numpy(np_ary, /, *, device=None, usm_type="device", sycl_queue=None): arg: Input convertible to :class:`numpy.ndarray` device (object): array API specification of device where the - output array is created. Device can be specified by a + output array is created. Device can be specified by a filter selector string, an instance of :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or an instance of @@ -620,7 +620,7 @@ def astype( If this keyword is set to `False`, a view of the input array may be returned when possible. device (object): array API specification of device where the - output array is created. Device can be specified by a + output array is created. Device can be specified by a filter selector string, an instance of :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or an instance of From 867c9d548b36952bd4313127353c79f96214a9e2 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Fri, 21 Feb 2025 08:18:00 -0800 Subject: [PATCH 2/2] Added gh-2006 to changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b757cb58e..3b841700bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ A number of adjustments were also made to improve performance of `dpctl` reducti * Fixed a bug in `test_sycl_device_interface.cpp` which would cause compilation to fail with Clang version 20.0 [gh-1989](https://github.com/IntelPython/dpctl/pull/1989) * Fixed memory leaks in smart-pointer-managed USM temporaries in synchronizing kernel calls [gh-2002](https://github.com/IntelPython/dpctl/pull/2002) * `UsmNDArray_MakeSimpleFromPtr` and `UsmNDArray_MakeFromPtr` now raise an error when provided an invalid `typenum` before attempting to create the array [gh-2003](https://github.com/IntelPython/dpctl/pull/2003) +* Fixed typos in `tensor.from_numpy` and `tensor.astype` [gh-2006](https://github.com/IntelPython/dpctl/pull/2006) ### Maintenance