Skip to content

Fix for errors reported in #729 when reshaping 0-elems array - #756

Merged
oleksandr-pavlyk merged 2 commits into
masterfrom
bugfix/gh-729-reshape
Feb 1, 2022
Merged

oleksandr-pavlyk merged 2 commits into
masterfrom
bugfix/gh-729-reshape

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Fixes #729

The generated reshaped_strides routine is meant for non-empty arrays,
and so empty ones must be handled differently.

Tests added as well.

The generated reshaped_strides routine is meant for non-empty arrays,
and so empty ones must be handled differently.

Tests added as well.
@github-actions

github-actions Bot commented Feb 1, 2022

Copy link
Copy Markdown

densmirn
densmirn previously approved these changes Feb 1, 2022
LukichevaPolina
LukichevaPolina previously approved these changes Feb 1, 2022
@coveralls

coveralls commented Feb 1, 2022 •

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage increased (+0.4%) to 81.676% when pulling 479ed60 on bugfix/gh-729-reshape into a48f381 on master.

Special case setting shape for zero-element arrays
@oleksandr-pavlyk
oleksandr-pavlyk merged commit 9c90442 into master Feb 1, 2022
@oleksandr-pavlyk
oleksandr-pavlyk deleted the bugfix/gh-729-reshape branch February 1, 2022 12:59
@github-actions

github-actions Bot commented Feb 1, 2022

Copy link
Copy Markdown

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.reshape raises ValueError with empty list as input

4 participants