KEMBAR78
[MPS] Fix reduction ops outputs for empty tensors by malfet · Pull Request #139446 · pytorch/pytorch · GitHub
Skip to content

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Nov 1, 2024

By adding a switch for all reduction types, that either sets it to given value or raises runtime error.
Before this change, reduction ops returned uninitialized values in many case

Fixes #139400

By adding a switch for all reduction types, that either sets it to given value or raises runtime error

Fixes #139400
@malfet malfet requested a review from kulinseth as a code owner November 1, 2024 01:18
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 1, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/139446

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 2f5a1c9 with merge base 6727f34 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Nov 1, 2024
@malfet malfet added the topic: bug fixes topic category label Nov 1, 2024
@malfet
Copy link
Contributor Author

malfet commented Nov 1, 2024

@pytorchbot merge -f "Lint + MPS are green"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull request Nov 5, 2024
By adding a switch for all reduction types, that either sets it to given value or raises runtime error.
Before this change, reduction ops returned uninitialized values in many case

Fixes pytorch#139400

Pull Request resolved: pytorch#139446
Approved by: https://github.com/Skylion007
@github-actions github-actions bot deleted the malfet/mps-empty-tensor-reductions branch December 2, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/mps Run MPS tests (subset of trunk) Merged release notes: mps Release notes category topic: bug fixes topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect result of torch.count_nonzero with MPS

3 participants