-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usm_ndarray.T returns incorrect value after slicing #649
Comments
After parsing which part of the reproducer asserts an error, the report states that
|
oleksandr-pavlyk
added a commit
that referenced
this issue
Nov 3, 2021
``` In [1]: import dpctl.tensor as dpt, itertools In [2]: a = dpt.usm_ndarray((2,3)) In [3]: for i,j in itertools.product(range(2), range(3)): a[i, j] = i*3 + j In [4]: dpt.to_numpy(a)[1:].T Out[4]: array([[3.], [4.], [5.]]) In [5]: dpt.to_numpy(a[1:].T) Out[5]: array([[3.], [4.], [5.]]) ```
oleksandr-pavlyk
added a commit
that referenced
this issue
Nov 3, 2021
These were similar to those reported in #649
oleksandr-pavlyk
added a commit
that referenced
this issue
Nov 3, 2021
Merged
oleksandr-pavlyk
added a commit
that referenced
this issue
Nov 8, 2021
* Fixes #649 ``` In [1]: import dpctl.tensor as dpt, itertools In [2]: a = dpt.usm_ndarray((2,3)) In [3]: for i,j in itertools.product(range(2), range(3)): a[i, j] = i*3 + j In [4]: dpt.to_numpy(a)[1:].T Out[4]: array([[3.], [4.], [5.]]) In [5]: dpt.to_numpy(a[1:].T) Out[5]: array([[3.], [4.], [5.]]) ``` * Fixed issues with `.real` and `.imag` of usm_ndarray These were similar to those reported in #649 * Added tests for T, real, imag methods of the object inspired by #649
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproducer:
Output:
dpctl of version:
dpctl 0.11.0rc2 py39hbd01409_0 http://satpkgserver.an.intel.com:8081
The text was updated successfully, but these errors were encountered: