KEMBAR78
Fix: perverse input's NaN values to prevent undefined behavior for `matrix_exp` function by scruel · Pull Request #111539 · pytorch/pytorch · GitHub
Skip to content

Conversation

@scruel
Copy link
Contributor

@scruel scruel commented Oct 19, 2023

Currently, for matrix_exp function, if we have NaN values in the input matrices (small batches), it will keep outputting a "normal" result without any NaN value in it, and this will cause some problems that we may can't notice. This PR is for preventing such undefined behavior by "bring back" those NaN values.

cc @lezcano @JubilantJerry

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 19, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 719e776 with merge base e2f1d03 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:

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

@scruel scruel changed the title Fix: perverse input's NaN values to prevent undefined behavior for matrix_exp method Fix: perverse input's NaN values to prevent undefined behavior for matrix_exp function Oct 19, 2023
Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor point

@lezcano
Copy link
Collaborator

lezcano commented Oct 19, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 19, 2023
@lezcano
Copy link
Collaborator

lezcano commented Oct 19, 2023

Thank you!

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

@scruel scruel deleted the dev branch October 24, 2023 02:19
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
…atrix_exp` function (pytorch#111539)

Currently, for `matrix_exp` function, if we have NaN values in the input matrices (small batches), it will keep outputting a "normal" result without any NaN value in it, and this will cause some problems that we may can't notice. This PR is for preventing such undefined behavior by "bring back" those NaN values.

Pull Request resolved: pytorch#111539
Approved by: https://github.com/lezcano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: linalg_frontend release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants