Skip to content

Fixed type inferencing for nest sequences with no elements #697

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

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

oleksandr-pavlyk
Copy link
Contributor

Fixed #696

In [3]: import dpctl.tensor as dpt

In [4]: dpt.asarray( [[],]*2)
Out[4]: <dpctl.tensor._usmarray.usm_ndarray at 0x7fe5c92a8450>

In [5]: Out[4].dtype
Out[5]: dtype('float64')

@github-actions
Copy link

@coveralls
Copy link
Collaborator

coveralls commented Nov 30, 2021

Coverage Status

Coverage increased (+0.003%) to 74.901% when pulling acadbd1 on gh696-no-elems-nested-lists into d9cfb43 on master.

densmirn
densmirn previously approved these changes Nov 30, 2021
Fixed #696

```python
In [3]: import dpctl.tensor as dpt

In [4]: dpt.asarray( [[],]*2)
Out[4]: <dpctl.tensor._usmarray.usm_ndarray at 0x7fe5c92a8450>

In [5]: Out[4].dtype
Out[5]: dtype('float64')
```
@oleksandr-pavlyk oleksandr-pavlyk merged commit a8c91c7 into master Dec 1, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the gh696-no-elems-nested-lists branch December 1, 2021 17:54
@github-actions
Copy link

github-actions bot commented Dec 1, 2021

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

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 this pull request may close these issues.

dpctl.tensor.asarray raises TypeError with [[], []] as input
3 participants