Skip to content

Fixed type inferencing for nest sequences with no elements#697

Merged
oleksandr-pavlyk merged 1 commit intomasterfrom
gh696-no-elems-nested-lists
Dec 1, 2021
Merged

Fixed type inferencing for nest sequences with no elements#697
oleksandr-pavlyk merged 1 commit intomasterfrom
gh696-no-elems-nested-lists

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
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
Copy Markdown

@coveralls
Copy link
Copy Markdown
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
Copy Markdown

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