Skip to content
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 constructor with shape=() returns instance with __sycl_usm_array_interface__ having shape=None #547

Closed
oleksandr-pavlyk opened this issue Aug 23, 2021 · 0 comments · Fixed by #548
Assignees

Comments

@oleksandr-pavlyk
Copy link
Collaborator

In [32]: dpt.usm_ndarray(tuple(), dtype='d').__sycl_usm_array_interface__
Out[32]:
{'data': (93900589073280, True),
'shape': None,
'strides': None,
'typestr': '|f8',
'version': 1,
'syclobj': <dpctl.SyclQueue at 0x7f0cb8534f80>,
'offset': 0}

@Alexander-Makaryev

@oleksandr-pavlyk oleksandr-pavlyk self-assigned this Aug 23, 2021
oleksandr-pavlyk added a commit that referenced this issue Aug 23, 2021
Property `__sycl_usm_array_interface__` is to use `self.shape` rather
than call _make_int_tuple directly.

```
In [4]: dpt.usm_ndarray(tuple(), dtype='d').__sycl_usm_array_interface__
Out[4]:
{'data': (94536841949184, True),
 'shape': (),
 'strides': None,
 'typestr': '|f8',
 'version': 1,
 'syclobj': <dpctl.SyclQueue at 0x7f5bbeb3f780>,
 'offset': 0}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant