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

Remove TODO from the code as no plan to support negative values in shape setter #2032

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Sep 13, 2024

The PR proposes to clean the code and to remove the TODO which is no plan to be implemented.

The shape.setter documentation in both dpnp.ndarray and usm_ndarray clearly states that only non-negative new shape value is supported. And it is suggested to use dpnp.reshape instead (numpy recommends the same).

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

github-actions bot commented Sep 13, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@antonwolfy antonwolfy merged commit d4ee71e into master Sep 13, 2024
38 of 46 checks passed
@antonwolfy antonwolfy deleted the remove-todo-for-shape-setter-with-negative-values branch September 13, 2024 15:43
github-actions bot added a commit that referenced this pull request Sep 14, 2024
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.

2 participants